Skip to main content

revoke_builder_fee

Function revoke_builder_fee 

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

Revokes the Nautilus builder fee approval for a wallet.

This signs an EIP-712 ApproveBuilderFee action with a 0% max fee rate and submits it to Hyperliquid, capping any previously approved builder fee at zero so no fee can be charged.

ยงErrors

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