> For the complete documentation index, see [llms.txt](https://www.aevo.xyz/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.aevo.xyz/docs/trading-and-staking-rewards/aevo-builder-codes/for-builders.md). Agents can also search and read this documentation through its [MCP server](https://www.aevo.xyz/docs/~gitbook/mcp).

# For Builders

Earn a fee on the trades your users make on Aevo.

## 1. Register your builder

1. Connect the account that will receive your fees at [app.aevo.xyz](https://app.aevo.xyz). Use a dedicated main account: Aevo fixes the fee account at registration, a subaccount can't register, and each account can own one builder.
2. Hold at least the minimum USDC balance in that account (100 USDC today).
3. Go to **Settings → Builders → Builder Dashboard**, enter your builder name, and select **Register**.

The dashboard shows your `builder_id` (for example `builder_0123456789abcdef`) as soon as you register. You can rename your builder later; the `builder_id` and the fee account are permanent. To register through the API, see [Become a builder](https://www.aevo.xyz/docs/api-reference/builder-codes/become-a-builder.md).

## 2. Get your users' approval

Each user approves your builder once and sets the maximum fee rate you may charge them. One approval covers perpetuals and options. You have two ways to collect it.

**Option 1: sign inside your app.** If your web app has the user's wallet connected, ask the wallet to sign the approval there. The user sees one wallet prompt and needs no Aevo page and no Aevo API key. See [User approval](https://www.aevo.xyz/docs/api-reference/builder-codes/user-approval.md#option-1-sign-in-your-app).

**Option 2: send an approval link.** Copy the link from your Builder Dashboard, or build it yourself:

```
https://app.aevo.xyz/builder/approve?builder_id=<builder_id>&max_fee_rate=0.0005
```

`0.0005` is 5 bps, the highest maximum a user can approve. The user reviews your builder's name and the maximum fee in the Aevo app, then signs with their wallet. See [User approval](https://www.aevo.xyz/docs/api-reference/builder-codes/user-approval.md) to add a redirect back to your app.

## 3. Attach your builder to orders

Add `builder_id` and `builder_fee_rate` to each order your app places for a user, and include both in the order signature. You choose the rate per order, at or below the user's approved maximum and Aevo's cap for that instrument type.

Send both fields again each time you edit an order. An edit without them removes your builder from the order, and its fills pay you nothing. See [Placing orders](https://www.aevo.xyz/docs/api-reference/builder-codes/placing-orders.md).

## 4. Track your earnings

Open **Settings → Builders → Builder Dashboard** with your fee account. It shows:

* volume, fees earned, and number of fills, each compared with the previous period;
* active, new, and returning traders;
* maker and taker volume;
* daily volume and fee charts;
* breakdowns by market and by trader, plus recent fills;
* a **Download CSV** export of every attributed fill;
* a lookup that tells you whether a given user has approved you.

The [Reporting API](https://www.aevo.xyz/docs/api-reference/builder-codes/reporting-api.md) returns the same data. Use a read-only API key on your fee account for dashboards and accounting.

## Fees and limits

* **Perpetuals:** `builder fee = fee rate × price × contracts`. Aevo caps the rate at 5 bps.
* **Options:** `builder fee = min(fee rate × index price × contracts, premium cap × premium × contracts)`. Aevo caps the rate at 3 bps, and the premium cap is 5%. See [Perpetuals vs Options Fees](https://www.aevo.xyz/docs/trading-and-staking-rewards/aevo-builder-codes/perps-vs-options-fees.md) for worked examples.
* Aevo rejects an order with a rate above the cap for its instrument type, or above the user's approved maximum.
* [`GET /builder-config`](https://www.aevo.xyz/docs/api-reference/urls/public-api/getbuilderconfig.md) publishes the live caps.
* Aevo credits each fee to your fee account in USDC as the fill settles. You don't claim a payout.

## Good practice

* **Tell users what you charge** and what your app does on their behalf.
* **Read the caps from `GET /builder-config` at startup.** Don't hardcode them; Aevo can change them.
* **Test on testnet first** ([testnet.aevo.xyz](https://testnet.aevo.xyz)). Testnet runs its own caps and can have option builder fees switched off, so read `GET /builder-config` on each environment. See the [testnet guide](https://www.aevo.xyz/docs/api-reference/builder-codes/testnet-and-reconciliation.md).

Aevo may suspend a builder that misleads users or abuses the program. A suspended builder can't charge new fees until Aevo reactivates it. Aevo can also disable a builder for good.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.aevo.xyz/docs/trading-and-staking-rewards/aevo-builder-codes/for-builders.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
