- Track volume on the Builder Leaderboard
- Earn rewards through the Builder Program
- Monitor performance via the Data API
Builder API Credentials
Each builder receives API credentials from their Builder Profile:| Credential | Description |
|---|---|
key | Your builder API key identifier |
secret | Secret key for signing requests |
passphrase | Additional authentication passphrase |
Remote Signing
Remote signing keeps your builder credentials secure on a server you control. The user’s client sends order details to your server, which adds the builder headers before forwarding to the CLOB.Server Implementation
Your signing server receives request details and returns the authentication headers:Client Configuration
Point the CLOB client to your signing server:Local Signing
Sign orders locally when you control the entire order placement flow (e.g., your backend places orders on behalf of users):Authentication Headers
The SDK automatically generates and attaches these headers to each request:| Header | Description |
|---|---|
POLY_BUILDER_API_KEY | Your builder API key |
POLY_BUILDER_TIMESTAMP | Unix timestamp of signature creation |
POLY_BUILDER_PASSPHRASE | Your builder passphrase |
POLY_BUILDER_SIGNATURE | HMAC signature of the request |
With local signing, the SDK constructs and attaches these headers
automatically. With remote signing, your server returns these headers and
the SDK attaches them.
Verifying Attribution
Get Builder Trades
Query trades attributed to your builder account to verify attribution is working:BuilderTrade includes: id, market, assetId, side, size, price, status, outcome, owner, maker, transactionHash, matchTime, fee, and feeUsdc.
Revoke Builder API Key
If your credentials are compromised, revoke them immediately:Troubleshooting
Invalid Signature Errors
Invalid Signature Errors
- Verify the request body is passed correctly as JSON - Check that
path,body, andmethodmatch what the client sends - Ensure your server and client use the same Builder API credentials
Missing Credentials
Missing Credentials
Ensure your environment variables are set: -
POLY_BUILDER_API_KEY -
POLY_BUILDER_SECRET - POLY_BUILDER_PASSPHRASEVolume not appearing on leaderboard
Volume not appearing on leaderboard
- Confirm your builder credentials are valid and not revoked - Check that orders are being placed with the builder config attached - Allow up to 24 hours for volume to appear on the leaderboard