Skip to main content

Module builder_fee

Module builder_fee 

Source
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§

BuilderFeeApprovalResult
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.