Changelog
Recent updates and improvements to Context.- Contract migration: Upgraded to Settlement V2 and Holdings V2 on both mainnet and testnet. New contracts bring budget-native buy orders, explicit order kinds (
BUY,SELL_INVENTORY,SELL_NO_INVENTORY), and a single unifiedSignedOrdertype replacing the oldSignedOrder+MarketOrderIntentsplit. Users are migrated automatically through the app. See the contract migration guide for developer integration details. - SDK 0.7.0 — migration module: New
ctx.migrationmodule handles the full V1 → V2 migration flow:getStatus(),start(),migrateFunds(),signSponsoredMigrateFunds(),restorePendingOrders(),dismissOrders(), andsignAddressAuthorization(). Supports sponsored (gasless) fund migration when available. - New contract addresses: Settlement V2 mainnet
0x00000000008c286A2aaa99c6Be3b3D405A929500, Holdings V2 mainnet0x0000000000CcA5bC44912C63d63e1673FeE923f6. Legacy contracts remain operational for migration but are deprecated. See testnet addresses for testnet deployments. - Settlement V2 order changes: Buy orders are now budget-native (
maxCollateralIn+minSharesOut) instead of price/size. NewtimeInForceparameter (GTC, IOC). Consumption accounting is per-order-kind.inventoryModeConstraintreplaced byorderKind.
- Chain-aware dispatch (SDK 0.6.0):
setup()anddeposit()now automatically use gasless relay on testnet and on-chain transactions on mainnet. No more manualgaslessSetup()/gaslessDeposit()calls needed — the SDK handles it based on yourchainsetting. - Granular approval methods: New
approveUsdc()andapproveOperator()methods let you call each approval independently.onchainSetup()andonchainDeposit()let you force on-chain transactions regardless of chain. - New
AccountStatustype:status()now returns richer data —usdcBalance,needsUsdcApproval,needsOperatorApproval, andisReady(true when all approvals are in place). Replaces the ambiguousneedsApprovalsandneedsGaslessSetupfields. - React SDK 0.2.0: New
useApproveUsdc()anduseApproveOperator()hooks.useAccountSetupanduseDepositsimplified — they now call the chain-aware SDK methods directly. - Ecosystem packages:
context-markets-mcp0.2.0,context-markets-cli0.2.0, andcontext-markets-react0.2.0 all updated for the new account types.
- Multi-chain support (SDK 0.5.0): All ecosystem packages now support chain selection between Base mainnet and Base Sepolia testnet. Pass
chain: "testnet"to the SDK client, setCONTEXT_CHAIN=testnetfor the MCP server, use--chain testnetwith the CLI, or add achainprop to the React provider. Defaults to mainnet. - Ecosystem packages v0.1.1:
context-markets-mcp,context-markets-cli, andcontext-markets-reactall bumped to 0.1.1 with multi-chain support.
- Package rename: All ecosystem packages have been renamed for consistency —
@contextwtf/sdkis nowcontext-markets,@contextwtf/mcpis nowcontext-markets-mcp,@contextwtf/cliis nowcontext-markets-cli, and@contextwtf/reactis nowcontext-markets-react. All packages are published on npm. - Claude Code plugin: Context is now available in the Claude Code marketplace. Install with
claude plugin marketplace add contextwtf/context-pluginto get prediction market tools directly in your agent workflows.
- Market prices:
currentPricereplaced: ThecurrentPricefield on market outcome prices has been removed, replaced bysellPrice(best bid) andbuyPrice(best ask). Applies tooutcomePricesinGET /marketsandGET /markets/{id}. A newchancePercentagefield (integer, 0–100) has been added for convenience. - Portfolio positions:
currentPricerenamed toprice: ThecurrentPricefield on portfolio positions (GET /portfolio/positions) has been renamed toprice. Type and semantics are unchanged. - New search endpoint:
GET /markets/search— search across markets by keyword withq,limit, andoffsetparameters. Returns matching markets ranked by relevance.
- Cancel order endpoint renamed: The
POST /orders/cancelsendpoint has been renamed toPOST /orders/cancel. The old/orders/cancelspath has been removed. - API key management: You can now create and manage API keys directly from the app. Go to Profile → Settings to generate keys. API keys are not tied to wallets — you can use the same key with any signing wallet. For market creation access, reach out to @context on X. See the API keys guide for details.
- Self-trade detection in simulations: Both simulation endpoints now detect and warn when your order would cross against your own resting orders. The
warningsfield in simulation responses is now an array of objects instead of strings — each with atypefield. The newSELF_TRADEwarning includes details about which orders would self-trade. - For Agents: New documentation section for AI agents building on Context — agent overview with capabilities and integration patterns, plus skills documentation for structured workflows.
- TypeScript SDK reference: Complete SDK documentation covering configuration, best practices, and API reference.
- Developer docs refresh: Major restructure — new quickstart guide, protocol overview, updated market data and placing orders guides, plus a refreshed OpenAPI specification.
- User guide updates: New create a market guide, updated account creation and first trade flows, and a streamlined FAQ.
- New endpoints:
/v2/marketsfor listing and searching,/v2/markets/:id/orderbookwith ETag support,/v2/ordersfor create/list/cancel,/v2/orders/simulatefor pre-execution simulation,/v2/accountand/v2/portfoliofor account management and positions. - Improvements: Cursor-based pagination, ETag support for conditional requests, better error messages with specific error codes, and comprehensive rate limit headers.
- Documentation: Complete API reference with code examples, interactive orderbook visualizations, and a comprehensive trading bot guide.
- CLOB trading: Context now uses a central limit order book instead of an AMM — true orderbook trading with bid/ask spread, limit orders that rest in the book, market orders with slippage protection, and better price discovery. Existing positions remain valid; v1 API continues to work for basic operations, but new features require v2 API.
- AI Oracle updates: Faster resolution (minutes instead of hours), more data sources, better edge case handling, and clearer resolution explanations.
- Smart wallet support: Full support for smart contract wallets including Privy embedded wallets, Safe multisig, Coinbase Smart Wallet, and any ERC-4337 account.
- Base mainnet launch: Context is now live on Base mainnet with lower fees, fast confirmations, and full EVM compatibility.