{"openapi":"3.1.0","info":{"title":"Explorer API · Pay per request (x402)","description":"Pay for each request with USDC over the [x402 protocol](https://www.x402.org) — no account or API key needed.\n\n1. Send the `POST` request with its JSON body.\n2. The API answers `402 Payment Required` with the payment requirements for that endpoint.\n3. Pay with an x402-compatible client and retry the same request with the payment attached.\n4. The API returns `200` with the data.\n\nEach endpoint lists its price per request.","version":"1.0.0","contact":{"email":"api@blockchain.com"}},"servers":[{"url":"https://api.blockchain.info/explorer-gateway-kt"}],"tags":[{"name":"Bitcoin","description":"BTC blockchain endpoints"},{"name":"Bitcoin Cash","description":"BCH blockchain endpoints"},{"name":"Ethereum","description":"ETH blockchain endpoints"},{"name":"Solana","description":"SOL blockchain endpoints"},{"name":"Charts","description":"Bitcoin network statistics and charts"}],"paths":{"/x402/sol/blocks":{"post":{"summary":"Latest blocks","operationId":"getLatestBlocksX402","x-x402-price":5000,"tags":["Solana"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetLatestBlocksRequest"},"example":{"network":"SOL","limit":10}}}},"responses":{"200":{"description":"Latest blocks","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetLatestBlocksResponse"}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/sol/blocks)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Latest blocks), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/sol/blocks\nBody: {\"network\":\"SOL\",\"limit\":10}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/sol/block":{"post":{"summary":"Block","operationId":"getBlockX402","x-x402-price":5000,"tags":["Solana"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetBlockRequest"},"examples":{"full":{"summary":"Block with its full transaction array","value":{"network":"SOL","blockId":280000000}},"headerOnly":{"summary":"Block-level fields without the transaction array","value":{"network":"SOL","blockId":280000000,"includeTransactions":false}}}}}},"responses":{"200":{"description":"Block details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetBlockResponse"}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/sol/block)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Block), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/sol/block\nBody: {\"network\":\"SOL\",\"blockId\":280000000}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/sol/block/transactions":{"post":{"summary":"Block transactions","operationId":"getSolBlockTransactionsX402","x-x402-price":5000,"tags":["Solana"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetSolBlockTransactionsRequest"},"examples":{"firstPage":{"summary":"First 15 transactions in block order","value":{"network":"SOL","blockId":280000000}},"byFees":{"summary":"Second page, highest fees first","value":{"network":"SOL","blockId":280000000,"limit":15,"offset":15,"sort":"fees","order":"desc"}}}}}},"responses":{"200":{"description":"One page of block transactions plus the block's total transaction count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetSolBlockTransactionsResponse"}}}},"400":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/sol/block/transactions)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Block transactions), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/sol/block/transactions\nBody: {\"network\":\"SOL\",\"blockId\":280000000}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/sol/transaction":{"post":{"summary":"Transaction","operationId":"getTransactionX402","x-x402-price":5000,"tags":["Solana"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTransactionRequest"},"example":{"network":"SOL","txId":"4SMDZ7oiVvTyae1FrH2a4Li3hNNigZzc4s7QPiiGHk9xDsoSTPFbUSrV5KcRSDesj2BE11gvq8ua4DL3f5HFKxaW"}}}},"responses":{"200":{"description":"Parsed transaction","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTransactionResponse"}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/sol/transaction)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Transaction), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/sol/transaction\nBody: {\"network\":\"SOL\",\"txId\":\"4SMDZ7oiVvTyae1FrH2a4Li3hNNigZzc4s7QPiiGHk9xDsoSTPFbUSrV5KcRSDesj2BE11gvq8ua4DL3f5HFKxaW\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/sol/transaction/instructions":{"post":{"summary":"Transaction instructions","operationId":"getTransactionInstructionsX402","x-x402-price":5000,"tags":["Solana"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTransactionRequest"},"example":{"network":"SOL","txId":"4SMDZ7oiVvTyae1FrH2a4Li3hNNigZzc4s7QPiiGHk9xDsoSTPFbUSrV5KcRSDesj2BE11gvq8ua4DL3f5HFKxaW"}}}},"responses":{"200":{"description":"Parsed transaction with instructions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTransactionInstructionsResponse"}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/sol/transaction/instructions)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Transaction instructions), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/sol/transaction/instructions\nBody: {\"network\":\"SOL\",\"txId\":\"4SMDZ7oiVvTyae1FrH2a4Li3hNNigZzc4s7QPiiGHk9xDsoSTPFbUSrV5KcRSDesj2BE11gvq8ua4DL3f5HFKxaW\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/sol/transaction/raw":{"post":{"summary":"Raw transaction","operationId":"getTransactionRawX402","x-x402-price":5000,"tags":["Solana"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTransactionRequest"},"example":{"network":"SOL","txId":"4SMDZ7oiVvTyae1FrH2a4Li3hNNigZzc4s7QPiiGHk9xDsoSTPFbUSrV5KcRSDesj2BE11gvq8ua4DL3f5HFKxaW"}}}},"responses":{"200":{"description":"Raw Solana transaction","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RawTransaction"}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/sol/transaction/raw)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Raw transaction), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/sol/transaction/raw\nBody: {\"network\":\"SOL\",\"txId\":\"4SMDZ7oiVvTyae1FrH2a4Li3hNNigZzc4s7QPiiGHk9xDsoSTPFbUSrV5KcRSDesj2BE11gvq8ua4DL3f5HFKxaW\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/sol/address":{"post":{"summary":"Address","operationId":"getAddressX402","x-x402-price":5000,"tags":["Solana"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAddressRequest"},"example":{"network":"SOL","address":"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg","limit":10}}}},"responses":{"200":{"description":"Address details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAddressResponse"}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/sol/address)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Address), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/sol/address\nBody: {\"network\":\"SOL\",\"address\":\"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg\",\"limit\":10}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/sol/address/tokens":{"post":{"summary":"Token accounts","operationId":"getAddressTokensX402","x-x402-price":5000,"tags":["Solana"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAddressTokensRequest"},"example":{"network":"SOL","address":"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg"}}}},"responses":{"200":{"description":"Token balances for the address","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAddressTokensResponse"}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/sol/address/tokens)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Token accounts), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/sol/address/tokens\nBody: {\"network\":\"SOL\",\"address\":\"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/sol/broadcast":{"post":{"summary":"Broadcast transaction","operationId":"broadcastTransactionX402","x-x402-price":5000,"tags":["Solana"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastTransactionRequest"},"example":{"tx":"AQAAAA…"}}}},"responses":{"200":{"description":"Hash of the transaction the node accepted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastTransactionResponse"}}}},"400":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/sol/broadcast)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Broadcast a signed transaction with the Blockchain.com Explorer API, paid per request\nwith x402, and show me the JSON response.\n\nFirst ask me for the complete signed raw transaction. Do not send the request or pay until\nI have given it to you.\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/sol/broadcast\nBody: {\"tx\":\"<signed raw transaction>\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/btc/address":{"post":{"summary":"Address balance","operationId":"getBtcAddressX402","x-x402-price":5000,"tags":["Bitcoin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinAddressRequest"},"example":{"address":"1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"}}}},"responses":{"200":{"description":"Address balance info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinAddressResponse"}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"404":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/btc/address)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Address balance), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/btc/address\nBody: {\"address\":\"1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/btc/address/transactions":{"post":{"summary":"Address transactions","operationId":"getBtcAddressTransactionsX402","x-x402-price":5000,"tags":["Bitcoin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinAddressTransactionsRequest"},"example":{"address":"1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa","limit":20,"offset":0}}}},"responses":{"200":{"description":"Paginated transaction list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinAddressTransactionsResponse"}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"404":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/btc/address/transactions)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Address transactions), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/btc/address/transactions\nBody: {\"address\":\"1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa\",\"limit\":20,\"offset\":0}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/btc/transaction":{"post":{"summary":"Transaction","operationId":"getBtcTransactionX402","x-x402-price":5000,"tags":["Bitcoin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinTransactionRequest"},"example":{"txId":"4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"}}}},"responses":{"200":{"description":"Transaction detail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinTransactionResponse"}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"404":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/btc/transaction)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Transaction), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/btc/transaction\nBody: {\"txId\":\"4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/btc/transactions":{"post":{"summary":"Transactions (batch)","operationId":"getBtcTransactionsX402","x-x402-price":5000,"tags":["Bitcoin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinTransactionsRequest"},"example":{"txIds":["4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"]}}}},"responses":{"200":{"description":"Transaction list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinTransactionsResponse"}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/btc/transactions)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Transactions (batch)), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/btc/transactions\nBody: {\"txIds\":[\"4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b\"]}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/bch/address":{"post":{"summary":"Address balance","operationId":"getBchAddressX402","x-x402-price":5000,"tags":["Bitcoin Cash"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinAddressRequest"},"example":{"address":"bitcoincash:qp3wjpa3tjlj042z2wv7hahsldgwhwy0rq9sywjpyy"}}}},"responses":{"200":{"description":"Address balance info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinAddressResponse"}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"404":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/bch/address)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Address balance), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/bch/address\nBody: {\"address\":\"bitcoincash:qp3wjpa3tjlj042z2wv7hahsldgwhwy0rq9sywjpyy\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/bch/address/transactions":{"post":{"summary":"Address transactions","operationId":"getBchAddressTransactionsX402","x-x402-price":5000,"tags":["Bitcoin Cash"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinAddressTransactionsRequest"},"example":{"address":"bitcoincash:qp3wjpa3tjlj042z2wv7hahsldgwhwy0rq9sywjpyy","limit":20,"offset":0}}}},"responses":{"200":{"description":"Paginated transaction list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinAddressTransactionsResponse"}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"404":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/bch/address/transactions)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Address transactions), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/bch/address/transactions\nBody: {\"address\":\"bitcoincash:qp3wjpa3tjlj042z2wv7hahsldgwhwy0rq9sywjpyy\",\"limit\":20,\"offset\":0}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/bch/transaction":{"post":{"summary":"Transaction","operationId":"getBchTransactionX402","x-x402-price":5000,"tags":["Bitcoin Cash"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinTransactionRequest"},"example":{"txId":"4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"}}}},"responses":{"200":{"description":"Transaction detail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinTransactionResponse"}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"404":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/bch/transaction)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Transaction), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/bch/transaction\nBody: {\"txId\":\"4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/bch/transactions":{"post":{"summary":"Transactions (batch)","operationId":"getBchTransactionsX402","x-x402-price":5000,"tags":["Bitcoin Cash"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinTransactionsRequest"},"example":{"txIds":["4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"]}}}},"responses":{"200":{"description":"Transaction list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinTransactionsResponse"}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/bch/transactions)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Transactions (batch)), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/bch/transactions\nBody: {\"txIds\":[\"4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b\"]}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/btc/block":{"post":{"summary":"Block","operationId":"getBtcBlockX402","x-x402-price":5000,"tags":["Bitcoin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinBlockRequest"},"examples":{"byHash":{"summary":"Lookup by block hash","value":{"hash":"000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f"}},"byHeight":{"summary":"Lookup by block height","value":{"height":850000}},"headerOnly":{"summary":"Header, counts and aggregates without the transaction array","value":{"height":850000,"includeTransactions":false}}}}}},"responses":{"200":{"description":"Block header, txCount, coinbaseTx and aggregates, plus the full transaction array unless opted out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinBlockResponse"}}}},"400":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/btc/block)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Block), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/btc/block\nBody: {\"hash\":\"000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/btc/block/transactions":{"post":{"summary":"Block transactions","operationId":"getBtcBlockTransactionsX402","x-x402-price":5000,"tags":["Bitcoin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinBlockTransactionsRequest"},"examples":{"firstPage":{"summary":"First 15 transactions in block order","value":{"height":850000}},"byValue":{"summary":"Second page, largest transactions first","value":{"height":850000,"limit":15,"offset":15,"sort":"value","order":"desc"}}}}}},"responses":{"200":{"description":"One page of block transactions plus the block's total transaction count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinBlockTransactionsResponse"}}}},"400":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/btc/block/transactions)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Block transactions), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/btc/block/transactions\nBody: {\"height\":850000}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/btc/blocks":{"post":{"summary":"Latest blocks","operationId":"getBtcLatestBlocksX402","x-x402-price":5000,"tags":["Bitcoin"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinLatestBlocksRequest"},"examples":{"tip":{"summary":"Latest 10 blocks from chain tip","value":{"limit":10}},"paginated":{"summary":"Next page after block 849900","value":{"limit":20,"after":849900}}}}}},"responses":{"200":{"description":"Latest blocks with transaction count per block","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinLatestBlocksResponse"}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/btc/blocks)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Latest blocks), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/btc/blocks\nBody: {\"limit\":10}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/bch/block":{"post":{"summary":"Block","operationId":"getBchBlockX402","x-x402-price":5000,"tags":["Bitcoin Cash"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinBlockRequest"},"examples":{"byHash":{"summary":"Lookup by block hash","value":{"hash":"000000000000000000651ef99cb9fcbe0dadde1d424bd9f15ff20136191a5eec"}},"byHeight":{"summary":"Lookup by block height","value":{"height":850000}},"headerOnly":{"summary":"Header, counts and aggregates without the transaction array","value":{"height":850000,"includeTransactions":false}}}}}},"responses":{"200":{"description":"Block header, txCount, coinbaseTx and aggregates, plus the full transaction array unless opted out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinBlockResponse"}}}},"400":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/bch/block)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Block), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/bch/block\nBody: {\"hash\":\"000000000000000000651ef99cb9fcbe0dadde1d424bd9f15ff20136191a5eec\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/bch/block/transactions":{"post":{"summary":"Block transactions","operationId":"getBchBlockTransactionsX402","x-x402-price":5000,"tags":["Bitcoin Cash"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinBlockTransactionsRequest"},"examples":{"firstPage":{"summary":"First 15 transactions in block order","value":{"height":850000}},"byValue":{"summary":"Second page, largest transactions first","value":{"height":850000,"limit":15,"offset":15,"sort":"value","order":"desc"}}}}}},"responses":{"200":{"description":"One page of block transactions plus the block's total transaction count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinBlockTransactionsResponse"}}}},"400":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/bch/block/transactions)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Block transactions), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/bch/block/transactions\nBody: {\"height\":850000}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/bch/blocks":{"post":{"summary":"Latest blocks","operationId":"getBchLatestBlocksX402","x-x402-price":5000,"tags":["Bitcoin Cash"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinLatestBlocksRequest"},"examples":{"tip":{"summary":"Latest 10 blocks from chain tip","value":{"limit":10}},"paginated":{"summary":"Next page after block 849900","value":{"limit":20,"after":849900}}}}}},"responses":{"200":{"description":"Latest blocks with transaction count per block","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinLatestBlocksResponse"}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/bch/blocks)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Latest blocks), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/bch/blocks\nBody: {\"limit\":10}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/btc/broadcast":{"post":{"summary":"Broadcast transaction","operationId":"broadcastBtcTransactionX402","x-x402-price":5000,"tags":["Bitcoin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastTransactionRequest"},"example":{"tx":"0200000001…"}}}},"responses":{"200":{"description":"Hash of the transaction the node accepted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastTransactionResponse"}}}},"400":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/btc/broadcast)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Broadcast a signed transaction with the Blockchain.com Explorer API, paid per request\nwith x402, and show me the JSON response.\n\nFirst ask me for the complete signed raw transaction. Do not send the request or pay until\nI have given it to you.\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/btc/broadcast\nBody: {\"tx\":\"<signed raw transaction>\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/bch/broadcast":{"post":{"summary":"Broadcast transaction","operationId":"broadcastBchTransactionX402","x-x402-price":5000,"tags":["Bitcoin Cash"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastTransactionRequest"},"example":{"tx":"0200000001…"}}}},"responses":{"200":{"description":"Hash of the transaction the node accepted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastTransactionResponse"}}}},"400":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/bch/broadcast)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Broadcast a signed transaction with the Blockchain.com Explorer API, paid per request\nwith x402, and show me the JSON response.\n\nFirst ask me for the complete signed raw transaction. Do not send the request or pay until\nI have given it to you.\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/bch/broadcast\nBody: {\"tx\":\"<signed raw transaction>\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/eth/address":{"post":{"summary":"Address","operationId":"getEthWalletX402","x-x402-price":5000,"tags":["Ethereum"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEthWalletRequest"},"example":{"network":"ETH","address":"0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe","page":0,"size":20}}}},"responses":{"200":{"description":"Address wallet info with transactions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEthWalletResponse"}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/eth/address)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Address), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/eth/address\nBody: {\"network\":\"ETH\",\"address\":\"0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe\",\"page\":0,\"size\":20}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/eth/address/tokens":{"post":{"summary":"Token holdings","operationId":"getEthAddressTokensX402","x-x402-price":5000,"tags":["Ethereum"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEthAddressTokensRequest"},"example":{"network":"ETH","address":"0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe"}}}},"responses":{"200":{"description":"Token holdings","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEthAddressTokensResponse"}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/eth/address/tokens)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Token holdings), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/eth/address/tokens\nBody: {\"network\":\"ETH\",\"address\":\"0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/eth/address/internal-transactions":{"post":{"summary":"Internal transactions","operationId":"getEthAddressInternalTransactionsX402","x-x402-price":5000,"tags":["Ethereum"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEthAddressInternalTxsRequest"},"example":{"network":"ETH","address":"0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe","page":0,"size":20}}}},"responses":{"200":{"description":"Internal transactions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEthAddressInternalTxsResponse"}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/eth/address/internal-transactions)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Internal transactions), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/eth/address/internal-transactions\nBody: {\"network\":\"ETH\",\"address\":\"0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe\",\"page\":0,\"size\":20}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/eth/transaction":{"post":{"summary":"Transaction","operationId":"getEthTransactionX402","x-x402-price":5000,"tags":["Ethereum"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEthTransactionRequest"},"example":{"network":"ETH","txId":"0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060"}}}},"responses":{"200":{"description":"Transaction details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEthTransactionResponse"}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/eth/transaction)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Transaction), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/eth/transaction\nBody: {\"network\":\"ETH\",\"txId\":\"0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/eth/blocks":{"post":{"summary":"Latest blocks","operationId":"getEthLatestBlocksX402","x-x402-price":5000,"tags":["Ethereum"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEthLatestBlocksRequest"},"example":{"network":"ETH","limit":10}}}},"responses":{"200":{"description":"Latest blocks","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEthLatestBlocksResponse"}}}},"400":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/eth/blocks)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Latest blocks), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/eth/blocks\nBody: {\"network\":\"ETH\",\"limit\":10}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/eth/block":{"post":{"summary":"Block","operationId":"getEthBlockX402","x-x402-price":5000,"tags":["Ethereum"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEthBlockRequest"},"examples":{"full":{"summary":"Block with its full transaction arrays","value":{"network":"ETH","blockId":21000000}},"headerOnly":{"summary":"Header, counts and aggregates without the transaction arrays","value":{"network":"ETH","blockId":21000000,"includeTransactions":false}}}}}},"responses":{"200":{"description":"Block details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEthBlockResponse"}}}},"400":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/eth/block)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Block), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/eth/block\nBody: {\"network\":\"ETH\",\"blockId\":21000000}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/eth/block/transactions":{"post":{"summary":"Block transactions","operationId":"getEthBlockTransactionsX402","x-x402-price":5000,"tags":["Ethereum"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEthBlockTransactionsRequest"},"examples":{"firstPage":{"summary":"First 15 transactions in block order","value":{"network":"ETH","blockId":21000000}},"byValue":{"summary":"Second page, largest transactions first","value":{"network":"ETH","blockId":21000000,"limit":15,"offset":15,"sort":"value","order":"desc"}}}}}},"responses":{"200":{"description":"One page of block transactions plus the block's total transaction count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEthBlockTransactionsResponse"}}}},"400":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/eth/block/transactions)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Block transactions), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/eth/block/transactions\nBody: {\"network\":\"ETH\",\"blockId\":21000000}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/eth/broadcast":{"post":{"summary":"Broadcast transaction","operationId":"broadcastEthTransactionX402","x-x402-price":5000,"tags":["Ethereum"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastTransactionRequest"},"example":{"tx":"0x02f8…"}}}},"responses":{"200":{"description":"Hash of the transaction the node accepted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastTransactionResponse"}}}},"400":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/eth/broadcast)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Broadcast a signed transaction with the Blockchain.com Explorer API, paid per request\nwith x402, and show me the JSON response.\n\nFirst ask me for the complete signed raw transaction. Do not send the request or pay until\nI have given it to you.\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/eth/broadcast\nBody: {\"tx\":\"<signed raw transaction>\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/charts/hash-rate":{"post":{"summary":"Hash rate","operationId":"getHashRateChartX402","x-x402-price":5000,"tags":["Charts"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartRequest"},"example":{"timespan":"1y","sampled":true,"metadata":false,"rollingAverage":"8h","cors":false,"format":"json"}}}},"responses":{"200":{"description":"Hash rate chart data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartResponse"},"example":{"status":"ok","name":"Hash Rate","unit":"GH/s","period":"day","description":"The estimated number of gigahashes per second the bitcoin network is performing","values":[{"x":1704067200,"y":512345678.9},{"x":1704153600,"y":515234567.85}]}},"text/csv":{"schema":{"type":"string"},"example":"1704067200,512345678.90\n1704153600,515234567.85\n1704240000,518123456.78\n"}}},"400":{"description":"Bad request - invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"BAD_REQUEST","message":"timespan parameter is invalid"}}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/charts/hash-rate)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Hash rate), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/charts/hash-rate\nBody: {\"timespan\":\"1y\",\"sampled\":true,\"metadata\":false,\"rollingAverage\":\"8h\",\"cors\":false,\"format\":\"json\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/charts/avg-confirmation-time":{"post":{"summary":"Avg confirmation time","operationId":"getAvgConfirmationTimeChartX402","x-x402-price":5000,"tags":["Charts"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartRequest"},"example":{"timespan":"1y","sampled":true,"metadata":false,"rollingAverage":"8h","cors":false,"format":"json"}}}},"responses":{"200":{"description":"Average confirmation time chart data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartResponse"},"example":{"status":"ok","name":"Average Confirmation Time","unit":"minutes","period":"day","description":"The average time to confirm a Bitcoin transaction","values":[{"x":1704067200,"y":9.5},{"x":1704153600,"y":10.2}]}},"text/csv":{"schema":{"type":"string"},"example":"1704067200,9.5\n1704153600,10.2\n1704240000,8.8\n"}}},"400":{"description":"Bad request - invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"BAD_REQUEST","message":"rollingAverage parameter is invalid"}}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/charts/avg-confirmation-time)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Avg confirmation time), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/charts/avg-confirmation-time\nBody: {\"timespan\":\"1y\",\"sampled\":true,\"metadata\":false,\"rollingAverage\":\"8h\",\"cors\":false,\"format\":\"json\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/charts/total-bitcoins":{"post":{"summary":"Total bitcoins","operationId":"getTotalBitcoinsChartX402","x-x402-price":5000,"tags":["Charts"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartRequest"},"example":{"timespan":"1y","sampled":true,"metadata":false,"rollingAverage":"8h","cors":false,"format":"json"}}}},"responses":{"200":{"description":"Total bitcoins chart data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartResponse"},"example":{"status":"ok","name":"Total Bitcoins","unit":"BTC","period":"day","description":"The total number of bitcoins that have been mined","values":[{"x":1704067200,"y":19589375},{"x":1704153600,"y":19589500}]}},"text/csv":{"schema":{"type":"string"},"example":"1704067200,19589375.0\n1704153600,19589500.0\n1704240000,19589625.0\n"}}},"400":{"description":"Bad request - invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"BAD_REQUEST","message":"timespan parameter is invalid"}}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/charts/total-bitcoins)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Total bitcoins), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/charts/total-bitcoins\nBody: {\"timespan\":\"1y\",\"sampled\":true,\"metadata\":false,\"rollingAverage\":\"8h\",\"cors\":false,\"format\":\"json\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/charts/difficulty":{"post":{"summary":"Difficulty","operationId":"getDifficultyChartX402","x-x402-price":5000,"tags":["Charts"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartRequest"},"example":{"timespan":"1y","sampled":true,"metadata":false,"rollingAverage":"8h","cors":false,"format":"json"}}}},"responses":{"200":{"description":"Mining difficulty chart data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartResponse"},"example":{"status":"ok","name":"Difficulty","unit":"difficulty","period":"day","description":"The estimated difficulty of the bitcoin network","values":[{"x":1704067200,"y":72000000000000},{"x":1704153600,"y":72100000000000}]}},"text/csv":{"schema":{"type":"string"},"example":"1704067200,72000000000000.0\n1704153600,72100000000000.0\n1704240000,72200000000000.0\n"}}},"400":{"description":"Bad request - invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"BAD_REQUEST","message":"timespan parameter is invalid"}}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/charts/difficulty)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Difficulty), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/charts/difficulty\nBody: {\"timespan\":\"1y\",\"sampled\":true,\"metadata\":false,\"rollingAverage\":\"8h\",\"cors\":false,\"format\":\"json\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/charts/n-transactions":{"post":{"summary":"Transaction count","operationId":"getNTransactionsChartX402","x-x402-price":5000,"tags":["Charts"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartRequest"},"example":{"timespan":"1y","sampled":true,"metadata":false,"rollingAverage":"8h","cors":false,"format":"json"}}}},"responses":{"200":{"description":"Number of transactions chart data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartResponse"},"example":{"status":"ok","name":"Confirmed Transactions Per Day","unit":"Transactions","period":"day","description":"The number of daily confirmed Bitcoin transactions.","values":[{"x":1704067200,"y":275000},{"x":1704153600,"y":280000}]}},"text/csv":{"schema":{"type":"string"},"example":"1704067200,275000.0\n1704153600,280000.0\n1704240000,285000.0\n"}}},"400":{"description":"Bad request - invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"BAD_REQUEST","message":"timespan parameter is invalid"}}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/charts/n-transactions)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Transaction count), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/charts/n-transactions\nBody: {\"timespan\":\"1y\",\"sampled\":true,\"metadata\":false,\"rollingAverage\":\"8h\",\"cors\":false,\"format\":\"json\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/charts/market-price":{"post":{"summary":"Market price","operationId":"getMarketPriceChartX402","x-x402-price":5000,"tags":["Charts"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartRequest"},"example":{"timespan":"1y","sampled":true,"metadata":false,"rollingAverage":"8h","cors":false,"format":"json"}}}},"responses":{"200":{"description":"Market Price (USD) chart data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartResponse"},"example":{"status":"ok","name":"Market Price (USD)","unit":"USD","period":"day","description":"Average USD market price across major bitcoin exchanges.","values":[{"x":1704067200,"y":94210.33},{"x":1704153600,"y":95880.17}]}},"text/csv":{"schema":{"type":"string"},"example":"1704067200,94210.33\n1704153600,95880.17\n"}}},"400":{"description":"Bad request - invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"BAD_REQUEST","message":"timespan parameter is invalid"}}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/charts/market-price)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Market price), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/charts/market-price\nBody: {\"timespan\":\"1y\",\"sampled\":true,\"metadata\":false,\"rollingAverage\":\"8h\",\"cors\":false,\"format\":\"json\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/charts/transaction-fees":{"post":{"summary":"Transaction fees","operationId":"getTransactionFeesChartX402","x-x402-price":5000,"tags":["Charts"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartRequest"},"example":{"timespan":"1y","sampled":true,"metadata":false,"rollingAverage":"8h","cors":false,"format":"json"}}}},"responses":{"200":{"description":"Total Transaction Fees chart data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartResponse"},"example":{"status":"ok","name":"Total Transaction Fees","unit":"BTC","period":"day","description":"The total value of all transaction fees paid to miners (not including the coinbase value of block rewards).","values":[{"x":1704067200,"y":12.4831},{"x":1704153600,"y":13.9042}]}},"text/csv":{"schema":{"type":"string"},"example":"1704067200,12.4831\n1704153600,13.9042\n"}}},"400":{"description":"Bad request - invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"BAD_REQUEST","message":"timespan parameter is invalid"}}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/charts/transaction-fees)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Transaction fees), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/charts/transaction-fees\nBody: {\"timespan\":\"1y\",\"sampled\":true,\"metadata\":false,\"rollingAverage\":\"8h\",\"cors\":false,\"format\":\"json\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/charts/n-transactions-per-block":{"post":{"summary":"Transactions per block","operationId":"getNTransactionsPerBlockChartX402","x-x402-price":5000,"tags":["Charts"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartRequest"},"example":{"timespan":"1y","sampled":true,"metadata":false,"rollingAverage":"8h","cors":false,"format":"json"}}}},"responses":{"200":{"description":"Average Number Of Transactions Per Block chart data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartResponse"},"example":{"status":"ok","name":"Average Number Of Transactions Per Block","unit":"Transactions Per Block","period":"day","description":"The average number of transactions per block.","values":[{"x":1704067200,"y":3142.6},{"x":1704153600,"y":3288.1}]}},"text/csv":{"schema":{"type":"string"},"example":"1704067200,3142.6\n1704153600,3288.1\n"}}},"400":{"description":"Bad request - invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"BAD_REQUEST","message":"timespan parameter is invalid"}}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/charts/n-transactions-per-block)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Transactions per block), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/charts/n-transactions-per-block\nBody: {\"timespan\":\"1y\",\"sampled\":true,\"metadata\":false,\"rollingAverage\":\"8h\",\"cors\":false,\"format\":\"json\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/charts/avg-block-size":{"post":{"summary":"Avg block size","operationId":"getAvgBlockSizeChartX402","x-x402-price":5000,"tags":["Charts"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartRequest"},"example":{"timespan":"1y","sampled":true,"metadata":false,"rollingAverage":"8h","cors":false,"format":"json"}}}},"responses":{"200":{"description":"Average Block Size chart data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartResponse"},"example":{"status":"ok","name":"Average Block Size","unit":"MB","period":"day","description":"The average block size in MB.","values":[{"x":1704067200,"y":1.62},{"x":1704153600,"y":1.71}]}},"text/csv":{"schema":{"type":"string"},"example":"1704067200,1.62\n1704153600,1.71\n"}}},"400":{"description":"Bad request - invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"BAD_REQUEST","message":"timespan parameter is invalid"}}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/charts/avg-block-size)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Avg block size), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/charts/avg-block-size\nBody: {\"timespan\":\"1y\",\"sampled\":true,\"metadata\":false,\"rollingAverage\":\"8h\",\"cors\":false,\"format\":\"json\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/charts/market-cap":{"post":{"summary":"Market cap","operationId":"getMarketCapChartX402","x-x402-price":5000,"tags":["Charts"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartRequest"},"example":{"timespan":"1y","sampled":true,"metadata":false,"rollingAverage":"8h","cors":false,"format":"json"}}}},"responses":{"200":{"description":"Market Capitalization chart data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartResponse"},"example":{"status":"ok","name":"Market Capitalization","unit":"USD","period":"day","description":"The total USD value of bitcoin supply in circulation, as calculated by the daily average market price across major exchanges.","values":[{"x":1704067200,"y":1867423000000},{"x":1704153600,"y":1900512000000}]}},"text/csv":{"schema":{"type":"string"},"example":"1704067200,1867423000000\n1704153600,1900512000000\n"}}},"400":{"description":"Bad request - invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"BAD_REQUEST","message":"timespan parameter is invalid"}}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/charts/market-cap)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Market cap), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/charts/market-cap\nBody: {\"timespan\":\"1y\",\"sampled\":true,\"metadata\":false,\"rollingAverage\":\"8h\",\"cors\":false,\"format\":\"json\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/charts/blocks-size":{"post":{"summary":"Blockchain size","operationId":"getBlocksSizeChartX402","x-x402-price":5000,"tags":["Charts"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartRequest"},"example":{"timespan":"1y","sampled":true,"metadata":false,"rollingAverage":"8h","cors":false,"format":"json"}}}},"responses":{"200":{"description":"Blockchain Size chart data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartResponse"},"example":{"status":"ok","name":"Blockchain Size","unit":"MB","period":"day","description":"The total size of all block headers and transactions. Not including database indexes.","values":[{"x":1704067200,"y":642318.4},{"x":1704153600,"y":642480.1}]}},"text/csv":{"schema":{"type":"string"},"example":"1704067200,642318.4\n1704153600,642480.1\n"}}},"400":{"description":"Bad request - invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"BAD_REQUEST","message":"timespan parameter is invalid"}}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/charts/blocks-size)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Blockchain size), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/charts/blocks-size\nBody: {\"timespan\":\"1y\",\"sampled\":true,\"metadata\":false,\"rollingAverage\":\"8h\",\"cors\":false,\"format\":\"json\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/charts/n-transactions-total":{"post":{"summary":"Total transactions","operationId":"getNTransactionsTotalChartX402","x-x402-price":5000,"tags":["Charts"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartRequest"},"example":{"timespan":"1y","sampled":true,"metadata":false,"rollingAverage":"8h","cors":false,"format":"json"}}}},"responses":{"200":{"description":"Total Number of Transactions chart data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartResponse"},"example":{"status":"ok","name":"Total Number of Transactions","unit":"Transactions","period":"day","description":"Total Number of transactions","values":[{"x":1704067200,"y":1148231456},{"x":1704153600,"y":1148684312}]}},"text/csv":{"schema":{"type":"string"},"example":"1704067200,1148231456\n1704153600,1148684312\n"}}},"400":{"description":"Bad request - invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"BAD_REQUEST","message":"timespan parameter is invalid"}}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/charts/n-transactions-total)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Total transactions), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/charts/n-transactions-total\nBody: {\"timespan\":\"1y\",\"sampled\":true,\"metadata\":false,\"rollingAverage\":\"8h\",\"cors\":false,\"format\":\"json\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/charts/utxo-count":{"post":{"summary":"UTXO count","operationId":"getUtxoCountChartX402","x-x402-price":5000,"tags":["Charts"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartRequest"},"example":{"timespan":"1y","sampled":true,"metadata":false,"rollingAverage":"8h","cors":false,"format":"json"}}}},"responses":{"200":{"description":"Number of Unspent Transaction Outputs chart data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartResponse"},"example":{"status":"ok","name":"Number of Unspent Transaction Outputs","unit":"Number of Outputs","period":"day","description":"The number of unspent Bitcoin transactions outputs, also known as the UTXO set size.","values":[{"x":1704067200,"y":182341567},{"x":1704153600,"y":182618904}]}},"text/csv":{"schema":{"type":"string"},"example":"1704067200,182341567\n1704153600,182618904\n"}}},"400":{"description":"Bad request - invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"BAD_REQUEST","message":"timespan parameter is invalid"}}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/charts/utxo-count)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (UTXO count), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/charts/utxo-count\nBody: {\"timespan\":\"1y\",\"sampled\":true,\"metadata\":false,\"rollingAverage\":\"8h\",\"cors\":false,\"format\":\"json\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/charts/n-unique-addresses":{"post":{"summary":"Unique addresses","operationId":"getNUniqueAddressesChartX402","x-x402-price":5000,"tags":["Charts"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartRequest"},"example":{"timespan":"1y","sampled":true,"metadata":false,"rollingAverage":"8h","cors":false,"format":"json"}}}},"responses":{"200":{"description":"Number Of Unique Addresses Used chart data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartResponse"},"example":{"status":"ok","name":"Number Of Unique Addresses Used","unit":"Unique Addresses","period":"day","description":"The total number of unique addresses used on the Bitcoin blockchain.","values":[{"x":1704067200,"y":612345},{"x":1704153600,"y":628104}]}},"text/csv":{"schema":{"type":"string"},"example":"1704067200,612345\n1704153600,628104\n"}}},"400":{"description":"Bad request - invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"BAD_REQUEST","message":"timespan parameter is invalid"}}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/charts/n-unique-addresses)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Unique addresses), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/charts/n-unique-addresses\nBody: {\"timespan\":\"1y\",\"sampled\":true,\"metadata\":false,\"rollingAverage\":\"8h\",\"cors\":false,\"format\":\"json\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}},"/x402/charts/pools":{"post":{"summary":"Mining pools","operationId":"getPoolsChartX402","x-x402-price":5000,"tags":["Charts"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPoolsRequest"},"example":{"timespan":"4d"}}}},"responses":{"200":{"description":"Mining pools distribution as a map of pool name to block count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPoolsResponse"},"example":{"Foundry USA":3420,"AntPool":2156,"F2Pool":1823,"Binance Pool":1245,"ViaBTC":892}}}},"400":{"description":"Bad request - invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"error":{"code":"BAD_REQUEST","message":"timespan parameter is too big"}}}}},"402":{"description":"Payment required. Read the payment requirements from the `PAYMENT-REQUIRED` header, then retry the request with a signed payment in the `PAYMENT-SIGNATURE` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"500":{"$ref":"#/components/responses/Error"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"description":"**Price:** $0.005 per request, paid in USDC via x402.\n\n[Copy prompt for AI agent](#copy-x402-prompt:post:/x402/charts/pools)","x-codeSamples":[{"lang":"text","label":"AI agent prompt","source":"Call the Blockchain.com Explorer API (Mining pools), paid per request with x402,\nand show me the JSON response:\n\nPOST https://api.blockchain.info/explorer-gateway-kt/x402/charts/pools\nBody: {\"timespan\":\"4d\"}\n\nIt costs $0.005 in USDC on Base (x402 v2). The first call returns 402 with the payment\nrequirements in the PAYMENT-REQUIRED header; pay and retry with the PAYMENT-SIGNATURE\nheader. Don't pay more than $0.005."}]}}},"components":{"responses":{"Error":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"schemas":{"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","example":"FETCH_ERROR"},"message":{"type":"string","example":"Transaction not found"}}}}},"GetLatestBlocksRequest":{"type":"object","required":["network"],"properties":{"network":{"type":"string","example":"SOL"},"limit":{"type":"integer","default":10,"minimum":1,"maximum":20}}},"GetLatestBlocksResponse":{"type":"object","required":["currentBlockId","blocks"],"properties":{"currentBlockId":{"type":"integer","format":"int64"},"blocks":{"type":"array","items":{"$ref":"#/components/schemas/BlockSummary"}}}},"BlockSummary":{"type":"object","required":["blockId","hash","transactionCount","parentBlockId","totalRewards"],"properties":{"blockId":{"type":"integer","format":"int64"},"hash":{"type":"string"},"timestamp":{"type":"integer","format":"int64","nullable":true},"height":{"type":"integer","format":"int64","nullable":true},"transactionCount":{"type":"integer"},"parentBlockId":{"type":"integer","format":"int64"},"totalRewards":{"type":"integer","format":"int64","description":"Sum of all reward lamports distributed in this block"}}},"GetBlockRequest":{"type":"object","required":["network","blockId"],"properties":{"network":{"type":"string","example":"SOL"},"blockId":{"type":"integer","format":"int64"},"includeTransactions":{"type":"boolean","default":true,"description":"Set false to omit the `transactions` array. Every other field is block-level and is returned either way; page the transactions themselves with `/sol/block/transactions`.\n"}}},"GetSolBlockTransactionsRequest":{"type":"object","required":["network","blockId"],"properties":{"network":{"type":"string","example":"SOL"},"blockId":{"type":"integer","format":"int64"},"limit":{"type":"integer","default":15,"minimum":1,"maximum":50,"description":"Page size (capped at 50)"},"offset":{"type":"integer","default":0,"minimum":0,"description":"Offset into the sorted transaction list. An offset beyond `total` returns an empty page, not an error."},"sort":{"type":"string","enum":["index","fees"],"default":"index","description":"`index` orders by position in the block, `fees` by `fee`. Ties always fall back to block position, so paging can neither duplicate nor skip a transaction. `sort=value` is not supported on SOL and returns 400.\n"},"order":{"type":"string","enum":["asc","desc"],"default":"asc"}}},"GetSolBlockTransactionsResponse":{"type":"object","required":["total","transactions"],"properties":{"total":{"type":"integer","description":"Total transactions in the block — drives pagination. Matches `transactionCount` on `/sol/block`."},"transactions":{"type":"array","items":{"$ref":"#/components/schemas/GetTransactionResponse"}}}},"GetBlockResponse":{"type":"object","required":["blockId","hash","parentHash","parentBlockId","transactionCount","successfulTransactionCount","totalAmountSent","rewards","totalComputeUnitsConsumed","transactionCostUtilization","reservedComputeUnits","reservedComputeUnitsUtilization","epoch"],"properties":{"blockId":{"type":"integer","format":"int64"},"hash":{"type":"string"},"parentHash":{"type":"string"},"parentBlockId":{"type":"integer","format":"int64"},"timestamp":{"type":"integer","format":"int64","nullable":true},"height":{"type":"integer","format":"int64","nullable":true},"transactionCount":{"type":"integer"},"successfulTransactionCount":{"type":"integer"},"totalAmountSent":{"type":"integer","format":"int64","description":"Sum of all outgoing lamports in successful transactions"},"transactions":{"type":"array","items":{"$ref":"#/components/schemas/GetTransactionResponse"},"description":"Absent from the response entirely when the request set `includeTransactions: false`."},"rewards":{"type":"array","items":{"$ref":"#/components/schemas/BlockReward"}},"totalComputeUnitsConsumed":{"type":"integer","format":"int64","description":"Sum of compute units consumed by all transactions in the block"},"transactionCostUtilization":{"type":"number","format":"double","description":"Percentage of the block compute limit consumed (0–100+). Limit is epoch-dependent: <770 → 48M, 770–821 → 50M, ≥822 → 60M CU","example":46.1},"reservedComputeUnits":{"type":"integer","format":"int64","description":"Sum of compute unit limits requested by all transactions - from transactionConfig.computeUnitLimit on v1 transactions, or ComputeBudget::SetComputeUnitLimit on legacy/v0 transactions. A transaction that declares neither is estimated per instruction (3,000 CU per builtin, 200,000 per SBF program, capped at 1,400,000 per tx). Can exceed the block limit.\n"},"reservedComputeUnitsUtilization":{"type":"number","format":"double","description":"Percentage of the block compute limit reserved by all transactions (reservedComputeUnits / blockComputeLimit * 100)","example":52.3},"epoch":{"type":"integer","format":"int64","description":"Solana epoch this block belongs to (slot / 432,000)"}}},"GetTransactionRequest":{"type":"object","required":["network","txId"],"properties":{"network":{"type":"string","example":"SOL"},"txId":{"type":"string"}}},"GetTransactionResponse":{"type":"object","required":["txId","status","movements","computeUnitsConsumed","reservedComputeUnits","computeUnitsUtilization"],"properties":{"txId":{"type":"string"},"blockId":{"type":"integer","format":"int64","nullable":true},"timestamp":{"type":"integer","format":"int64","nullable":true},"fee":{"type":"integer","format":"int64","nullable":true},"status":{"type":"string","enum":["success","failed"]},"feePayer":{"type":"string","nullable":true},"movements":{"type":"array","items":{"$ref":"#/components/schemas/Movement"}},"computeUnitsConsumed":{"type":"integer","format":"int64","description":"Actual compute units consumed by this transaction"},"reservedComputeUnits":{"type":"integer","format":"int64","description":"Requested compute unit limit - from transactionConfig.computeUnitLimit on v1 transactions, or ComputeBudget::SetComputeUnitLimit on legacy/v0 transactions (defaults to a builtin/SBF heuristic if neither is set)\n"},"computeUnitsUtilization":{"type":"number","format":"double","description":"Percentage of reserved compute units actually consumed (computeUnitsConsumed / reservedComputeUnits * 100)","example":75.3},"version":{"type":"string","nullable":true,"description":"\"legacy\", \"0\" (v0), or \"1\" (v1, mainnet since epoch 1035). Null if the RPC response omitted it.","example":"0"}}},"GetTransactionInstructionsResponse":{"type":"object","required":["instructions"],"properties":{"instructions":{"type":"array","items":{"$ref":"#/components/schemas/ParsedInstruction"}}}},"ParsedInstruction":{"type":"object","required":["programId","accounts","data"],"properties":{"programId":{"type":"string","description":"Program account address"},"programName":{"type":"string","nullable":true,"description":"Human-readable program name (e.g. \"System Program\", \"SPL Token\")"},"instructionType":{"type":"string","nullable":true,"description":"Decoded instruction type (e.g. \"Transfer\", \"InitializeAccount\"). \"TransactionConfig\" marks the synthetic entry carrying the effective v1 compute budget; \"NoOp\" marks a ComputeBudget111... instruction that the runtime ignored because transactionConfig supersedes it.\n"},"accounts":{"type":"array","items":{"type":"string"},"description":"Ordered list of account addresses involved in the instruction"},"data":{"type":"string","description":"Raw instruction data in base58"},"parsed":{"type":"object","nullable":true,"additionalProperties":{"type":"string"},"description":"Key-value pairs decoded from instruction data; keys vary by instructionType"}}},"BlockReward":{"type":"object","required":["pubkey","amount"],"properties":{"pubkey":{"type":"string"},"amount":{"type":"integer","format":"int64","description":"Amount in lamports"},"rewardType":{"type":"string","nullable":true,"example":"Fee"}}},"Movement":{"type":"object","required":["identifier","address","amount","type"],"properties":{"identifier":{"type":"string","description":"\"native\" for SOL, mint address for SPL tokens","example":"native"},"symbol":{"type":"string","nullable":true,"description":"Token symbol (e.g. \"SOL\", \"USDC\"); null if unknown","example":"SOL"},"address":{"type":"string"},"amount":{"type":"string","description":"Absolute amount in base units (lamports / token decimals)"},"type":{"type":"string","enum":["sent","received"]}}},"RawTransaction":{"type":"object","required":["transaction","meta"],"properties":{"version":{"nullable":true,"description":"\"legacy\", or a numeric version (0 = v0, 1 = v1, mainnet since epoch 1035)","oneOf":[{"type":"string"},{"type":"integer"}],"example":0},"transaction":{"type":"object","properties":{"signatures":{"type":"array","items":{"type":"string"}},"message":{"type":"object","properties":{"accountKeys":{"type":"array","items":{"type":"string"}},"instructions":{"type":"array","items":{"type":"object","properties":{"accounts":{"type":"array","items":{"type":"integer"}},"data":{"type":"string"},"programIdIndex":{"type":"integer"},"stackHeight":{"type":"integer","nullable":true}}}},"transactionConfig":{"type":"object","nullable":true,"description":"Present only on Solana v1 transactions (SIMD-0296/SIMD-0385, mainnet since epoch 1035). Replaces the legacy/v0 ComputeBudget111... instructions and holds the effective compute budget configuration for the transaction. When it is present, any ComputeBudget111... instruction still carried in the message is a no-op ignored by the runtime.\n","properties":{"computeUnitLimit":{"type":"integer","format":"int64","nullable":true},"heapSize":{"type":"integer","format":"int64","nullable":true},"loadedAccountsDataSizeLimit":{"type":"integer","format":"int64","nullable":true},"priorityFee":{"type":"integer","format":"int64","nullable":true,"description":"Absolute lamports (not micro-lamports per compute unit, unlike v0's SetComputeUnitPrice)."}}}}}}},"meta":{"type":"object","properties":{"fee":{"type":"integer","format":"int64"},"preBalances":{"type":"array","items":{"type":"integer","format":"int64"}},"postBalances":{"type":"array","items":{"type":"integer","format":"int64"}},"preTokenBalances":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/TokenBalance"}},"postTokenBalances":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/TokenBalance"}},"loadedAddresses":{"nullable":true,"type":"object","properties":{"writable":{"type":"array","items":{"type":"string"}},"readonly":{"type":"array","items":{"type":"string"}}}},"err":{"nullable":true}}},"blockTime":{"type":"integer","format":"int64","nullable":true},"slot":{"type":"integer","format":"int64","nullable":true}}},"TokenBalance":{"type":"object","required":["accountIndex","mint","uiTokenAmount"],"properties":{"accountIndex":{"type":"integer"},"mint":{"type":"string"},"owner":{"type":"string","nullable":true},"programId":{"type":"string","nullable":true},"uiTokenAmount":{"type":"object","properties":{"amount":{"type":"string"},"decimals":{"type":"integer"},"uiAmountString":{"type":"string"}}}}},"GetAddressRequest":{"type":"object","required":["network","address"],"properties":{"network":{"type":"string","example":"SOL"},"address":{"type":"string"},"limit":{"type":"integer","default":10,"minimum":1,"maximum":50},"before":{"type":"string","nullable":true,"description":"Transaction signature cursor — returns transactions older than this value"}}},"GetAddressResponse":{"type":"object","required":["address","balance","transactions"],"properties":{"address":{"type":"string"},"balance":{"type":"integer","format":"int64","description":"Balance in lamports"},"owner":{"type":"string","nullable":true,"description":"Program that owns this account"},"executable":{"type":"boolean","nullable":true},"rentEpoch":{"type":"integer","format":"int64","nullable":true,"description":"Next epoch when rent is due; null means rent-exempt"},"space":{"type":"integer","format":"int64","nullable":true,"description":"Account data size in bytes"},"transactions":{"type":"array","items":{"$ref":"#/components/schemas/AddressTransaction"}},"nextPageCursor":{"type":"string","nullable":true,"description":"Pass as \"before\" in the next request to fetch older transactions; null means no more pages"}}},"GetAddressTokensRequest":{"type":"object","required":["network","address"],"properties":{"network":{"type":"string","example":"SOL"},"address":{"type":"string"}}},"GetAddressTokensResponse":{"type":"object","required":["tokens"],"properties":{"tokens":{"type":"array","items":{"$ref":"#/components/schemas/TokenAccount"}}}},"TokenAccount":{"type":"object","required":["wallet","mint","balance","decimals"],"properties":{"wallet":{"type":"string","description":"Token account address"},"mint":{"type":"string","description":"Token mint address"},"balance":{"type":"string","description":"Raw token balance in base units"},"decimals":{"type":"integer"},"symbol":{"type":"string","nullable":true},"uri":{"type":"string","nullable":true,"description":"Metadata URI for the token (e.g. link to JSON with name/image)"}}},"AddressTransaction":{"type":"object","required":["txId","blockId"],"properties":{"txId":{"type":"string"},"blockId":{"type":"integer","format":"int64"},"timestamp":{"type":"integer","format":"int64","nullable":true},"confirmationStatus":{"type":"string","nullable":true,"enum":["processed","confirmed","finalized"]},"memo":{"type":"string","nullable":true},"feePayer":{"type":"string","nullable":true},"fee":{"type":"integer","format":"int64","nullable":true},"status":{"type":"string","nullable":true,"enum":["success","failed"]}}},"HaskoinAddressRequest":{"type":"object","required":["address"],"properties":{"address":{"type":"string","description":"Bitcoin or Bitcoin Cash address"}}},"HaskoinAddressResponse":{"type":"object","required":["address","confirmed","unconfirmed","utxo","txCount","received"],"properties":{"address":{"type":"string"},"confirmed":{"type":"integer","format":"int64","description":"Confirmed balance in satoshis"},"unconfirmed":{"type":"integer","format":"int64","description":"Unconfirmed balance in satoshis"},"utxo":{"type":"integer","description":"Number of unspent outputs"},"txCount":{"type":"integer","description":"Total number of transactions"},"received":{"type":"integer","format":"int64","description":"Total received in satoshis"}}},"HaskoinAddressTransactionsRequest":{"type":"object","required":["address"],"properties":{"address":{"type":"string"},"limit":{"type":"integer","default":20,"minimum":1,"maximum":50},"offset":{"type":"integer","default":0,"minimum":0}}},"HaskoinAddressTransactionsResponse":{"type":"object","required":["transactions","limit","offset"],"properties":{"transactions":{"type":"array","items":{"$ref":"#/components/schemas/HaskoinTransactionResponse"}},"limit":{"type":"integer"},"offset":{"type":"integer"}}},"BroadcastTransactionRequest":{"type":"object","required":["tx"],"properties":{"tx":{"type":"string","description":"The signed transaction. BTC/BCH: hex-encoded serialized transaction. ETH: hex-encoded signed transaction, 0x prefix optional. SOL: base64-encoded serialized transaction."}}},"BroadcastTransactionResponse":{"type":"object","required":["txHash","explorerUrl"],"properties":{"txHash":{"type":"string","description":"txid (BTC/BCH), transaction hash (ETH) or first signature (SOL). A transaction the node refuses is a 400 with error code TX_REJECTED and the node's reason as the message."},"explorerUrl":{"type":"string","description":"The transaction's page on the Blockchain.com explorer.","example":"https://www.blockchain.com/explorer/transactions/btc/4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"}}},"HaskoinTransactionRequest":{"type":"object","required":["txId"],"properties":{"txId":{"type":"string"}}},"HaskoinTransactionsRequest":{"type":"object","required":["txIds"],"properties":{"txIds":{"type":"array","items":{"type":"string"},"maxItems":50}}},"HaskoinTransactionsResponse":{"type":"object","required":["transactions"],"properties":{"transactions":{"type":"array","items":{"$ref":"#/components/schemas/HaskoinTransactionResponse"}}}},"HaskoinTransactionResponse":{"type":"object","required":["txId","mempool","rbf","inputs","outputs"],"properties":{"txId":{"type":"string"},"blockHeight":{"type":"integer","format":"int64","nullable":true,"description":"Block height; null if unconfirmed"},"blockPosition":{"type":"integer","nullable":true,"description":"Position within the block"},"mempool":{"type":"boolean","description":"True if the transaction is unconfirmed"},"mempoolTime":{"type":"integer","format":"int64","nullable":true,"description":"Unix timestamp when the tx entered the mempool"},"time":{"type":"integer","format":"int64","nullable":true,"description":"Block timestamp"},"fee":{"type":"integer","format":"int64","nullable":true,"description":"Fee in satoshis"},"size":{"type":"integer","nullable":true,"description":"Transaction size in bytes"},"weight":{"type":"integer","nullable":true,"description":"SegWit weight units"},"rbf":{"type":"boolean","description":"Replace-by-fee flag"},"inputs":{"type":"array","items":{"$ref":"#/components/schemas/HaskoinInput"}},"outputs":{"type":"array","items":{"$ref":"#/components/schemas/HaskoinOutput"}},"version":{"type":"integer","nullable":true,"description":"Transaction version"},"locktime":{"type":"integer","format":"int64","nullable":true,"description":"Transaction locktime"},"deleted":{"type":"boolean","nullable":true,"description":"True if the transaction has been deleted/replaced"}}},"HaskoinInput":{"type":"object","required":["coinbase","witness"],"properties":{"coinbase":{"type":"boolean"},"txid":{"type":"string","nullable":true,"description":"Spending transaction ID; null for coinbase"},"output":{"type":"integer","format":"int64","nullable":true,"description":"Output index being spent"},"sigscript":{"type":"string","nullable":true,"description":"Signature script (scriptSig)"},"sequence":{"type":"integer","format":"int64","nullable":true,"description":"Input sequence number"},"pkscript":{"type":"string","nullable":true,"description":"Public key script of the output being spent"},"value":{"type":"integer","format":"int64","nullable":true,"description":"Input value in satoshis"},"address":{"type":"string","nullable":true},"witness":{"type":"array","items":{"type":"string"},"description":"SegWit witness data"}}},"HaskoinOutput":{"type":"object","required":["spent"],"properties":{"address":{"type":"string","nullable":true},"pkscript":{"type":"string","nullable":true,"description":"Public key script (scriptPubKey)"},"value":{"type":"integer","format":"int64","nullable":true,"description":"Output value in satoshis"},"spent":{"type":"boolean"},"spender":{"type":"object","nullable":true,"description":"Transaction that spent this output","properties":{"txid":{"type":"string"},"input":{"type":"integer"}}}}},"HaskoinLatestBlocksRequest":{"type":"object","properties":{"limit":{"type":"integer","default":10,"minimum":1,"maximum":50,"description":"Number of blocks to return (capped at 50)"},"after":{"type":"integer","format":"int64","nullable":true,"description":"Cursor for pagination — block height to start from (inclusive, descending). Omit to start from the current chain tip."}}},"HaskoinLatestBlocksResponse":{"type":"object","required":["currentHeight","blocks"],"properties":{"currentHeight":{"type":"integer","format":"int64"},"blocks":{"type":"array","items":{"$ref":"#/components/schemas/HaskoinBlockSummary"}}}},"HaskoinBlockSummary":{"type":"object","required":["hash","height","mainchain","txCount"],"description":"Block header with transaction count — returned by the latest-blocks endpoint.","properties":{"hash":{"type":"string","description":"Block hash"},"height":{"type":"integer","format":"int64"},"mainchain":{"type":"boolean","description":"True if this block is on the main chain"},"previous":{"type":"string","nullable":true,"description":"Previous block hash"},"time":{"type":"integer","format":"int64","nullable":true,"description":"Unix timestamp of the block"},"version":{"type":"integer","nullable":true},"bits":{"type":"integer","format":"int64","nullable":true,"description":"Difficulty target in compact form"},"nonce":{"type":"integer","format":"int64","nullable":true},"size":{"type":"integer","nullable":true,"description":"Block size in bytes"},"weight":{"type":"integer","nullable":true,"description":"Block weight (SegWit)"},"merkle":{"type":"string","nullable":true,"description":"Merkle root hash"},"subsidy":{"type":"integer","format":"int64","nullable":true,"description":"Coinbase subsidy in satoshis"},"fees":{"type":"integer","format":"int64","nullable":true,"description":"Total fees collected in satoshis"},"outputs":{"type":"integer","format":"int64","nullable":true,"description":"Total output value in satoshis"},"work":{"type":"string","nullable":true,"description":"Cumulative chain work (hex)"},"txCount":{"type":"integer","description":"Number of transactions in the block"},"coinBaseTx":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/HaskoinTransactionResponse"}],"description":"Full details of the coinbase (first) transaction in the block; null if unavailable"}}},"HaskoinBlockRequest":{"type":"object","properties":{"hash":{"type":"string","description":"Block hash — exactly 64 hex characters. Provide either hash or height, not both.","example":"000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f"},"height":{"type":"integer","format":"int64","description":"Block height (non-negative integer). Provide either hash or height, not both.","example":850000},"includeTransactions":{"type":"boolean","default":true,"description":"Set false to omit the `txs` array from the response — several MB smaller on a busy block. `txCount`, `coinbaseTx` and `aggregates` are returned either way, and page the transactions themselves with `/{chain}/block/transactions`.\n"}}},"HaskoinBlockResponse":{"type":"object","required":["hash","height","mainchain","txCount","aggregates"],"properties":{"hash":{"type":"string","description":"Block hash"},"height":{"type":"integer","format":"int64","description":"Block height"},"mainchain":{"type":"boolean","description":"True if this block is on the main chain"},"previous":{"type":"string","nullable":true,"description":"Previous block hash"},"time":{"type":"integer","format":"int64","nullable":true,"description":"Unix timestamp of the block"},"version":{"type":"integer","nullable":true,"description":"Block version"},"bits":{"type":"integer","format":"int64","nullable":true,"description":"Difficulty target in compact form"},"nonce":{"type":"integer","format":"int64","nullable":true,"description":"Proof-of-work nonce"},"size":{"type":"integer","nullable":true,"description":"Block size in bytes"},"weight":{"type":"integer","nullable":true,"description":"Block weight (SegWit)"},"txCount":{"type":"integer","description":"Number of transactions in the block. Always returned, including when `txs` is omitted."},"txs":{"type":"array","items":{"$ref":"#/components/schemas/HaskoinTransactionResponse"},"description":"Full transaction details for all transactions in the block. Absent from the response entirely when the request set `includeTransactions: false`.\n"},"coinbaseTx":{"allOf":[{"$ref":"#/components/schemas/HaskoinTransactionResponse"}],"nullable":true,"description":"The block's coinbase transaction. Returned regardless of `includeTransactions`."},"aggregates":{"$ref":"#/components/schemas/HaskoinBlockAggregates"},"merkle":{"type":"string","nullable":true,"description":"Merkle root hash"},"subsidy":{"type":"integer","format":"int64","nullable":true,"description":"Coinbase subsidy in satoshis"},"fees":{"type":"integer","format":"int64","nullable":true,"description":"Total fees collected in satoshis"},"outputs":{"type":"integer","format":"int64","nullable":true,"description":"Total output value in satoshis"},"work":{"type":"string","nullable":true,"description":"Cumulative chain work (hex)"}}},"HaskoinBlockAggregates":{"type":"object","required":["inputValue","outputValue","inputCount","outputCount","witnessTxCount","medianTxValue","medianFee","minFeeRate","maxFeeRate"],"description":"Roll-ups over the block's full transaction list, computed over every transaction including the coinbase. Returned regardless of `includeTransactions`, so the block page can render without downloading the transaction array.\n","properties":{"inputValue":{"type":"integer","format":"int64","description":"Sum of all input values across all transactions, satoshis"},"outputValue":{"type":"integer","format":"int64","description":"Sum of all output values across all transactions, satoshis"},"inputCount":{"type":"integer","description":"Total number of inputs across all transactions"},"outputCount":{"type":"integer","description":"Total number of outputs across all transactions"},"witnessTxCount":{"type":"integer","description":"Transactions carrying at least one non-empty witness"},"medianTxValue":{"type":"integer","format":"int64","description":"Median of the per-transaction summed output value, satoshis. Even-sized blocks average the two middle values, floored."},"medianFee":{"type":"integer","format":"int64","description":"Median of the per-transaction fee, satoshis. Even-sized blocks average the two middle values, floored."},"minFeeRate":{"type":"number","format":"double","description":"Lowest fee/size over transactions with fee > 0 and size > 0. Satoshis per raw byte — `size`, not vsize, matching what the block page computed client-side. 0 when no transaction qualifies.\n"},"maxFeeRate":{"type":"number","format":"double","description":"Highest fee/size over transactions with fee > 0 and size > 0, same unit and filter as `minFeeRate`. 0 when no transaction qualifies.\n"}}},"HaskoinBlockTransactionsRequest":{"type":"object","properties":{"hash":{"type":"string","description":"Block hash — exactly 64 hex characters. Provide either hash or height, not both.","example":"000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f"},"height":{"type":"integer","format":"int64","description":"Block height (non-negative integer). Provide either hash or height, not both.","example":850000},"limit":{"type":"integer","default":15,"minimum":1,"maximum":50,"description":"Page size (capped at 50)"},"offset":{"type":"integer","default":0,"minimum":0,"description":"Offset into the sorted transaction list. An offset beyond `total` returns an empty page, not an error."},"sort":{"type":"string","enum":["index","value","fees"],"default":"index","description":"`index` orders by position in the block, `value` by summed output value, `fees` by fee. Ties always fall back to block position, so paging can neither duplicate nor skip a transaction.\n"},"order":{"type":"string","enum":["asc","desc"],"default":"asc"}}},"HaskoinBlockTransactionsResponse":{"type":"object","required":["total","transactions"],"properties":{"total":{"type":"integer","description":"Total transactions in the block — drives pagination. Matches `txCount` on `/{chain}/block`."},"transactions":{"type":"array","items":{"$ref":"#/components/schemas/HaskoinBlockTransactionResponse"}}}},"HaskoinBlockTransactionResponse":{"type":"object","description":"The `/{chain}/transaction` schema plus the summed output value that `sort=value` orders by.","required":["txId","mempool","rbf","inputs","outputs","outputValue"],"allOf":[{"$ref":"#/components/schemas/HaskoinTransactionResponse"},{"type":"object","properties":{"outputValue":{"type":"integer","format":"int64","description":"Sum of this transaction's output values, satoshis"}}}]},"GetEthWalletRequest":{"type":"object","required":["network","address"],"properties":{"network":{"type":"string","example":"ETH"},"address":{"type":"string"},"page":{"type":"integer","default":1,"minimum":0},"size":{"type":"integer","default":20,"minimum":1,"maximum":50}}},"GetEthWalletResponse":{"type":"object","required":["address","balance","transactions","page"],"properties":{"address":{"type":"string"},"balance":{"type":"string","description":"Balance in Wei"},"nonce":{"type":"string","nullable":true},"transactionCount":{"type":"string","nullable":true},"internalTransactionCount":{"type":"string","nullable":true},"totalSent":{"type":"string","nullable":true},"totalReceived":{"type":"string","nullable":true},"totalFees":{"type":"string","nullable":true},"transactions":{"type":"array","items":{"$ref":"#/components/schemas/EthAddressTransaction"}},"page":{"type":"integer"}}},"EthAddressTransaction":{"type":"object","required":["hash","value"],"properties":{"hash":{"type":"string"},"blockHash":{"type":"string","nullable":true},"blockNumber":{"type":"integer","format":"int64","nullable":true},"timestamp":{"type":"integer","format":"int64","nullable":true},"from":{"type":"string","nullable":true},"to":{"type":"string","nullable":true},"value":{"type":"string","description":"Value transferred in Wei"},"nonce":{"type":"integer","format":"int64","nullable":true},"transactionIndex":{"type":"integer","format":"int64","nullable":true},"gasPrice":{"type":"string","nullable":true,"description":"Gas price in Wei"},"gasLimit":{"type":"integer","format":"int64","nullable":true},"gasUsed":{"type":"integer","format":"int64","nullable":true},"fee":{"type":"string","nullable":true,"description":"Total fee paid in Wei (gasUsed * gasPrice)"},"success":{"type":"boolean","nullable":true},"firstSeen":{"type":"string","nullable":true},"state":{"type":"string","nullable":true,"example":"CONFIRMED"},"type":{"type":"string","nullable":true},"error":{"type":"string","nullable":true}}},"GetEthAddressTokensRequest":{"type":"object","required":["network","address"],"properties":{"network":{"type":"string","example":"ETH"},"address":{"type":"string"}}},"GetEthAddressTokensResponse":{"type":"object","required":["address","tokens"],"properties":{"address":{"type":"string"},"tokens":{"type":"array","items":{"$ref":"#/components/schemas/EthTokenHolding"}}}},"EthTokenHolding":{"type":"object","required":["contractAddress","balance"],"properties":{"contractAddress":{"type":"string","description":"ERC-20 contract address"},"balance":{"type":"string","description":"Raw token balance in base units"},"name":{"type":"string","nullable":true},"symbol":{"type":"string","nullable":true},"decimals":{"type":"integer","nullable":true}}},"GetEthAddressInternalTxsRequest":{"type":"object","required":["network","address"],"properties":{"network":{"type":"string","example":"ETH"},"address":{"type":"string"},"page":{"type":"integer","default":0,"minimum":0},"size":{"type":"integer","default":20,"minimum":1,"maximum":50}}},"GetEthAddressInternalTxsResponse":{"type":"object","required":["address","internalTransactions","page","size"],"properties":{"address":{"type":"string"},"internalTransactions":{"type":"array","items":{"$ref":"#/components/schemas/EthInternalTransaction"}},"page":{"type":"integer"},"size":{"type":"integer"}}},"EthInternalTransaction":{"type":"object","required":["value"],"properties":{"transactionHash":{"type":"string","nullable":true},"parentHash":{"type":"string","nullable":true},"blockHash":{"type":"string","nullable":true},"blockNumber":{"type":"integer","format":"int64","nullable":true},"timestamp":{"type":"integer","format":"int64","nullable":true},"from":{"type":"string","nullable":true},"to":{"type":"string","nullable":true},"value":{"type":"string","description":"Value transferred in Wei"},"type":{"type":"string","nullable":true,"example":"CALL"},"gasLimit":{"type":"integer","format":"int64","nullable":true},"gasUsed":{"type":"integer","format":"int64","nullable":true}}},"GetEthLatestBlocksRequest":{"type":"object","required":["network"],"properties":{"network":{"type":"string","example":"ETH"},"limit":{"type":"integer","default":10,"minimum":0,"maximum":20,"description":"Number of blocks to return (0 is treated as 1; values above 20 are capped at 20)"}}},"GetEthLatestBlocksResponse":{"type":"object","required":["currentBlockId","blocks"],"properties":{"currentBlockId":{"type":"integer","format":"int64"},"blocks":{"type":"array","items":{"$ref":"#/components/schemas/EthBlockSummary"}}}},"EthBlockSummary":{"type":"object","required":["blockId"],"properties":{"blockId":{"type":"integer","format":"int64"},"hash":{"type":"string","nullable":true},"parentHash":{"type":"string","nullable":true},"sha3Uncles":{"type":"string","nullable":true},"transactionsRoot":{"type":"string","nullable":true},"stateRoot":{"type":"string","nullable":true},"logsBloom":{"type":"string","nullable":true},"difficulty":{"type":"string","nullable":true},"totalDifficulty":{"type":"string","nullable":true},"gasLimit":{"type":"integer","format":"int64","nullable":true},"gasUsed":{"type":"integer","format":"int64","nullable":true},"extraData":{"type":"string","nullable":true},"timestamp":{"type":"integer","format":"int64","nullable":true},"size":{"type":"integer","format":"int64","nullable":true},"miner":{"type":"string","nullable":true},"nonce":{"type":"string","nullable":true},"staticReward":{"type":"string","nullable":true},"blockReward":{"type":"string","nullable":true},"totalUncleReward":{"type":"string","nullable":true},"totalFees":{"type":"string","nullable":true},"transactionCount":{"type":"integer","nullable":true},"internalTransactionCount":{"type":"integer","nullable":true}}},"GetEthBlockRequest":{"type":"object","required":["network"],"properties":{"network":{"type":"string","example":"ETH"},"blockId":{"type":"integer","format":"int64","nullable":true,"minimum":0,"description":"Block number (non-negative); provide this or hash"},"hash":{"type":"string","nullable":true,"description":"Block hash; provide this or blockId","example":"0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3"},"includeTransactions":{"type":"boolean","default":true,"description":"Set false to omit `transactions` and `internalTransactions` from the response. `transactionCount`, `internalTransactionCount` and `aggregates` are returned either way, and page the transactions themselves with `/eth/block/transactions`.\n"}}},"GetEthBlockResponse":{"type":"object","properties":{"blockId":{"type":"integer","format":"int64","nullable":true},"hash":{"type":"string","nullable":true},"parentHash":{"type":"string","nullable":true},"sha3Uncles":{"type":"string","nullable":true},"transactionsRoot":{"type":"string","nullable":true},"stateRoot":{"type":"string","nullable":true},"logsBloom":{"type":"string","nullable":true},"miner":{"type":"string","nullable":true},"difficulty":{"type":"string","nullable":true},"totalDifficulty":{"type":"string","nullable":true},"gasLimit":{"type":"integer","format":"int64","nullable":true},"gasUsed":{"type":"integer","format":"int64","nullable":true},"extraData":{"type":"string","nullable":true},"size":{"type":"integer","format":"int64","nullable":true},"nonce":{"type":"string","nullable":true},"staticReward":{"type":"string","nullable":true},"blockReward":{"type":"string","nullable":true},"totalUncleReward":{"type":"string","nullable":true},"totalFees":{"type":"string","nullable":true},"burntFees":{"type":"string","nullable":true,"description":"Wei burnt by the block (EIP-1559 base fee × gas used, plus EIP-4844 blob fees), derived as `totalFees - blockReward` for proof-of-stake blocks. \"0\" before London (block 12965000). Null between London and the Merge (block 15537394), where upstream data cannot yield it.\n","example":"29396987743586232"},"timestamp":{"type":"integer","format":"int64","nullable":true},"transactionCount":{"type":"integer","nullable":true},"internalTransactionCount":{"type":"integer","nullable":true,"description":"Always returned, including when the transaction arrays are omitted."},"aggregates":{"$ref":"#/components/schemas/EthBlockAggregates"},"transactions":{"type":"array","items":{"$ref":"#/components/schemas/EthBlockTransaction"},"description":"Absent from the response entirely when the request set `includeTransactions: false`."},"internalTransactions":{"type":"array","items":{"$ref":"#/components/schemas/EthBlockInternalTransaction"},"description":"Absent from the response entirely when the request set `includeTransactions: false`."}}},"EthBlockAggregates":{"type":"object","required":["totalValueSent","medianTxValue","medianFee","minGasPrice","maxGasPrice"],"description":"Roll-ups over the block's transaction list, returned regardless of `includeTransactions`. Wei as a decimal string, consistent with `blockReward` and `totalFees`.\n","properties":{"totalValueSent":{"type":"string","description":"Sum of `value` across the block's transactions, Wei","example":"1234567890000000000"},"medianTxValue":{"type":"string","description":"Median of `value` across the block's transactions, Wei. Even-sized blocks average the two middle values, floored.","example":"12000000000000000"},"medianFee":{"type":"string","description":"Median of the per-transaction fee (`gasUsed × gasPrice`), Wei. Even-sized blocks average the two middle values, floored.","example":"43254871516000"},"minGasPrice":{"type":"string","description":"Lowest effective gas price across the block's transactions, Wei per gas. \"0\" for an empty block.","example":"802453596"},"maxGasPrice":{"type":"string","description":"Highest effective gas price across the block's transactions, Wei per gas. \"0\" for an empty block.","example":"25802453596"}}},"GetEthBlockTransactionsRequest":{"type":"object","required":["network"],"properties":{"network":{"type":"string","example":"ETH"},"blockId":{"type":"integer","format":"int64","nullable":true,"minimum":0,"description":"Block number (non-negative); provide this or hash"},"hash":{"type":"string","nullable":true,"description":"Block hash; provide this or blockId"},"limit":{"type":"integer","default":15,"minimum":1,"maximum":50,"description":"Page size (capped at 50)"},"offset":{"type":"integer","default":0,"minimum":0,"description":"Offset into the sorted transaction list. An offset beyond `total` returns an empty page, not an error."},"sort":{"type":"string","enum":["index","value","fees"],"default":"index","description":"`index` orders by `transactionIndex`, `value` by `value` (Wei), `fees` by `fee`. Ties always fall back to transaction index, so paging can neither duplicate nor skip a transaction.\n"},"order":{"type":"string","enum":["asc","desc"],"default":"asc"}}},"GetEthBlockTransactionsResponse":{"type":"object","required":["total","transactions"],"properties":{"total":{"type":"integer","description":"Total transactions in the block — drives pagination. Matches `transactionCount` on `/eth/block`."},"transactions":{"type":"array","items":{"$ref":"#/components/schemas/EthBlockTransaction"}}}},"EthBlockTransaction":{"type":"object","required":["hash","value"],"properties":{"hash":{"type":"string"},"blockHash":{"type":"string","nullable":true},"blockNumber":{"type":"integer","format":"int64","nullable":true},"from":{"type":"string","nullable":true},"to":{"type":"string","nullable":true},"value":{"type":"string","description":"Value transferred in Wei"},"fee":{"type":"string","nullable":true,"description":"Total fee paid in Wei (gasUsed * gasPrice)"},"gasLimit":{"type":"integer","format":"int64","nullable":true},"gasPrice":{"type":"string","nullable":true},"gasUsed":{"type":"integer","format":"int64","nullable":true},"nonce":{"type":"integer","format":"int64","nullable":true},"transactionIndex":{"type":"integer","format":"int64","nullable":true},"timestamp":{"type":"integer","format":"int64","nullable":true},"status":{"type":"integer","nullable":true,"description":"1 = success, 0 = failed"},"error":{"type":"string","nullable":true},"success":{"type":"boolean","nullable":true},"state":{"type":"string","nullable":true,"example":"CONFIRMED"},"data":{"type":"string","nullable":true,"description":"Input data (hex-encoded)"},"internalTransactions":{"type":"array","items":{"$ref":"#/components/schemas/EthInternalTransaction"}}}},"EthBlockInternalTransaction":{"type":"object","required":["transactionHash","value"],"properties":{"transactionHash":{"type":"string"},"parentHash":{"type":"string","nullable":true},"blockHash":{"type":"string","nullable":true},"blockNumber":{"type":"integer","format":"int64","nullable":true},"timestamp":{"type":"integer","format":"int64","nullable":true},"from":{"type":"string","nullable":true},"to":{"type":"string","nullable":true},"value":{"type":"string","description":"Value transferred in Wei"},"type":{"type":"string","nullable":true,"example":"CALL"},"gasLimit":{"type":"integer","format":"int64","nullable":true},"gasUsed":{"type":"integer","format":"int64","nullable":true}}},"GetEthTransactionRequest":{"type":"object","required":["network","txId"],"properties":{"network":{"type":"string","example":"ETH"},"txId":{"type":"string"},"transfers":{"type":"boolean","default":false,"description":"When true, includes the token (ERC-20) transfers found in this transaction"}}},"GetEthTransactionResponse":{"type":"object","required":["hash","value","internalTransactions"],"properties":{"hash":{"type":"string"},"blockHash":{"type":"string","nullable":true},"blockNumber":{"type":"integer","format":"int64","nullable":true},"from":{"type":"string","nullable":true},"to":{"type":"string","nullable":true},"value":{"type":"string","description":"Value transferred in Wei"},"fee":{"type":"string","nullable":true,"description":"Total fee paid in Wei (gasUsed * gasPrice)"},"gasLimit":{"type":"integer","format":"int64","nullable":true},"gasPrice":{"type":"string","nullable":true,"description":"Gas price in Wei"},"gasUsed":{"type":"integer","format":"int64","nullable":true},"nonce":{"type":"integer","format":"int64","nullable":true},"transactionIndex":{"type":"integer","format":"int64","nullable":true},"timestamp":{"type":"integer","format":"int64","nullable":true},"status":{"type":"integer","nullable":true,"description":"1 = success, 0 = failed"},"success":{"type":"boolean","nullable":true},"state":{"type":"string","nullable":true,"example":"CONFIRMED"},"data":{"type":"string","nullable":true,"description":"Input data (hex-encoded)"},"error":{"type":"string","nullable":true},"internalTransactions":{"type":"array","items":{"$ref":"#/components/schemas/EthInternalTransaction"}},"transfers":{"type":"array","nullable":true,"description":"Token (ERC-20) transfers found in this transaction. Present only when `transfers=true` was requested; null otherwise.","items":{"$ref":"#/components/schemas/EthTokenTransfer"}}}},"EthTokenTransfer":{"type":"object","properties":{"logIndex":{"type":"integer","format":"int64","nullable":true},"tokenHash":{"type":"string","nullable":true,"description":"Token contract address"},"from":{"type":"string","nullable":true},"to":{"type":"string","nullable":true},"value":{"type":"string","nullable":true,"description":"Raw token amount transferred, in the token's smallest unit"},"decimals":{"type":"integer","nullable":true},"blockHash":{"type":"string","nullable":true},"transactionHash":{"type":"string","nullable":true},"blockNumber":{"type":"integer","format":"int64","nullable":true},"idxFrom":{"type":"integer","format":"int64","nullable":true},"idxTo":{"type":"integer","format":"int64","nullable":true},"accountIdxFrom":{"type":"integer","format":"int64","nullable":true},"accountIdxTo":{"type":"integer","format":"int64","nullable":true},"timestamp":{"type":"integer","format":"int64","nullable":true},"tokenName":{"type":"string","nullable":true},"tokenSymbol":{"type":"string","nullable":true}}},"GetChartRequest":{"type":"object","properties":{"timespan":{"type":"string","default":"1y","description":"Time period (e.g., \"24h\", \"7d\", \"1y\", \"3y\")","example":"1y"},"sampled":{"type":"boolean","default":true,"description":"Apply sampling to reduce data points"},"metadata":{"type":"boolean","default":false,"description":"Include metadata in response"},"rollingAverage":{"type":"string","default":"8h","description":"Rolling average window (e.g., \"8h\", \"24h\")","example":"8h"},"cors":{"type":"boolean","default":false,"description":"Enable CORS headers"},"format":{"$ref":"#/components/schemas/ChartFormat"}}},"GetPoolsRequest":{"type":"object","properties":{"timespan":{"$ref":"#/components/schemas/PoolTimespan"}}},"GetChartResponse":{"type":"object","required":["status","name","unit","period","description","values"],"properties":{"status":{"type":"string","description":"Response status","example":"ok"},"name":{"type":"string","description":"Chart name","example":"Hash Rate"},"unit":{"type":"string","description":"Unit of measurement for chart values","example":"GH/s"},"period":{"type":"string","description":"Time period of the data","example":"day"},"description":{"type":"string","description":"Chart description","example":"The estimated number of gigahashes per second the bitcoin network is performing in the last 24 hours."},"values":{"type":"array","items":{"$ref":"#/components/schemas/ChartValue"},"description":"Array of time-series data points"}}},"ChartValue":{"type":"object","required":["x","y"],"properties":{"x":{"type":"integer","format":"int64","description":"Unix timestamp in seconds","example":1704067200},"y":{"type":"number","format":"double","description":"Chart value at this timestamp","example":512345678.9}}},"ChartFormat":{"type":"string","enum":["json","csv"],"default":"json","description":"Response format:\n- `json` — Returns structured JSON with metadata and values\n- `csv` — Returns raw CSV data with timestamp and value columns (no metadata)\n"},"PoolTimespan":{"type":"string","enum":["24h","2d","4d","7d","10d","6m","1y","2y","3y"],"default":"4d","description":"Time period for pool statistics:\n- \"24h\" — Last 24 hours\n- \"2d\" — Last 2 days\n- \"4d\" — Last 4 days (default)\n- \"7d\" — Last 7 days\n- \"10d\" — Last 10 days\n- \"6m\" — Last 6 months\n- \"1y\" — Last year\n- \"2y\" — Last 2 years\n- \"3y\" — Last 3 years (maximum for pools endpoint)\n"},"GetPoolsResponse":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Map of pool names to block count","example":{"Foundry USA":3420,"AntPool":2156,"F2Pool":1823,"Binance Pool":1245,"ViaBTC":892}}}}}