2026-04-14 21:53:47 +02:00
> ## Documentation Index
> Fetch the complete documentation index at: https://docs.polymarket.com/llms.txt
> Use this file to discover all available pages before exploring further.
2026-04-20 01:19:37 +02:00
# Builder Code
2026-02-19 14:31:02 +01:00
2026-04-20 01:19:37 +02:00
> Your builder code for order attribution
2026-02-19 14:31:02 +01:00
2026-04-20 01:19:37 +02:00
Your **Builder Code** is a `bytes32` identifier that attributes orders routed through your application to your builder profile. Attach it to every order you submit — no additional authentication is required.
2026-02-19 14:31:02 +01:00
## Accessing Your Builder Profile
<Steps>
<Step title="Direct Link">
Go to
[polymarket.com/settings?tab=builder ](https://polymarket.com/settings?tab=builder )
</Step>
<Step title="From Menu">Click your profile image → Select "Builders"</Step>
</Steps>
2026-04-20 01:19:37 +02:00
## Getting Your Builder Code
2026-02-19 14:31:02 +01:00
2026-04-20 01:19:37 +02:00
In the **Builder Code** section of your profile, copy the `bytes32` value. It looks like:
2026-02-19 14:31:02 +01:00
2026-04-20 01:19:37 +02:00
```
0x0000000000000000000000000000000000000000000000000000000000000001
```
2026-02-19 14:31:02 +01:00
2026-04-20 01:19:37 +02:00
Store it in your environment variables or a secrets manager.
2026-02-19 14:31:02 +01:00
2026-04-20 01:19:37 +02:00
<Note>
Builder codes are public identifiers — they appear onchain in the `builder`
field of every order you attribute. Only you control which orders include
your code, so keep it scoped to the apps you own.
</Note>
2026-02-19 14:31:02 +01:00
## Profile Settings
Your builder profile includes customizable settings:
| Setting | Description |
| ------------------- | ----------------------------------------------------------------------- |
| **Profile Picture** | Displayed on the [Builder Leaderboard ](https://builders.polymarket.com ) |
| **Builder Name** | Public name shown on the leaderboard |
| **Builder Address** | Your unique builder identifier (read-only) |
2026-04-20 01:19:37 +02:00
| **Builder Code** | The `bytes32` code you attach to orders |
2026-02-19 14:31:02 +01:00
| **Current Tier** | Your rate limit tier: Unverified, Verified, or Partner |
## Environment Variables
2026-04-20 01:19:37 +02:00
Store your builder code as an environment variable:
2026-02-19 14:31:02 +01:00
<Tabs>
<Tab title="Bash">
```bash .env theme={null}
2026-04-20 01:19:37 +02:00
POLY_BUILDER_CODE=0x0000000000000000000000000000000000000000000000000000000000000001
2026-02-19 14:31:02 +01:00
` ``
</Tab>
<Tab title="TypeScript">
2026-04-14 21:53:47 +02:00
` ``typescript theme={null}
2026-04-20 01:19:37 +02:00
const builderCode = process.env.POLY_BUILDER_CODE!;
2026-02-19 14:31:02 +01:00
` ``
</Tab>
<Tab title="Python">
2026-04-14 21:53:47 +02:00
` ``python theme={null}
2026-02-19 14:31:02 +01:00
import os
2026-03-30 12:53:20 +02:00
2026-04-20 01:19:37 +02:00
builder_code = os.environ["POLY_BUILDER_CODE"]
2026-03-30 12:53:20 +02:00
` ``
</Tab>
2026-02-19 14:31:02 +01:00
</Tabs>
2026-04-20 01:19:37 +02:00
## Using Your Builder Code
Pass ` builderCode` on every order to attribute it to your builder profile:
<CodeGroup>
` ``typescript TypeScript theme={null}
const response = await client.createAndPostOrder(
{
tokenID: "0x...",
price: 0.55,
size: 100,
side: Side.BUY,
builderCode: process.env.POLY_BUILDER_CODE!,
},
{ tickSize: "0.01", negRisk: false },
);
` ``
` ``python Python theme={null}
2026-05-03 14:55:37 +02:00
from py_clob_client_v2 import OrderArgs, PartialCreateOrderOptions
from py_clob_client_v2.order_builder.constants import BUY
2026-04-20 01:19:37 +02:00
response = client.create_and_post_order(
OrderArgs(
token_id="0x...",
price=0.55,
size=100,
side=BUY,
builder_code=os.environ["POLY_BUILDER_CODE"],
),
2026-05-03 14:55:37 +02:00
options=PartialCreateOrderOptions(tick_size="0.01", neg_risk=False),
2026-04-20 01:19:37 +02:00
)
` ``
</CodeGroup>
See [Order Attribution ](/trading/orders/attribution ) for full details.
2026-02-19 14:31:02 +01:00
## Troubleshooting
<AccordionGroup>
<Accordion title="Rate limit exceeded">
**Cause:** You've exceeded your tier's daily transaction limit.
**Solution:**
* Wait until the daily limit resets
* [Contact Polymarket ](/builders/tiers#contact ) to upgrade your tier
</Accordion>
2026-04-20 01:19:37 +02:00
<Accordion title="Builder code not found">
**Cause:** You haven't created a builder profile yet.
2026-02-19 14:31:02 +01:00
2026-04-20 01:19:37 +02:00
**Solution:** Go to
[polymarket.com/settings?tab=builder ](https://polymarket.com/settings?tab=builder )
and set up your profile to get a builder code.
2026-02-19 14:31:02 +01:00
</Accordion>
</AccordionGroup>
## Next Steps
<CardGroup cols={2}>
<Card title="Attribute Orders" icon="tag" href="/trading/orders/attribution">
2026-04-20 01:19:37 +02:00
Attach your builder code to orders for volume credit.
2026-02-19 14:31:02 +01:00
</Card>
<Card title="Understand Tiers" icon="layer-group" href="/builders/tiers">
Learn about rate limits and how to upgrade.
</Card>
</CardGroup>