For developers
Context is an onchain prediction market protocol built on Base. Markets resolve through our AI-powered Oracle, and trading happens through a central limit order book (CLOB) that matches signed orders offchain before settling onchain.What makes Context different
AI-native Oracle
Markets resolve automatically using AI agents that verify outcomes against trusted sources. No human intervention
needed for most resolutions.
CLOB trading
True orderbook trading with limit and market orders. Better prices, tighter spreads, and more control than AMM-based
markets.
Onchain settlement
Orders are matched offchain for speed, then settled onchain for security. Your funds are always in your control.
Smart wallet support
Native support for EIP-1271 smart contract wallets. Trade from your Safe, Privy embedded wallet, or any smart
account.
Get started
The fastest way to build on Context is with the SDK. It handles API calls, EIP-712 signing, and on-chain transactions for you.Quick links
Quickstart
Get up and running in 2 minutes
SDK reference
Full SDK documentation
Place your first order
Fund your account and trade
Core concepts
Markets
Every market on Context has:- Outcome tokens - ERC1155 tokens representing each possible outcome (e.g., “Yes” and “No”)
- Orderbook - Buy and sell orders at different price levels
- Resolution - An end time after which the Oracle determines the winning outcome
Order flow
The SDK handles steps A-C automatically. You specify what you want to trade (market, outcome, price, size) and the SDK encodes, signs, and submits the order.Authentication
Most endpoints require an API key. Public read endpoints (markets, quotes, orderbook, activity) do not require authentication. Public endpoints — no auth needed:- Market data, quotes, orderbooks, price history, oracle, activity
- Orders, portfolio, balance
Contract addresses
| Contract | Mainnet (Base 8453) | Testnet (Base Sepolia 84532) |
|---|---|---|
| Settlement | 0x00000000008c286A2aaa99c6Be3b3D405A929500 | 0xa9b830f4496b88c2d3C103fB96Df8f413031eBDD |
| Holdings | 0x0000000000CcA5bC44912C63d63e1673FeE923f6 | 0xBed9a1A6CB168D60aD2C7770Be6B62bD9244D6d3 |
| Collateral token | USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 | USDC 0xBbee2756d3169CF7065e5E9C4A5EA9b1D1Fd415e |
| Permit2 | 0x000000000022D473030F116dDEE9F6B43aC78BA3 | 0x000000000022D473030F116dDEE9F6B43aC78BA3 |
For testnet addresses and configuration, see the Testnet guide.
Base URL
Support
Building something on Context? We’d love to hear about it.Join our Discord
Get help from the team and community