Skip to main content

How do Hyperliquid builder codes pay a front end?

· · 10 min read
BlockTrader365
Illustration: How do Hyperliquid builder codes pay a front end?

A trading front end on Hyperliquid whose users sign from their own wallets does not hold their money, so it cannot take a cut from a balance. It is paid through a builder fee: a field on each order that names the front end's address and a fee, which Hyperliquid charges when the order fills. Not every account signs from the user's own wallet: BT365's own agent wallets are platform-custodied, and BT365 operates the key on the user's behalf. This page explains the field, the approval behind it, and how a white-label venue gets a builder fee of its own.

How do Hyperliquid builder codes pay a front end?​

An order sent to Hyperliquid can carry a builder field with two values:

ValueWhat it is
bThe builder's address, the wallet that receives the fee
fThe fee, in tenths of a basis point

A basis point is one hundredth of a percent, so the unit is small. An f of 10 is one basis point, or 0.01% of the order's value. An f of 50 is 5 basis points, or 0.05%.

When a perps order fills, Hyperliquid charges the user that share of the fill and sends it to the builder's address. The front end does not collect the fee itself. The builder claims its fees on Hyperliquid, through the same claim process as referral rewards. The builder fee is separate from Hyperliquid's own maker and taker fees, and it goes to a different place.

On a BT365 venue the field is added when the order is built, and it is added to opening orders, closing orders and stop and target orders alike.

What does a user have to approve before a builder fee can be charged?​

On Hyperliquid the user must approve a maximum builder fee for each builder. Before an account's orders can carry a builder's fee, the account sends one approval naming two things: the builder's address, and the maximum fee rate that builder may charge, written as a percentage. For an f of 50 the rate is 0.05%.

Three details matter in practice.

The account's own wallet must sign it. Hyperliquid accounts can approve a separate trading key that places orders. That key cannot approve a builder. In BT365's user-signed lane the approval is one of the actions that accept the account wallet's signature only.

It is a ceiling. The approved rate is the most that builder may charge the account. BT365 adds the builder field only after it has seen the approval. It looks in its own cache, and during account setup it also reads the approved maximum from Hyperliquid, so an account that approved the same builder through another front end is not asked to sign twice.

No approval means no fee, not a failed order. An order from an account that has not approved goes out with no builder field. The user trades and the front end earns nothing on that order.

How much can a front end charge as a builder fee?​

For a venue on BT365 Exchange-as-a-Service the perps builder fee lives in the venue's fee terms, in the same unit as the order field. The default is 50, which is 5 basis points. A value above 100 is refused, because 100 is 10 basis points: the limit Hyperliquid sets for a builder fee on perps.

The fee on one trade and on a month​

Take a venue charging the default 5 basis points.

A user opens a $10,000 position and later closes it at $10,400. Both orders carry the fee:

  • Open: 0.05% × $10,000 = $5.00
  • Close: 0.05% × $10,400 = $5.20
  • Round trip: $10.20 to the venue's builder address.

Over a month in which the venue's users trade $25,000,000:

  • At 5 basis points: 0.05% × $25,000,000 = $12,500
  • At the 10 basis point cap: 0.10% × $25,000,000 = $25,000

On BT365 the venue is then invoiced BT365's own fee on the same volume. At the published rate for that monthly volume, 1.2 basis points, that is 0.012% × $25,000,000 = $3,000, so a venue charging 5 basis points keeps $12,500 − $3,000 = $9,500 before its own costs, and before any monthly floor in its agreement.

How does a white-label venue get its own builder fee?​

The simple way to run many brands on one platform is for the platform to be the builder: it collects every fee and pays each brand its share later. That puts the platform between a brand and its money, and the brand has to trust the platform's accounting.

BT365 Exchange-as-a-Service is built the other way. A venue names its own builder address in its fee terms. From then on:

  1. An account on that venue that signs from the user's own wallet is asked, during setup, to approve the venue's address at the venue's rate.
  2. Its orders carry the venue's address and the venue's fee.
  3. Hyperliquid sends the fee to the venue's address fill by fill, and the venue claims it there.
  4. BT365 receives no part of that builder fee. It records each fill for the venue's monthly statement: what the venue received, the volume, and the fee BT365 will invoice.

The venue can read what it earned on Hyperliquid, without asking BT365.

Before user-signed perps can be switched on for a venue, BT365 checks that the fee terms carry a valid builder address and a fee above zero, that the terms settle fees on-chain to the venue, and that Hyperliquid can be read for that address. Hyperliquid has its own requirements for an address that acts as a builder, and meeting them is the venue's job.

One more rule follows from the money being the venue's. BT365 gives its own users fee discounts through its referral programme. Those discounts are never applied to a venue's builder fee, because that would be cutting a third party's income.

What can go wrong with a builder fee?​

  • Accounts that never approve. They pay no builder fee. A front end should make the approval part of sign-up, not an optional step.
  • Raising the fee. The approval is a maximum. After a rise on a BT365 venue, orders from an account that signs from the user's own wallet go out with no fee until that account approves the new rate, so a rise costs each of those accounts one more signature.
  • A bad address. If a venue's builder address is not valid, or its fee is zero or less, orders from its accounts that sign from the user's own wallet carry no builder field at all. They do not fall back to BT365's address. That fails safe for the user and costs the venue its fee until it is fixed.
  • Thin fees need volume. At 5 basis points, $1,000,000 of monthly volume is 0.05% × $1,000,000 = $500. A builder fee pays for a front end only at scale.

When is the honest answer "don't"? When the plan is a 10 basis point fee on users who can open the same market elsewhere for less. The fee is visible, and a trader who compares will move.

BT365 Exchange-as-a-Service starts with a partner call. See the tiers and fees.

BT365 is not available in every jurisdiction, and nothing on this page is investment advice. Trading perpetual futures and prediction markets carries risk of loss.