Odel
Event Resolver API

Event Resolver API

@br0ski777Developer ToolsTypeScriptUpdated 1mo ago

Resolve prediction market events. Price checks, claim verification, outcome confidence.

Server endpointSSE

This is the third-party server itself — Odel doesn't run it. Hitting this URL directly talks straight to the upstream server with no auth or proxying. Connect through Odel to front it with managed auth.

Event Resolver API

Resolve real-world events for prediction market settlement. Aggregates data from multiple sources to determine if an event occurred, with confidence scores and source attribution.

What It Does / Endpoints

EndpointMethodPriceDescription
/api/resolvePOST$0.005Full event resolution with confidence score and sources
/api/verifyPOST$0.003Quick-verify a factual claim (true/false/unverifiable)
/api/price-checkPOST$0.002Check if crypto price crossed a threshold

Example Request/Response

POST /api/resolve

curl -X POST https://event-resolver-production.up.railway.app/api/resolve \
  -H "Content-Type: application/json" \
  -d '{"question": "Did BTC reach $100K?", "type": "binary"}'

Response:

{
  "question": "Did BTC reach $100K?",
  "resolved": true,
  "outcome": "Yes",
  "confidence": 95,
  "sources": [
    {
      "name": "CoinGecko",
      "url": "https://www.coingecko.com/en/coins/bitcoin",
      "agrees": true
    }
  ],
  "timestamp": "2026-04-13T12:00:00.000Z",
  "type": "binary"
}

POST /api/verify

curl -X POST https://event-resolver-production.up.railway.app/api/verify \
  -H "Content-Type: application/json" \
  -d '{"claim": "Bitcoin is above $90,000"}'

Response:

{
  "claim": "Bitcoin is above $90,000",
  "verdict": "true",
  "confidence": 95,
  "evidence": [
    "bitcoin current price: $102,450 (via CoinGecko)",
    "Threshold $90,000 above: crossed"
  ]
}

POST /api/price-check

curl -X POST https://event-resolver-production.up.railway.app/api/price-check \
  -H "Content-Type: application/json" \
  -d '{"asset": "bitcoin", "threshold": 100000, "direction": "above"}'

Response:

{
  "asset": "bitcoin",
  "currentPrice": 102450.23,
  "threshold": 100000,
  "direction": "above",
  "crossed": true,
  "crossedAt": "2026-04-13T12:00:00.000Z",
  "timestamp": "2026-04-13T12:00:00.000Z"
}

Use Cases

  • Prediction market settlement -- Automated oracle for resolving binary, numeric, and categorical outcomes on-chain
  • Fact checking -- Quick verification of claims with confidence scores and source attribution
  • Price monitoring -- Check if crypto assets crossed key price thresholds for contract settlement
  • Event tracking -- Determine if real-world events (elections, sports, policy changes) occurred
  • On-chain resolution -- Provide objective data for HIP-4, Polymarket, or custom smart contract settlement

MCP Integration

Add to your Claude Desktop or Cursor config:

{
  "mcpServers": {
    "event-resolver": {
      "url": "https://event-resolver-production.up.railway.app/sse"
    }
  }
}

Payment

All endpoints use x402 protocol -- pay-per-call with USDC on Base L2. No API keys, no subscriptions. Your agent pays automatically.

Related APIs