Builder Codes
Earn a fee on eligible fills your app routes on SoDEX.
How it works
Users sign a max builder fee once.
Attach
002Add
builder { id, fee } to every order.Earn
003Fees land in your account in real time.
Fee calculator
$
5 bp
10 bp
You earn
$50.00/ day
$1,500.00 per month at 5 bp
- Requested on the ordersets the fee
- 5 bp
- User's approved max
- 10 bp
- Perps engine cap
- 20 bp
Applies to both sides of perps fills. Credited to your builder account in real time.
Integrate in five steps
- 1
Fund your builder account
Hold 100 vUSDC in Spot and Perps. Your account ID is your builder ID.
- 2
Get the user's account
Use data.primaryAccountID from Query Subaccounts.
- 3
Ask for approval once
The user signs ApproveBuilderFeeAction with their master wallet.
- 4
Verify both engines
Check data.spot and data.perps via GET /user/{address}/builders.
- 5
Tag every order
Add builder { id, fee } to each signed order.
{
"builder": {
"id": 456,
"fee": 50
}
}Add
builder as the last field of each order (or batch), id before fee, before you hash and sign. fee: 50 requests 5 bp.