Skip to main content

approve_builder_fee

Function approve_builder_fee 

Source
pub async fn approve_builder_fee(
    private_key: &str,
    is_testnet: bool,
) -> Result<BuilderFeeApprovalResult>
Expand description

Approves the Nautilus builder fee for a wallet.

This signs an EIP-712 ApproveBuilderFee action with a 0% max fee rate and submits it to Hyperliquid, permitting the zero-fee builder attribution.

ยงErrors

Returns an error if the private key is invalid, signing fails, or the request cannot be submitted.