> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hotstuff.trade/llms.txt
> Use this file to discover all available pages before exploring further.

# Builder codes

## API integration for builders

### Approving builder fees

Builder actions require users to approve a broker/builder fee.

See [Approve Broker Fee endpoint](https://docs.hotstuff.trade/api-reference/exchange/accounts/approve-broker-fee.md).

```
curl --request POST \
  --url https://api.hotstuff.trade/exchange \
  --header 'Content-Type: application/json' \
  --data '{
    "action": {
      "data": {
        "broker": "0x1234567890123456789012345678901234567890",
        "maxFeeRate": "0.001",
        "nonce": 1769690420567
      },
      "type": "approveBrokerFee"
    },
    "signature": "0x79a8f17e198acb5532166f9705a4b9d49ac029cc390b310e07f11b2b3a03f591...",
    "nonce": 1769690420567
  }'
```

### Check Builder fee approval

See [Check Broker Approval endpoint](https://docs.hotstuff.trade/api-reference/info/accounts/brokers-check.md)

### Place orders with builder codes

Set `BrokerConfig` in place order actions by adding a `brokerConfig` to all place order actions in the [Place Order API endpoint](https://docs.hotstuff.trade/api-reference/exchange/trading/place-order.md)

### Claim rewards

Accumulated builder fee can be claimed via the referral dashboard in the UI or via the [Claim Rewards API endpoint](https://docs.hotstuff.trade/api-reference/exchange/accounts/claim-referral-rewards.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.