Expand description
Builder fee approval and revocation for Hyperliquid.
Hyperliquid rejects orders that carry a builder address from a wallet that has
never approved a builder fee, even when the order fee is zero. This module signs
the one-time EIP-712 ApproveBuilderFee action at a 0% max fee rate, enabling
the zero-fee Nautilus builder attribution without ever charging a fee.
Revocation signs the same action at the same 0% rate: it caps any previously approved builder fee at zero (for example, an approval from a version that charged builder fees).
The action must be signed by the master wallet’s private key; agent (API)
wallets cannot sign ApproveBuilderFee.
Structs§
- Builder
FeeApproval Result - Result of a builder fee approval request.
Functions§
- approve_
builder_ fee - Approves the Nautilus builder fee for a wallet.
- approve_
from_ env - Approves the Nautilus builder fee using environment variables.
- revoke_
builder_ fee - Revokes the Nautilus builder fee approval for a wallet.
- revoke_
from_ env - Revokes the Nautilus builder fee using environment variables.