{
  "openapi": "3.1.1",
  "info": {
    "title": "OpRail Telcoin REST API",
    "description": "Native TEL reads and caller-signed transaction submission. Amounts are exact decimal strings; heights are safe JSON integers. Each admitted operation consumes one account request, including upstream failures. Calendar-month quotas reset at 00:00 UTC. No automatic overages or finality guarantees. Optional indexed history uses bounded, owner-authenticated cursors and complete source coverage; every admitted history request (including status and source failures) costs one shared account credit. History is disabled unless separately configured. Select a network with the server URL prefix. Both networks share the account quota and rate window. The unprefixed route uses the configured default network only.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "/adiri",
      "description": "adiri"
    }
  ],
  "paths": {
    "/api/v1/balances/{address}": {
      "get": {
        "tags": [
          "Blockchain"
        ],
        "summary": "Get an address's native TEL balance",
        "description": "Integer balances are decimal strings in base units (18 decimals). balanceInEther is the exact TEL amount; the legacy property name is retained. The balance and block-number reads are sequential, not an atomic snapshot.",
        "operationId": "GetBalance",
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BalanceResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BalanceResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BalanceResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transactions/{txHash}": {
      "get": {
        "tags": [
          "Blockchain"
        ],
        "summary": "Look up a transaction by hash",
        "description": "Pending transactions have null blockNumber and transactionIndex. status is pending or mined, not execution success. timestamp is null because transaction lookup does not supply it. Use the receipt endpoint for execution status.",
        "operationId": "GetTransaction",
        "parameters": [
          {
            "name": "txHash",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^0x[0-9a-fA-F]{64}$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transactions/{txHash}/receipt": {
      "get": {
        "tags": [
          "Blockchain"
        ],
        "summary": "Get transaction execution status and logs",
        "description": "Returns 404 when no receipt is available (pending or unknown transaction). status is succeeded, reverted, or unknown for a receipt without a status field. A receipt can change or disappear after a reorganization; it is not a finality guarantee.",
        "operationId": "GetTransactionReceipt",
        "parameters": [
          {
            "name": "txHash",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^0x[0-9a-fA-F]{64}$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionReceiptResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionReceiptResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionReceiptResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/blocks/{blockNumber}": {
      "get": {
        "tags": [
          "Blockchain"
        ],
        "summary": "Get a block by decimal height",
        "description": "transactions always contains hashes. includeTransactions=true also populates transactionDetails with typed transactions. All numeric heights are limited to JavaScript's safe integer range.",
        "operationId": "GetBlock",
        "parameters": [
          {
            "name": "blockNumber",
            "in": "path",
            "required": true,
            "schema": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "includeTransactions",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BlockResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlockResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlockResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/blocks/latest": {
      "get": {
        "tags": [
          "Blockchain"
        ],
        "summary": "Get the current latest block",
        "description": "Reads the latest height then fetches that block; not a finality guarantee. transactions contains hashes, with transactionDetails populated only when includeTransactions=true.",
        "operationId": "GetLatestBlock",
        "parameters": [
          {
            "name": "includeTransactions",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BlockResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlockResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlockResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transactions/send": {
      "post": {
        "tags": [
          "Blockchain"
        ],
        "summary": "Broadcast a transaction signed by the caller",
        "description": "Accepts even-length 0x-prefixed signed bytes, at most 128 KiB. OpRail never receives a private key. pending means accepted for broadcast, not mined or successful. Writes are not automatically retried. A timeout can occur after acceptance: reconcile the signed transaction's hash before attempting another submission.",
        "operationId": "SendTransaction",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendTransactionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SendTransactionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SendTransactionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionSubmitResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionSubmitResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionSubmitResponse"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gas-price": {
      "get": {
        "tags": [
          "Blockchain"
        ],
        "summary": "Get the current suggested gas price",
        "operationId": "GetGasPrice",
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GasPriceResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GasPriceResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GasPriceResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/addresses/{address}/nonce": {
      "get": {
        "tags": [
          "Blockchain"
        ],
        "summary": "Get an address's mined transaction count",
        "description": "Uses the latest block tag, not pending. nonce is a decimal string to avoid JavaScript precision loss. nonceHex is the original RPC quantity.",
        "operationId": "GetTransactionCount",
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NonceResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NonceResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NonceResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/history/status": {
      "get": {
        "tags": [
          "History"
        ],
        "summary": "Read indexed history coverage and source generation",
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Gone",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/HistoryStatusResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HistoryStatusResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/HistoryStatusResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/addresses/{address}/transactions": {
      "get": {
        "tags": [
          "History"
        ],
        "summary": "Page indexed address transactions within complete historical coverage",
        "description": "First page requires fromBlock and toBlock (inclusive, at most 10000 blocks), optional limit 1-100 (default 50), order asc/desc and direction both/in/out. Continuation accepts cursor only at the same address. Cursors bind owner/network/filters/range/generation and expire 60 minutes after issuance. Empty covered pages succeed; coverage failures are explicit and admitted source failures consume one credit.",
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "FromBlock",
            "in": "query",
            "schema": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "ToBlock",
            "in": "query",
            "schema": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Limit",
            "in": "query",
            "schema": {
              "maximum": 100,
              "minimum": 1,
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Order",
            "in": "query",
            "schema": {
              "pattern": "^(asc|desc)$",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "Direction",
            "in": "query",
            "schema": {
              "pattern": "^(both|in|out)$",
              "enum": [
                "both",
                "in",
                "out"
              ],
              "type": "string"
            }
          },
          {
            "name": "Kind",
            "in": "query",
            "schema": {
              "enum": [
                "both",
                "native",
                "erc20"
              ],
              "type": "string"
            }
          },
          {
            "name": "Cursor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Topic0",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Topic1",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Topic2",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Topic3",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Gone",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/HistoryPageOfHistoryTransaction"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HistoryPageOfHistoryTransaction"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/HistoryPageOfHistoryTransaction"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/addresses/{address}/transfers": {
      "get": {
        "tags": [
          "History"
        ],
        "summary": "Page successful native TEL and ERC20 event-shaped transfers",
        "description": "Same bounded first-page/cursor rules as transaction history; optional kind both/native/erc20. Native logIndex is -1; ERC20 shape is not contract verification. No balances, traces, NFTs or token metadata. Native/ERC20 raw values are exact decimal strings; zero ERC20 and mint/burn events remain visible.",
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "FromBlock",
            "in": "query",
            "schema": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "ToBlock",
            "in": "query",
            "schema": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Limit",
            "in": "query",
            "schema": {
              "maximum": 100,
              "minimum": 1,
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Order",
            "in": "query",
            "schema": {
              "pattern": "^(asc|desc)$",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "Direction",
            "in": "query",
            "schema": {
              "pattern": "^(both|in|out)$",
              "enum": [
                "both",
                "in",
                "out"
              ],
              "type": "string"
            }
          },
          {
            "name": "Kind",
            "in": "query",
            "schema": {
              "enum": [
                "both",
                "native",
                "erc20"
              ],
              "type": "string"
            }
          },
          {
            "name": "Cursor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Topic0",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Topic1",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Topic2",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Topic3",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Gone",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/HistoryPageOfHistoryTransfer"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HistoryPageOfHistoryTransfer"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/HistoryPageOfHistoryTransfer"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/logs": {
      "get": {
        "tags": [
          "History"
        ],
        "summary": "Page indexed raw logs for a contract and bounded block range",
        "description": "Requires contract address on every request. First page requires fromBlock/toBlock, optional limit/order and exact topic0-topic3 filters (AND across positions). Continuation accepts address and cursor only. At most 10000 inclusive blocks, 100 items; no ABI decoding or OR topic arrays.",
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "FromBlock",
            "in": "query",
            "schema": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "ToBlock",
            "in": "query",
            "schema": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Limit",
            "in": "query",
            "schema": {
              "maximum": 100,
              "minimum": 1,
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Order",
            "in": "query",
            "schema": {
              "pattern": "^(asc|desc)$",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "Direction",
            "in": "query",
            "schema": {
              "pattern": "^(both|in|out)$",
              "enum": [
                "both",
                "in",
                "out"
              ],
              "type": "string"
            }
          },
          {
            "name": "Kind",
            "in": "query",
            "schema": {
              "enum": [
                "both",
                "native",
                "erc20"
              ],
              "type": "string"
            }
          },
          {
            "name": "Cursor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Topic0",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Topic1",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Topic2",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Topic3",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Gone",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/HistoryPageOfHistoryLog"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HistoryPageOfHistoryLog"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/HistoryPageOfHistoryLog"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ApiErrorResponse": {
        "required": [
          "code",
          "message"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "errors": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        }
      },
      "BalanceResponse": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string"
          },
          "balance": {
            "type": "string",
            "description": "Unsigned decimal string in TEL base units (18 decimals)."
          },
          "balanceInEther": {
            "type": "string",
            "description": "Exact decimal TEL amount; legacy property name retained."
          },
          "blockNumber": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "BlockResponse": {
        "type": "object",
        "properties": {
          "number": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer",
            "format": "int64"
          },
          "hash": {
            "type": "string"
          },
          "parentHash": {
            "type": "string"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "miner": {
            "type": "string"
          },
          "transactionCount": {
            "maximum": 2147483647,
            "minimum": 0,
            "type": "integer",
            "format": "int32"
          },
          "gasUsed": {
            "type": "string"
          },
          "gasLimit": {
            "type": "string"
          },
          "transactions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "transactionDetails": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/TransactionResponse"
            }
          }
        }
      },
      "GasPriceResponse": {
        "required": [
          "gasPrice",
          "gasPriceGwei",
          "gasPriceHex"
        ],
        "type": "object",
        "properties": {
          "gasPrice": {
            "type": "string"
          },
          "gasPriceGwei": {
            "type": "string"
          },
          "gasPriceHex": {
            "type": "string"
          }
        }
      },
      "HistoryCoverage": {
        "required": [
          "dataset",
          "status",
          "coveredStart",
          "coveredEnd",
          "completedHash",
          "completedAt"
        ],
        "type": "object",
        "properties": {
          "dataset": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "coveredStart": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "coveredEnd": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "completedHash": {
            "type": [
              "null",
              "string"
            ]
          },
          "completedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "HistoryLog": {
        "required": [
          "blockNumber",
          "blockHash",
          "transactionIndex",
          "logIndex",
          "transactionHash",
          "address",
          "topics",
          "data"
        ],
        "type": "object",
        "properties": {
          "blockNumber": {
            "type": "integer",
            "format": "int64"
          },
          "blockHash": {
            "type": "string"
          },
          "transactionIndex": {
            "type": "integer",
            "format": "int64"
          },
          "logIndex": {
            "type": "integer",
            "format": "int64"
          },
          "transactionHash": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "topics": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "data": {
            "type": "string"
          }
        }
      },
      "HistoryPageOfHistoryLog": {
        "required": [
          "data",
          "nextCursor",
          "network",
          "chainId",
          "genesisHash",
          "schemaVersion",
          "generation",
          "snapshotBlock",
          "coverage"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HistoryLog"
            }
          },
          "nextCursor": {
            "type": [
              "null",
              "string"
            ]
          },
          "network": {
            "type": "string"
          },
          "chainId": {
            "type": "string"
          },
          "genesisHash": {
            "type": "string"
          },
          "schemaVersion": {
            "type": "integer",
            "format": "int32"
          },
          "generation": {
            "type": "string",
            "format": "uuid"
          },
          "snapshotBlock": {
            "type": "integer",
            "format": "int64"
          },
          "coverage": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HistoryCoverage"
            }
          }
        }
      },
      "HistoryPageOfHistoryTransaction": {
        "required": [
          "data",
          "nextCursor",
          "network",
          "chainId",
          "genesisHash",
          "schemaVersion",
          "generation",
          "snapshotBlock",
          "coverage"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HistoryTransaction"
            }
          },
          "nextCursor": {
            "type": [
              "null",
              "string"
            ]
          },
          "network": {
            "type": "string"
          },
          "chainId": {
            "type": "string"
          },
          "genesisHash": {
            "type": "string"
          },
          "schemaVersion": {
            "type": "integer",
            "format": "int32"
          },
          "generation": {
            "type": "string",
            "format": "uuid"
          },
          "snapshotBlock": {
            "type": "integer",
            "format": "int64"
          },
          "coverage": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HistoryCoverage"
            }
          }
        }
      },
      "HistoryPageOfHistoryTransfer": {
        "required": [
          "data",
          "nextCursor",
          "network",
          "chainId",
          "genesisHash",
          "schemaVersion",
          "generation",
          "snapshotBlock",
          "coverage"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HistoryTransfer"
            }
          },
          "nextCursor": {
            "type": [
              "null",
              "string"
            ]
          },
          "network": {
            "type": "string"
          },
          "chainId": {
            "type": "string"
          },
          "genesisHash": {
            "type": "string"
          },
          "schemaVersion": {
            "type": "integer",
            "format": "int32"
          },
          "generation": {
            "type": "string",
            "format": "uuid"
          },
          "snapshotBlock": {
            "type": "integer",
            "format": "int64"
          },
          "coverage": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HistoryCoverage"
            }
          }
        }
      },
      "HistoryStatusResponse": {
        "required": [
          "network",
          "chainId",
          "genesisHash",
          "schemaVersion",
          "generation",
          "coverage"
        ],
        "type": "object",
        "properties": {
          "network": {
            "type": "string"
          },
          "chainId": {
            "type": "string"
          },
          "genesisHash": {
            "type": "string"
          },
          "schemaVersion": {
            "type": "integer",
            "format": "int32"
          },
          "generation": {
            "type": "string",
            "format": "uuid"
          },
          "coverage": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HistoryCoverage"
            }
          }
        }
      },
      "HistoryTransaction": {
        "required": [
          "blockNumber",
          "blockHash",
          "transactionIndex",
          "hash",
          "from",
          "to",
          "value",
          "success",
          "input"
        ],
        "type": "object",
        "properties": {
          "blockNumber": {
            "type": "integer",
            "format": "int64"
          },
          "blockHash": {
            "type": "string"
          },
          "transactionIndex": {
            "type": "integer",
            "format": "int64"
          },
          "hash": {
            "type": "string"
          },
          "from": {
            "type": "string"
          },
          "to": {
            "type": [
              "null",
              "string"
            ]
          },
          "value": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "input": {
            "type": "string"
          }
        }
      },
      "HistoryTransfer": {
        "required": [
          "blockNumber",
          "blockHash",
          "transactionIndex",
          "logIndex",
          "itemOrdinal",
          "transactionHash",
          "kind",
          "contractAddress",
          "from",
          "to",
          "value"
        ],
        "type": "object",
        "properties": {
          "blockNumber": {
            "type": "integer",
            "format": "int64"
          },
          "blockHash": {
            "type": "string"
          },
          "transactionIndex": {
            "type": "integer",
            "format": "int64"
          },
          "logIndex": {
            "type": "integer",
            "format": "int64"
          },
          "itemOrdinal": {
            "type": "integer",
            "format": "int32"
          },
          "transactionHash": {
            "type": "string"
          },
          "kind": {
            "enum": [
              "native",
              "erc20"
            ],
            "type": "string"
          },
          "contractAddress": {
            "type": [
              "null",
              "string"
            ]
          },
          "from": {
            "type": "string"
          },
          "to": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        }
      },
      "NonceResponse": {
        "required": [
          "address",
          "nonce",
          "nonceHex"
        ],
        "type": "object",
        "properties": {
          "address": {
            "type": "string"
          },
          "nonce": {
            "type": "string"
          },
          "nonceHex": {
            "type": "string"
          }
        }
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": [
              "null",
              "string"
            ]
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          },
          "instance": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SendTransactionRequest": {
        "required": [
          "signedTransaction"
        ],
        "type": "object",
        "properties": {
          "signedTransaction": {
            "maxLength": 262146,
            "minLength": 0,
            "pattern": "^0x(?:[0-9a-fA-F]{2})+$",
            "type": "string"
          }
        }
      },
      "TransactionLogResponse": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string"
          },
          "topics": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "data": {
            "type": "string"
          },
          "logIndex": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer",
            "format": "int64"
          },
          "removed": {
            "type": "boolean"
          }
        }
      },
      "TransactionReceiptResponse": {
        "type": "object",
        "properties": {
          "transactionHash": {
            "type": "string"
          },
          "blockNumber": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer",
            "format": "int64"
          },
          "blockHash": {
            "type": "string"
          },
          "transactionIndex": {
            "maximum": 2147483647,
            "minimum": 0,
            "type": "integer",
            "format": "int32"
          },
          "from": {
            "type": "string"
          },
          "to": {
            "type": [
              "null",
              "string"
            ]
          },
          "contractAddress": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "enum": [
              "succeeded",
              "reverted",
              "unknown"
            ],
            "type": "string"
          },
          "gasUsed": {
            "type": "string"
          },
          "cumulativeGasUsed": {
            "type": "string"
          },
          "effectiveGasPrice": {
            "type": [
              "null",
              "string"
            ]
          },
          "logs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransactionLogResponse"
            }
          }
        }
      },
      "TransactionResponse": {
        "type": "object",
        "properties": {
          "hash": {
            "type": "string"
          },
          "from": {
            "type": "string"
          },
          "to": {
            "type": [
              "null",
              "string"
            ]
          },
          "value": {
            "type": "string"
          },
          "valueInEther": {
            "type": "string"
          },
          "blockNumber": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "transactionIndex": {
            "maximum": 2147483647,
            "minimum": 0,
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "gas": {
            "type": "string"
          },
          "gasPrice": {
            "type": [
              "null",
              "string"
            ]
          },
          "input": {
            "type": "string"
          },
          "nonce": {
            "type": "string"
          },
          "timestamp": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "status": {
            "enum": [
              "pending",
              "mined"
            ],
            "type": "string"
          }
        }
      },
      "TransactionSubmitResponse": {
        "type": "object",
        "properties": {
          "transactionHash": {
            "type": "string"
          },
          "status": {
            "enum": [
              "pending"
            ],
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "name": "X-API-Key",
        "in": "header"
      },
      "Bearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "security": [
    {
      "ApiKey": [ ]
    },
    {
      "Bearer": [ ]
    }
  ],
  "tags": [
    {
      "name": "Blockchain"
    },
    {
      "name": "History"
    }
  ]
}