{
  "openapi": "3.1.0",
  "info": {
    "title": "Chain RPC Gateway",
    "summary": "JSON-RPC for Ethereum, Base, and Solana, paid per call",
    "description": "Full-node JSON-RPC for Ethereum, Base, and Solana mainnets. Send one JSON-RPC request per HTTP call.",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://pay-servicerouter.agents.bakingbad.dev/service/chain-rpc"
    }
  ],
  "security": [
    {
      "paymentKey": []
    }
  ],
  "components": {
    "securitySchemes": {
      "paymentKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "A Service Router payment key, such as sr_live_…. Or pay per call with x402 or MPP."
      }
    }
  },
  "paths": {
    "/eth": {
      "post": {
        "operationId": "ethRpc",
        "summary": "Ethereum JSON-RPC",
        "x-payment-info": {
          "price": "0.0005",
          "currency": "USD",
          "methods": [
            "credits"
          ]
        },
        "responses": {
          "200": {
            "description": "OK. Paid calls carry Servicerouter-Receipt, PAYMENT-RESPONSE, or Payment-Receipt."
          },
          "402": {
            "description": "Payment required: the answer lists credits, x402, and MPP options."
          }
        }
      }
    },
    "/base": {
      "post": {
        "operationId": "baseRpc",
        "summary": "Base JSON-RPC",
        "x-payment-info": {
          "price": "0.0005",
          "currency": "USD",
          "methods": [
            "credits"
          ]
        },
        "responses": {
          "200": {
            "description": "OK. Paid calls carry Servicerouter-Receipt, PAYMENT-RESPONSE, or Payment-Receipt."
          },
          "402": {
            "description": "Payment required: the answer lists credits, x402, and MPP options."
          }
        }
      }
    },
    "/sol": {
      "post": {
        "operationId": "solRpc",
        "summary": "Solana JSON-RPC",
        "x-payment-info": {
          "price": "0.0005",
          "currency": "USD",
          "methods": [
            "credits"
          ]
        },
        "responses": {
          "200": {
            "description": "OK. Paid calls carry Servicerouter-Receipt, PAYMENT-RESPONSE, or Payment-Receipt."
          },
          "402": {
            "description": "Payment required: the answer lists credits, x402, and MPP options."
          }
        }
      }
    }
  }
}
