# AI Option — Decentralized Prediction Market # Network: Arbitrum One (chainId 42161) # MasterFactory: 0x382941c8381315521C2afc92bfd7043E187A036a ## Endpoints (machine-readable) /api/all.json — All option markets across all factory versions /api/providers.json — All provider registries, active providers, stakes, prices, slashing rules, current gas /api/gas.json — Current L2 gas price snapshot /api/openapi.json — OpenAPI schema for tool-calling agents ## Costs an agent must budget for - ETH gas on Arbitrum (see /api/gas.json) - To trade: ETH deposit into option contract via deposit() then Option.placeBuy(side, price, amount) - To resolve as a provider: stake ETH (see minStakeEth per registry in /api/providers.json) and risk slashing - Provider revenue: pricePerResolutionEth per signed verdict accepted by a market ## Quick recipe 1. GET /api/all.json — pick an option (address, status, question) 2. If status == TRADING — call Option.deposit() then Option.placeBuy(side, price, amount) on Arbitrum 3. If status == RESOLVING — providers registered for the option's judgeAppId must call submitResolution() 4. After RESOLVED — call Option.claimReward() to collect winnings