{
  "openapi": "3.1.0",
  "info": {
    "title": "SovRoute — Agent Transaction Intelligence & Safety Infrastructure",
    "version": "2026.11",
    "x-guidance": "Queryable Bitcoin and EVM pre-sign intelligence and safety guardrails for autonomous AI agents. Input: transaction hashes, raw hex payloads, contract addresses, or chain parameters. Output: next-block inclusion ranks, mempool x-ray fee rates, RBF fee bump recommendations, address risk scores, and EVM execution simulations. Call before broadcasting transactions, signing payloads, or estimating dynamic miner fees to prevent frontrunning, stuck transactions, reorg exposure, and malicious contract traps.",
    "summary": "Pay-per-call Bitcoin Core v31.1 intelligence, EVM transaction simulation, address/token safety, unified pre-flight guardrail, market oracles and BTC Watchtower for autonomous AI agents.",
    "description": "Bare-metal Bitcoin & EVM pre-sign security infrastructure queryable on-the-fly via HTTP 402 (Base & Arc USDC x402, Lightning L402, MPP and TaskFuel).",
    "contact": {
      "email": "contact@sovroute.com",
      "url": "https://sovroute.com"
    }
  },
  "servers": [
    {
      "url": "https://sovroute.com",
      "description": "SovRoute Production Gateway (Edge x402 + Bare-Metal Proxy)"
    }
  ],
  "paths": {
    "/v1/chain/btc/next-block-xray": {
      "get": {
        "operationId": "btcNextBlockXray",
        "summary": "Next-Block Miner X-Ray",
        "description": "Live Bitcoin Core v31.1 candidate block template, cutoff fee rate, fill percentage and optional txid queue rank. $0.005 per call.",
        "tags": [
          "Chain Intelligence"
        ],
        "parameters": [
          {
            "name": "txid",
            "in": "query",
            "required": false,
            "description": "Optional 64-character hex Bitcoin txid for next-block queue rank",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.005"
          },
          "protocols": [
            {
              "x402": {}
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20C000000000000000000000b9537d11c60E8b50"
              }
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Next-Block Miner X-Ray response payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (HTTP-402 Base & Arc USDC x402 / L402 / MPP challenge)"
          }
        }
      }
    },
    "/v1/chain/btc/rbf-shield/{txid}": {
      "get": {
        "operationId": "btcRbfShield",
        "summary": "0-Conf RBF Double-Spend Shield",
        "description": "Screens unconfirmed Bitcoin transactions for BIP-125 replaceability, double-spend conflicts and ancestor package fee rate. $0.005 per call.",
        "tags": [
          "Transaction Security"
        ],
        "parameters": [
          {
            "name": "txid",
            "in": "path",
            "required": true,
            "description": "Required path parameter (txid) for endpoint lookup",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.005"
          },
          "protocols": [
            {
              "x402": {}
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20C000000000000000000000b9537d11c60E8b50"
              }
            }
          ]
        },
        "responses": {
          "200": {
            "description": "0-Conf RBF Double-Spend Shield response payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (HTTP-402 Base & Arc USDC x402 / L402 / MPP challenge)"
          }
        }
      }
    },
    "/v1/chain/btc/simulate-tx": {
      "post": {
        "operationId": "btcSimulateTx",
        "summary": "Zero-Broadcast TX Simulator",
        "description": "Dry-runs raw Bitcoin transactions against bare-metal Bitcoin Core v31.1 consensus and script policy without broadcasting. $0.005 per call.",
        "tags": [
          "Transaction Security"
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "rawTxHex"
                ],
                "properties": {
                  "rawTxHex": {
                    "type": "string",
                    "description": "Signed raw Bitcoin transaction hex to dry-run against consensus",
                    "example": "02000000..."
                  }
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.005"
          },
          "protocols": [
            {
              "x402": {}
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20C000000000000000000000b9537d11c60E8b50"
              }
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Zero-Broadcast TX Simulator response payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (HTTP-402 Base & Arc USDC x402 / L402 / MPP challenge)"
          }
        }
      }
    },
    "/v1/chain/btc/mempool": {
      "get": {
        "operationId": "btcMempool",
        "summary": "Deep Mempool Entropy",
        "description": "Real-time Bitcoin mempool congestion, size distribution and fee entropy extracted directly from bare-metal bitcoind. $0.001 per call.",
        "tags": [
          "Chain Intelligence"
        ],
        "parameters": [
          {
            "name": "detailed",
            "in": "query",
            "required": false,
            "description": "Optional flag to return full fee rate histogram and memory breakdown",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.001"
          },
          "protocols": [
            {
              "x402": {}
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20C000000000000000000000b9537d11c60E8b50"
              }
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Deep Mempool Entropy response payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (HTTP-402 Base & Arc USDC x402 / L402 / MPP challenge)"
          }
        }
      }
    },
    "/v1/chain/btc/fees": {
      "get": {
        "operationId": "btcFees",
        "summary": "Smart Bitcoin Fee Projections",
        "description": "Low-latency bare-metal Bitcoin Core v31.1 sat/vB fee rate projections across confirmation targets over L402, x402 (Base & Arc USDC), MPP and Edge TaskFuel. $0.001 per call.",
        "tags": [
          "Chain Intelligence"
        ],
        "parameters": [
          {
            "name": "target",
            "in": "query",
            "required": false,
            "description": "Confirmation target in blocks (1 to 144, default 1)",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 144,
              "default": 1
            }
          }
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.001"
          },
          "protocols": [
            {
              "x402": {}
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20C000000000000000000000b9537d11c60E8b50"
              }
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Smart Bitcoin Fee Projections response payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (HTTP-402 Base & Arc USDC x402 / L402 / MPP challenge)"
          }
        }
      }
    },
    "/v1/chain/btc/block": {
      "get": {
        "operationId": "btcBlock",
        "summary": "Bitcoin Block Header Metadata",
        "description": "Full Bitcoin Mainnet latest block header metadata (height, hash, difficulty, bits, timestamp) directly from bare-metal Bitcoin Core v31.1. $0.001 per call.",
        "tags": [
          "Chain Intelligence"
        ],
        "parameters": [
          {
            "name": "height",
            "in": "query",
            "required": false,
            "description": "Optional block height to inspect (defaults to latest mainnet block)",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.001"
          },
          "protocols": [
            {
              "x402": {}
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20C000000000000000000000b9537d11c60E8b50"
              }
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Bitcoin Block Header Metadata response payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (HTTP-402 Base & Arc USDC x402 / L402 / MPP challenge)"
          }
        }
      }
    },
    "/v1/chain/btc/tip": {
      "get": {
        "operationId": "btcTip",
        "summary": "Bitcoin Block Tip & Sync Status (Edge)",
        "description": "Lightweight mainnet block tip (height, hash, synced) with multi-provider edge failover over x402 (Base & Arc USDC) and TaskFuel. $0.001 per call.",
        "tags": [
          "Chain Intelligence"
        ],
        "parameters": [
          {
            "name": "verbose",
            "in": "query",
            "required": false,
            "description": "Whether to return verbose block header breakdown (default false)",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.001"
          },
          "protocols": [
            {
              "x402": {}
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20C000000000000000000000b9537d11c60E8b50"
              }
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Bitcoin Block Tip & Sync Status (Edge) response payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (HTTP-402 Base & Arc USDC x402 / L402 / MPP challenge)"
          }
        }
      }
    },
    "/v1/chain/btc/whale-tape": {
      "get": {
        "operationId": "btcWhaleTape",
        "summary": "Bare-Metal BTC ZMQ Whale Tape",
        "description": "Real-time bare-metal Bitcoin Core v31.1 ZMQ rawtx mempool stream capturing large unconfirmed transactions (>= 10 BTC default) over a 24h rolling window. $0.005 per call.",
        "tags": [
          "Chain Intelligence"
        ],
        "parameters": [
          {
            "name": "minBtc",
            "in": "query",
            "required": false,
            "description": "Minimum unconfirmed output threshold in BTC (default 10)",
            "schema": {
              "type": "number"
            }
          }
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.005"
          },
          "protocols": [
            {
              "x402": {}
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20C000000000000000000000b9537d11c60E8b50"
              }
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Bare-Metal BTC ZMQ Whale Tape response payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (HTTP-402 Base & Arc USDC x402 / L402 / MPP challenge)"
          }
        }
      }
    },
    "/v1/chain/evm/gas-pulse": {
      "get": {
        "operationId": "evmGasPulse",
        "summary": "Multi-Chain EVM Gas & Blob Pulse",
        "description": "Real-time WebSocket newHeads tracker across Ethereum, Base and Arbitrum reporting baseFeeGwei, EIP-4844 blobBaseFeeGwei, block utilization and trend. $0.001 per call.",
        "tags": [
          "Chain Intelligence"
        ],
        "parameters": [
          {
            "name": "chain",
            "in": "query",
            "required": false,
            "description": "Optional EVM chain name or ID (e.g. base, ethereum, arbitrum)",
            "schema": {
              "type": "string",
              "default": "base"
            }
          }
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.001"
          },
          "protocols": [
            {
              "x402": {}
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20C000000000000000000000b9537d11c60E8b50"
              }
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Multi-Chain EVM Gas & Blob Pulse response payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (HTTP-402 Base & Arc USDC x402 / L402 / MPP challenge)"
          }
        }
      }
    },
    "/v1/chain/evm/eip7702-shield": {
      "post": {
        "operationId": "evmEip7702Shield",
        "summary": "EIP-7702 AuthTx Security Scanner",
        "description": "Inspects EVM Pectra EIP-7702 authorization lists for drainer bytecode, unverified delegatecalls and cross-chain replay risk. $0.005 per call.",
        "tags": [
          "Transaction Security"
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "authorizationList"
                ],
                "properties": {
                  "executionChainId": {
                    "type": "integer",
                    "description": "Target EVM execution chain ID (e.g. 1, 8453, 42161)",
                    "example": 8453
                  },
                  "authorizationList": {
                    "type": "array",
                    "description": "Pectra EIP-7702 authorization entries to screen for drainer risk",
                    "items": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.005"
          },
          "protocols": [
            {
              "x402": {}
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20C000000000000000000000b9537d11c60E8b50"
              }
            }
          ]
        },
        "responses": {
          "200": {
            "description": "EIP-7702 AuthTx Security Scanner response payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (HTTP-402 Base & Arc USDC x402 / L402 / MPP challenge)"
          }
        }
      }
    },
    "/v1/chain/evm/bytecode-risk-ml": {
      "post": {
        "operationId": "evmBytecodeRiskMl",
        "summary": "ONNX EVM Bytecode Risk Classifier",
        "description": "Scores EVM contract bytecode for obfuscated drainer and exploit patterns using a PyTorch-trained ONNX neural classifier. $0.005 per call.",
        "tags": [
          "Transaction Security"
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "chainId": {
                    "type": "integer",
                    "description": "EVM chain ID for on-chain bytecode lookup",
                    "example": 8453
                  },
                  "address": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]{40}$",
                    "description": "20-byte EVM contract address to classify"
                  },
                  "bytecode": {
                    "type": "string",
                    "description": "Optional raw 0x-prefixed EVM bytecode to score directly"
                  }
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.005"
          },
          "protocols": [
            {
              "x402": {}
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20C000000000000000000000b9537d11c60E8b50"
              }
            }
          ]
        },
        "responses": {
          "200": {
            "description": "ONNX EVM Bytecode Risk Classifier response payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (HTTP-402 Base & Arc USDC x402 / L402 / MPP challenge)"
          }
        }
      }
    },
    "/v1/chain/evm/simulate-tx": {
      "post": {
        "operationId": "evmSimulateTx",
        "summary": "EVM Pre-Flight Transaction Simulator",
        "description": "Dry-runs EVM transactions via eth_call & gas estimation, decodes revert reasons, flags unlimited approvals, EIP-7702 targets and ONNX drainer risk. $0.005 per call.",
        "tags": [
          "Transaction Security"
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "chainId",
                  "from",
                  "to"
                ],
                "properties": {
                  "chainId": {
                    "type": "integer",
                    "description": "EVM chain ID (1, 10, 137, 8453, 42161, 11155111)",
                    "example": 8453
                  },
                  "from": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]{40}$",
                    "description": "Sender 20-byte EVM address"
                  },
                  "to": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]{40}$",
                    "description": "Target 20-byte EVM address"
                  },
                  "data": {
                    "type": "string",
                    "description": "Optional hex-encoded calldata (default 0x)",
                    "example": "0x"
                  },
                  "value": {
                    "type": "string",
                    "description": "Optional wei value as decimal or 0x-hex string",
                    "example": "0x0"
                  }
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.005"
          },
          "protocols": [
            {
              "x402": {}
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20C000000000000000000000b9537d11c60E8b50"
              }
            }
          ]
        },
        "responses": {
          "200": {
            "description": "EVM Pre-Flight Transaction Simulator response payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (HTTP-402 Base & Arc USDC x402 / L402 / MPP challenge)"
          }
        }
      }
    },
    "/v1/chain/evm/address-safety": {
      "post": {
        "operationId": "evmAddressSafety",
        "summary": "EVM Address, Contract & Token Safety",
        "description": "Classifies EOA, EIP-7702 delegated EOA, EIP-1967 proxy and ERC-20 tokens; detects privileged mint/pause/blacklist controls, dangerous opcodes and ONNX drainer score. $0.005 per call.",
        "tags": [
          "Transaction Security"
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "chainId",
                  "address"
                ],
                "properties": {
                  "chainId": {
                    "type": "integer",
                    "description": "EVM chain ID (1, 10, 137, 8453, 42161)",
                    "example": 8453
                  },
                  "address": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]{40}$",
                    "description": "20-byte EVM address, contract or ERC-20 token to inspect"
                  }
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.005"
          },
          "protocols": [
            {
              "x402": {}
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20C000000000000000000000b9537d11c60E8b50"
              }
            }
          ]
        },
        "responses": {
          "200": {
            "description": "EVM Address, Contract & Token Safety response payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (HTTP-402 Base & Arc USDC x402 / L402 / MPP challenge)"
          }
        }
      }
    },
    "/v1/chain/evm/address-safety/batch": {
      "post": {
        "operationId": "evmAddressSafetyBatch",
        "summary": "Batch EVM Address & Token Safety (10x)",
        "description": "Screens up to 10 EVM addresses in parallel (token, router, spender, recipient) and returns an aggregate overallVerdict with per-address risk breakdown. $0.010 per call.",
        "tags": [
          "Transaction Security"
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "chainId",
                  "addresses"
                ],
                "properties": {
                  "chainId": {
                    "type": "integer",
                    "description": "EVM chain ID for batch address screening",
                    "example": 8453
                  },
                  "addresses": {
                    "type": "array",
                    "description": "Up to 10 EVM addresses to screen in parallel",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010"
          },
          "protocols": [
            {
              "x402": {}
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20C000000000000000000000b9537d11c60E8b50"
              }
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Batch EVM Address & Token Safety (10x) response payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (HTTP-402 Base & Arc USDC x402 / L402 / MPP challenge)"
          }
        }
      }
    },
    "/v1/guard/preflight": {
      "post": {
        "operationId": "guardPreflight",
        "summary": "Unified Pre-Flight Transaction Guard",
        "description": "Single-call ALLOW/WARN/BLOCK decision engine combining EVM simulation, address/token safety, EIP-7702 or BTC consensus + RBF shield and stablecoin peg context. $0.010 per call.",
        "tags": [
          "Transaction Security"
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "protocol"
                ],
                "properties": {
                  "protocol": {
                    "type": "string",
                    "enum": [
                      "evm",
                      "btc"
                    ],
                    "description": "Target transaction protocol (evm or btc)"
                  },
                  "chainId": {
                    "type": "integer",
                    "description": "EVM chain ID when protocol is evm",
                    "example": 8453
                  },
                  "from": {
                    "type": "string",
                    "description": "Sender address for EVM pre-flight simulation"
                  },
                  "to": {
                    "type": "string",
                    "description": "Target address for EVM pre-flight simulation"
                  },
                  "rawTxHex": {
                    "type": "string",
                    "description": "Signed raw Bitcoin transaction hex when protocol is btc"
                  },
                  "txid": {
                    "type": "string",
                    "description": "64-character hex Bitcoin txid for RBF double-spend check"
                  },
                  "stablecoinSymbol": {
                    "type": "string",
                    "enum": [
                      "USDC",
                      "USDT",
                      "USDe",
                      "DAI"
                    ],
                    "description": "Optional stablecoin peg risk check"
                  }
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010"
          },
          "protocols": [
            {
              "x402": {}
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20C000000000000000000000b9537d11c60E8b50"
              }
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Unified Pre-Flight Transaction Guard response payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (HTTP-402 Base & Arc USDC x402 / L402 / MPP challenge)"
          }
        }
      }
    },
    "/v1/intel/microstructure": {
      "get": {
        "operationId": "intelMicrostructure",
        "summary": "4-Exchange Microstructure Oracle",
        "description": "Zero-wait in-memory orderbook imbalance, cross-exchange spread (bps), 1m/5m CVD, funding and liquidation cascade score across Binance, Bybit, OKX and Hyperliquid. $0.005 per call.",
        "tags": [
          "Market Intelligence"
        ],
        "parameters": [
          {
            "name": "symbol",
            "in": "query",
            "required": false,
            "description": "Base asset symbol across 4 exchanges (BTC, ETH, SOL)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.005"
          },
          "protocols": [
            {
              "x402": {}
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20C000000000000000000000b9537d11c60E8b50"
              }
            }
          ]
        },
        "responses": {
          "200": {
            "description": "4-Exchange Microstructure Oracle response payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (HTTP-402 Base & Arc USDC x402 / L402 / MPP challenge)"
          }
        }
      }
    },
    "/v1/intel/polymarket-edge": {
      "get": {
        "operationId": "intelPolymarketEdge",
        "summary": "Polymarket CLOB vs Spot Edge",
        "description": "Live Polymarket CLOB orderbook probabilities and Gamma 24h volume paired with real-time 4-exchange spot price and orderbook imbalance. $0.005 per call.",
        "tags": [
          "Market Intelligence"
        ],
        "parameters": [
          {
            "name": "asset",
            "in": "query",
            "required": false,
            "description": "Target crypto asset for Polymarket CLOB comparison (BTC, ETH)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.005"
          },
          "protocols": [
            {
              "x402": {}
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20C000000000000000000000b9537d11c60E8b50"
              }
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Polymarket CLOB vs Spot Edge response payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (HTTP-402 Base & Arc USDC x402 / L402 / MPP challenge)"
          }
        }
      }
    },
    "/v1/intel/funding-arb": {
      "get": {
        "operationId": "intelFundingArb",
        "summary": "Cross-Exchange Funding & Basis Arb",
        "description": "Live 8h funding carry (APR) and Binance spot-to-perp basis across Binance, Bybit and OKX in RAM. $0.005 per call.",
        "tags": [
          "Market Intelligence"
        ],
        "parameters": [
          {
            "name": "symbol",
            "in": "query",
            "required": false,
            "description": "Perpetual contract base symbol (BTC, ETH, SOL)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.005"
          },
          "protocols": [
            {
              "x402": {}
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20C000000000000000000000b9537d11c60E8b50"
              }
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Cross-Exchange Funding & Basis Arb response payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (HTTP-402 Base & Arc USDC x402 / L402 / MPP challenge)"
          }
        }
      }
    },
    "/v1/intel/options-skew": {
      "get": {
        "operationId": "intelOptionsSkew",
        "summary": "Deribit DVOL & Options Skew Oracle",
        "description": "Real-time Deribit DVOL volatility index, market regime (CALM/ELEVATED/PANIC), ATM IV and OTM put-call skew. $0.005 per call.",
        "tags": [
          "Market Intelligence"
        ],
        "parameters": [
          {
            "name": "asset",
            "in": "query",
            "required": false,
            "description": "Deribit options underlying asset (BTC or ETH)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.005"
          },
          "protocols": [
            {
              "x402": {}
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20C000000000000000000000b9537d11c60E8b50"
              }
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Deribit DVOL & Options Skew Oracle response payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (HTTP-402 Base & Arc USDC x402 / L402 / MPP challenge)"
          }
        }
      }
    },
    "/v1/intel/stablecoin-peg": {
      "get": {
        "operationId": "intelStablecoinPeg",
        "summary": "Stablecoin Peg & Depeg Risk Oracle",
        "description": "Zero-wait multi-venue USD peg oracle across Kraken, Coinbase and Binance Spot tracking USDC, USDT, USDe and DAI deviation (bps) and depegRiskScore. $0.001 per call.",
        "tags": [
          "Market Intelligence"
        ],
        "parameters": [
          {
            "name": "symbol",
            "in": "query",
            "required": false,
            "description": "Stablecoin symbol to check (USDC, USDT, USDe, DAI)",
            "schema": {
              "type": "string",
              "enum": [
                "USDC",
                "USDT",
                "USDe",
                "DAI"
              ],
              "default": "USDC"
            }
          }
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.001"
          },
          "protocols": [
            {
              "x402": {}
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20C000000000000000000000b9537d11c60E8b50"
              }
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Stablecoin Peg & Depeg Risk Oracle response payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (HTTP-402 Base & Arc USDC x402 / L402 / MPP challenge)"
          }
        }
      }
    },
    "/v1/omni/pay-lightning": {
      "post": {
        "operationId": "omniPayLightning",
        "summary": "SUB-LIG Cross-Chain Lightning Bridge",
        "description": "Settles BOLT-11 Lightning invoices (up to 25 sats) from EVM/Solana USDC via Phoenixd and returns cryptographic paymentPreimage. $0.025 per call.",
        "tags": [
          "Agent Infrastructure"
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "invoice"
                ],
                "properties": {
                  "invoice": {
                    "type": "string",
                    "description": "Mainnet BOLT-11 Lightning invoice (up to 25 sats) to settle",
                    "example": "lnbc250n1p..."
                  }
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.025"
          },
          "protocols": [
            {
              "x402": {}
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20C000000000000000000000b9537d11c60E8b50"
              }
            }
          ]
        },
        "responses": {
          "200": {
            "description": "SUB-LIG Cross-Chain Lightning Bridge response payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (HTTP-402 Base & Arc USDC x402 / L402 / MPP challenge)"
          }
        }
      }
    },
    "/v1/chain/lightning/stats": {
      "get": {
        "operationId": "lightningStats",
        "summary": "Lightning Network Graph Topology",
        "description": "Global Lightning Network channel counts, active nodes, total satoshi capacity and routing fee rates. $0.001 per call.",
        "tags": [
          "Agent Infrastructure"
        ],
        "parameters": [
          {
            "name": "network",
            "in": "query",
            "required": false,
            "description": "Lightning network topology identifier (default mainnet)",
            "schema": {
              "type": "string",
              "default": "mainnet"
            }
          }
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.001"
          },
          "protocols": [
            {
              "x402": {}
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20C000000000000000000000b9537d11c60E8b50"
              }
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Lightning Network Graph Topology response payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (HTTP-402 Base & Arc USDC x402 / L402 / MPP challenge)"
          }
        }
      }
    },
    "/v1/watchtower/btc/watch": {
      "post": {
        "operationId": "btcWatchtower",
        "summary": "BTC TX & RBF Watchtower",
        "description": "Prepaid TTL event-driven Bitcoin Watchtower monitoring unconfirmed txids for confirmations, RBF replacements or double-spend conflicts with HMAC-signed webhooks. $0.010 per call.",
        "tags": [
          "Agent Infrastructure"
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "txid"
                ],
                "properties": {
                  "txid": {
                    "type": "string",
                    "pattern": "^[0-9a-fA-F]{64}$",
                    "description": "64-character hex Bitcoin txid to monitor"
                  },
                  "webhookUrl": {
                    "type": "string",
                    "description": "Optional public HTTPS webhook URL for HMAC-signed alerts"
                  },
                  "ttlHours": {
                    "type": "integer",
                    "description": "Monitoring window in hours (1 to 72, default 24)",
                    "example": 24
                  },
                  "confirmationsTarget": {
                    "type": "integer",
                    "description": "Confirmation target before closing watch (1 to 6)",
                    "example": 1
                  }
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010"
          },
          "protocols": [
            {
              "x402": {}
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20C000000000000000000000b9537d11c60E8b50"
              }
            }
          ]
        },
        "responses": {
          "200": {
            "description": "BTC TX & RBF Watchtower response payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (HTTP-402 Base & Arc USDC x402 / L402 / MPP challenge)"
          }
        }
      }
    }
  }
}
