Files
PolymarketDocumentation/docs/developers/builders/examples.md
T
2026-02-16 13:12:06 +01:00

2.3 KiB

Examples

Complete Next.js applications demonstrating Polymarket builder integration

Overview

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

Multiple wallet providers Safe & Proxy wallet support Orders, positions, CTF ops

Safe Wallet Examples

Deploy Gnosis Safe wallets for your users:

MetaMask, Phantom, Rabby, and other browser wallets Privy embedded wallets Magic Link email/social authentication Turnkey embedded wallets

Proxy Wallet Examples

For existing Magic Link users from Polymarket.com:

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 Safe vs Proxy wallets * Safe wallet deployment via Relayer * Batch token approvals (USDC.e + outcome tokens) * CTF operations (split, merge, redeem) * Transaction monitoring * CLOB client initialization * Order placement with builder attribution * Position and order management * Market discovery via Gamma API