Skip to main content

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.

A builder is a person, group, or organization that routes orders from users to Polymarket. If you’ve created a platform that allows users to trade on Polymarket through your system, this program is for you.

Program Benefits

Gasless Transactions

All onchain operations are gas-free through our relayer

Order Attribution

Get credit for orders and compete for grants on the Builder Leaderboard

What You Get

BenefitDescription
Relayer AccessGas-free wallet deployment, approvals, order execution and CTF operations
Volume TrackingAll orders attributed to your builder profile
LeaderboardPublic visibility on builders.polymarket.com
SupportTelegram channel and engineering support (Verified+)
EOA wallets do not have relayer access. Users trading directly from an EOA pay their own gas fees.

How It Works

1

User Places Order

User places an order through your application.
2

Attach Builder Code

Your app adds your builderCode to the order struct.
3

Submit to CLOB

Order is submitted to Polymarket’s CLOB — the builder code is serialized onchain as part of the signed order.
4

Trade Execution

Polymarket matches the order and covers gas fees for onchain operations.
5

Volume Attribution

Volume is credited to your builder account for every matched trade where your code is attached.

Getting Started

1

Create Builder Profile

Go to polymarket.com/settings?tab=builder and copy your builder code.
2

Attach Your Builder Code

Pass builderCode on every order you submit — see Order Attribution.
3

Enable Gasless Transactions

Use the Relayer Client for gas-free wallet deployment and onchain operations.
4

Track Performance

Monitor your volume on the Builder Leaderboard.

SDKs and Libraries

CLOB Client (TypeScript)

Place orders with builder attribution

CLOB Client (Python)

Place orders with builder attribution

Relayer Client (TypeScript)

Gasless onchain transactions

Relayer Client (Python)

Gasless onchain transactions

CLOB Client (Rust)

Place orders with builder attribution

Examples

These open-source demo applications show how to integrate Polymarket’s CLOB Client and Builder Relayer Client for gasless trading with builder order attribution.

Authentication

Multiple wallet providers

Gasless Trading

Deposit wallet support for new API users

Full Integration

Orders, positions, CTF ops

Deposit Wallet Integrations

New API users should use deposit wallets. Use the Builder Relayer Client to deploy deposit wallets and execute signed wallet batches, then place CLOB orders with POLY_1271. See the Deposit Wallet Guide for TypeScript, Python, Rust, and direct API integration details.

Existing Safe Wallet Examples

Existing Safe integrations can continue using Gnosis Safe wallets:

wagmi + Safe

MetaMask, Phantom, Rabby, and other browser wallets

Privy + Safe

Privy embedded wallets

Magic Link + Safe

Magic Link email/social authentication

Turnkey + Safe

Turnkey embedded wallets

Existing Proxy Wallet Examples

For existing Magic Link users from Polymarket.com:

Magic Link + Proxy

Auto-deploying proxy wallets for Polymarket.com Magic users

What Each Demo Covers

  • User sign-in via wallet provider
  • User API credential derivation (L2 auth)
  • Builder config with remote signing
  • Signature types for Deposit Wallet, Safe, and Proxy wallets

Next Steps

Get API Keys

Create and manage your Builder API credentials.

Understand Tiers

Learn about rate limits and how to upgrade.

Attribute Orders

Configure your client to credit trades to your account.

Gasless Guide

Set up gasless transactions for your users.