๐Ÿ“– Guides

Hyperliquid Builder Codes: Approve and Revoke a Per-Builder Max Fee Rate

โš ๏ธ Disclosure: Some links on this page are affiliate links. If you sign up through them, I may earn a commission โ€” at no extra cost to you.
Builder codes on Hyperliquid let a "defi builder" (an app that routes orders on a user's behalf) charge a fee on fills it submits. The user signs an on-chain 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 fees are paid to the builder on each fill (and the builder claims them through the usual referral reward claim process). They are not a rebate credited back to the end user.

How the approval is signed

The ApproveBuilderFee action is documented on Hyperliquid's exchange endpoint. Two important properties:

  1. It must be signed by the user's main wallet, not an agent/API wallet.
  2. The approved cap is a maxFeeRate string expressed as a percent (e.g. "0.001%"), scoped to a single builder address.
The action body, taken from the docs:

{
  "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:

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

๐Ÿ’ก Hyperliquid

Like what you're reading? Try it yourself โ€” this link supports ChartedTrader at no cost to you.

Sign up on Hyperliquid โ†’
๐ŸŽ You receive: 4% fee discount on first $25M volume ยท per account, lifetime

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.

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.

๐Ÿงฎ Free Hyperliquid calculators

Fee Calculator โ†’
Hyperliquid vs centralized exchange fee comparison
PnL & Liquidation โ†’
Perp PnL + liquidation price
Position Size โ†’
Risk-aware position sizing for HL perps
Hyperliquid

Ready to get started? Use the link below โ€” it helps support ChartedTrader at no cost to you.

Sign up on Hyperliquid โ†’
๐ŸŽ You receive: 4% fee discount on first $25M volume ยท per account, lifetime
๐Ÿ“ˆ

About the author

I'm a systematic trader running live strategies on IB (USDJPY momentum) and Hyperliquid (crypto perps). Questions? Reach out.

๐Ÿ“š Related Articles

๐Ÿ”Œ
API & Developers

Hyperliquid API Agent Wallet: Revoke & Fix (2026)

Learn how to safely revoke and reset API agent wallet permissions on Hyperliquid. Troubleshoot stale permissions, SDK errors, and vault deposit rejections step-by-step.

August 4, 2026 โฑ 11 min read
๐Ÿ”Œ
API & Developers

Hyperliquid approveAgent Action: Approve an API Wallet via POST /exchange

Use the Hyperliquid approveAgent action on POST /exchange to approve an API wallet, with agentAddress, agentName, valid_until, nonce, signature, and response.

November 17, 2026 โฑ 2 min read
๐Ÿ”ง
Troubleshooting & Fixes

Hyperliquid Phishing and Fake Sites: Verify URLs and Respond to a Compromise

Verify Hyperliquid links before clicking, avoid entering seed phrases or private keys into websites, and follow the official response steps if a wallet is compromised.

November 25, 2026 โฑ 2 min read