{
  "openapi": "3.1.0",
  "info": { "title": "checktxid transaction checker", "version": "1.0.0",
    "description": "Plain-English status of any crypto transaction on 50+ networks (Bitcoin, Ethereum, Tron/USDT, BNB Chain, Solana, Base, Arbitrum, Polygon, Litecoin, XRP, TON and more). Free, no key. Read-only public blockchain data." },
  "servers": [{ "url": "https://checktxid.com" }],
  "paths": {
    "/api/tx/{txid}": {
      "get": {
        "operationId": "checkTransaction",
        "summary": "Check a crypto transaction by ID, hash, signature or explorer link",
        "description": "Detects the network automatically and explains what happened (confirmed, pending, failed, not found) and what to do next. Give the user live_url to follow it.",
        "parameters": [
          { "name": "txid", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Transaction ID / hash / Solana signature, or a URL-encoded block explorer link." },
          { "name": "format", "in": "query", "required": false, "schema": { "type": "string", "enum": ["json", "text"] }, "description": "text returns a plain-English summary." }
        ],
        "responses": { "200": { "description": "Result", "content": { "application/json": { "schema": { "type": "object", "properties": {
          "ok": { "type": "boolean" }, "found": { "type": "boolean" },
          "status": { "type": "string", "enum": ["confirmed", "pending", "failed", "not_found"] },
          "network": { "type": "string" }, "title": { "type": "string" }, "summary": { "type": "string" },
          "amount": { "type": ["object", "null"] }, "advice": { "type": "array", "items": { "type": "object", "properties": { "title": { "type": "string" }, "text": { "type": "string" } } } },
          "explorer_url": { "type": "string" }, "live_url": { "type": "string" }, "message": { "type": "string" } } } } } } }
      }
    }
  }
}
