How Hyperliquid builder codes work
The mechanism that lets any front end on Hyperliquid charge a fee on the trades it sends, who approves it, who receives it and what it costs the trader.
2 min read
A builder code is how a website or app that sends orders to Hyperliquid gets paid for them. Each order carries two extra values: the address that should receive a fee (the builder address) and the fee rate. When the order fills, Hyperliquid takes that fee from the trader and pays it to the builder address. Nobody invoices anybody: the payment happens inside the trade.
Who approves the fee
A trader cannot be charged a builder fee they did not agree to. Before the first order, the trader signs an approval with their main wallet that says "this builder may charge me up to this rate". The approval is a signature, not a payment, and it can be revoked at any time. Hyperliquid then rejects any order that asks for more than the approved maximum.
On a terminal built on this platform the trader sees this as a one-time wallet prompt with your terminal's name in it. If you later raise your fee or change the receiving address, every trader is asked to approve again before their next order. Lowering the fee needs no new approval.
The limits
Hyperliquid sets the ceilings, not the front end:
| Market type | Highest builder fee |
|---|---|
| Perpetuals | 0.1% |
| Spot | 1% |
The builder address itself must hold at least 100 USDC of perps account value on Hyperliquid. Without it, orders that carry the builder code are rejected. The money stays in that account: it is a minimum balance, not a charge.
What the trader pays
The builder fee is added on top of Hyperliquid's own trading fee. On perpetuals it is charged on buy and sell orders alike, so a position that is opened and later closed pays it twice, once per fill. A worked example at a 0.05% builder fee:
| Step | Order size | Builder fee |
|---|---|---|
| Open a position | $10,000 | $5.00 |
| Close it | $10,000 | $5.00 |
| Total | $10.00 |
Who receives it here
On this platform the builder address on every order depends on your plan. On Pro it is your own address, at your rate. On Free it is the platform's address, at your rate or 0.05%, whichever is higher. The switch happens automatically when your plan changes, and open trading tabs pick it up within a minute or two. The billing guide explains each case.
Where to read the rules
Hyperliquid documents builder codes in its own docs: Builder codes. That page is the source for the limits above. If it and this guide ever disagree, Hyperliquid's page wins.