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% rate and submits
it to Hyperliquid, effectively revoking the builder’s permission.
§Arguments
private_key- The EVM private key (hex string with or without 0x prefix)is_testnet- Whether to use testnet or mainnet
§Returns
The result of the revoke request.
§Panics
Panics if the response contains invalid JSON structure.