ApproveBuilderFee action that sets a maximum fee rate for one specific builder address. Per Hyperliquid's docs, a user "can revoke permissions at any time," and up to 10 active builder code approvals are allowed per user at a time. This article summarizes what the official Hyperliquid documentation says about how the approval is signed, how per-order fees are expressed, and how to read the approval state via the info endpoint โ all as of 2026-11-16.
What builder codes actually are
Per the builder codes documentation:
- Builder codes "allow builders to receive a fee on fills that they send on behalf of a user." They are set per-order for maximum flexibility.
- The user must approve a maximum builder fee for each builder, and "can revoke permissions at any time."
- Builder codes are processed entirely on-chain as part of the fee logic.
- Each user can have at most 10 active builder code approvals at a time.
- The builder must have at least 100 USDC in perps account value and must use the standard account abstraction mode.
- Builder codes apply only to fees collected in the quote/collateral asset: not to the buying side of spot trades, but to both sides of perp trades.
- Maximum allowed builder fee: 0.1% on perps and 1% on spot.
How the approval is signed
The ApproveBuilderFee action is documented on Hyperliquid's exchange endpoint. Two important properties:
- It must be signed by the user's main wallet, not an agent/API wallet.
- The approved cap is a
maxFeeRatestring expressed as a percent (e.g."0.001%"), scoped to a singlebuilderaddress.
{
"type": "approveBuilderFee",
"hyperliquidChain": "Mainnet",
"signatureChainId": "0xa4b1",
"maxFeeRate": "0.001%",
"builder": "0x0000000000000000000000000000000000000000",
"nonce": 1700000000000
}
A successful response is:
{"status": "ok", "response": {"type": "default"}}
Use "Testnet" for hyperliquidChain on testnet. signatureChainId is the chain id (in hex) of the wallet chain used for signing โ e.g. "0xa4b1" for Arbitrum. nonce is the current timestamp in milliseconds and must match the outer request body's nonce.
For working SDK code, Hyperliquid links the Python SDK example examples/basic_builder_fee.py.
Approved cap vs per-order fee units
Two different units show up in the API, and the difference matters:
- The approval uses a percent string in
maxFeeRate, e.g."0.001%". - A per-order builder fee is attached via an optional
builderfield on the order action:
"builder": {"b": "0x<builder-address>", "f": 10}
Here f is the fee "in tenths of basis points." A value of 10 therefore means 1 basis point, i.e. 0.01%. Each order chooses its own f, as long as it does not exceed the user's approved maxFeeRate for that builder.
Query approved builder state (info endpoint)
The approved cap and the list of approved builders can be read from the info endpoint. These are read-only queries โ no private key is involved, no trades are executed.
Like what you're reading? Try it yourself โ this link supports ChartedTrader at no cost to you.
Sign up on Hyperliquid โCheck the approved max for a (user, builder) pair:
curl -X POST https://api.hyperliquid.xyz/info \
-H 'Content-Type: application/json' \
-d '{
"type": "maxBuilderFee",
"user": "0x0000000000000000000000000000000000000000",
"builder": "0x0000000000000000000000000000000000000000"
}'
The response is a single integer in tenths of a basis point. From the docs: 1 means 0.001%.
List every builder a user has an active approval for:
curl -X POST https://api.hyperliquid.xyz/info \
-H 'Content-Type: application/json' \
-d '{
"type": "approvedBuilders",
"user": "0x0000000000000000000000000000000000000000"
}'
Response example from the docs:
["0x476fa87b4d3818f437f38f1263bee508d7672d82"]
Builders can also see their total collected builder fees as part of the referral state ({"type": "referral", "user": "0x..."}), and per-day trades that used a given builder code are uploaded (LZ4-compressed CSV) to https://stats-data.hyperliquid.xyz/Mainnet/builder_fills/{builder_address}/{YYYYMMDD}.csv.lz4. Those URLs are case sensitive and the builder_address must be entirely lowercase.
Revoking a builder approval
Hyperliquid's docs state that a user "can revoke permissions at any time," but the public docs sections cited above do not publish a dedicated revokeBuilderFee action or a specific GUI click-path. For that reason this article does not reproduce an invented revocation UI or endpoint. Verify the current path in the official Hyperliquid interface or in the latest version of the builder codes docs before relying on a specific flow; approvedBuilders and maxBuilderFee from the info endpoint are the authoritative way to confirm what is currently approved.
Related Hyperliquid reference reading
- Hyperliquid API Agent Wallet Setup & Permissions (2026) โ how agent/API wallets differ from the main wallet that must sign
ApproveBuilderFee. - Hyperliquid Trading Fees 2026: Maker, Taker and Discounts โ base fee schedule that the builder fee sits on top of.
- Hyperliquid Python SDK: Builder Perp Slippage Price Misclassified as Spot (2026) โ a known SDK-side issue to be aware of when building with builder codes.
Risk Warning
Crypto trading involves substantial risk of loss. Builder codes are a fee on top of base trading fees; granting a non-zero maxFeeRate to a builder address means any order that builder submits on your behalf may charge up to that rate. This article summarizes official documentation and is not financial advice.
Continue with Hyperliquid
Browse the Hyperliquid guide hub for the complete user journey.