Context SDK
The Context SDK is a TypeScript client for Context Markets. It wraps the REST API and handles EIP-712 order signing, so you can read market data and place trades with a few lines of code.Install
The SDK requires Node.js 18+ and is published to GitHub Packages under
@contextwtf/sdk.Quick start
Read market data (no auth)
Place an order (with signer)
You must set up your wallet before placing orders.
What’s included
Markets
Search markets, quotes, orderbooks, price history, oracle data
Orders
Place, cancel, and manage orders with automatic signing
Portfolio
View positions, balances, and claimable winnings
Account
Wallet setup, deposits, withdrawals, gasless operations
Pricing conventions
The SDK uses human-friendly units:| Value | Format | Example |
|---|---|---|
| Prices | Cents (1-99) | 45 = 45¢ = 45% probability |
| Sizes | Contracts | 10 = 10 contracts |
| Outcomes | String | "yes" or "no" |
Network
Currently targeting Base Sepolia testnet (chain ID 84532).| Contract | Address |
|---|---|
| Settlement | 0xCB6CBCb87fe36Dd48b08930867C8D1E5fDDeE251 |
| Holdings | 0x3A81C17a9bf6D5d425fbF67C4BE8aA279f8F6F95 |
| MarketFactory | 0x333271eB9a252F3CCc5fd9e6026B09C717Df01d5 |
| ResolutionTimelock | 0x9fE68A1595C049B54b797B599dAac90A60A94F91 |
| TUSD | 0xBbee2756d3169CF7065e5E9C4A5EA9b1D1Fd415e |