{"openapi":"3.1.0","info":{"title":"Explorer Gateway API","description":"Blockchain explorer gateway — Solana, Bitcoin, Bitcoin Cash, Ethereum","version":"1.0.0","x-guidance":"Free endpoints under /public/* return blockchain explorer data (Solana, Bitcoin, Bitcoin Cash and Ethereum blocks, transactions, addresses and token balances) plus Bitcoin network charts, no payment required. Every endpoint also has an AI-agent-facing, pay-per-call mirror under /public/x402/* with an identical request/response shape, gated by x402 payment (see each paid operation's x-payment-info and 402 response). Use the free path for normal API access; use the x402/ path when paying per-request as an autonomous agent.","contact":{"email":"api@blockchain.com"}},"servers":[{"url":"https://api.blockchain.info/explorer-gateway-kt"}],"tags":[{"name":"Solana","description":"SOL blockchain endpoints"},{"name":"Bitcoin","description":"BTC blockchain endpoints"},{"name":"Bitcoin Cash","description":"BCH blockchain endpoints"},{"name":"Ethereum","description":"ETH blockchain endpoints"},{"name":"Charts","description":"Bitcoin network statistics and charts"}],"paths":{"/x402/sol/blocks":{"post":{"summary":"Get latest blocks (paid via x402)","operationId":"getLatestBlocksX402","x-x402-price":2000,"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"}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]}}},"/x402/sol/block":{"post":{"summary":"Get block by slot (paid via x402)","operationId":"getBlockX402","x-x402-price":3000,"tags":["Solana"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetBlockRequest"},"example":{"network":"SOL","blockId":280000000}}}},"responses":{"200":{"description":"Block details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetBlockResponse"}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.003000"},"protocols":[{"x402":{}}]}}},"/x402/sol/transaction":{"post":{"summary":"Get parsed transaction with movements (paid via x402)","operationId":"getTransactionX402","x-x402-price":1000,"tags":["Solana"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTransactionRequest"},"example":{"network":"SOL","txId":"5j7s8K..."}}}},"responses":{"200":{"description":"Parsed transaction","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTransactionResponse"}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/sol/transaction/instructions":{"post":{"summary":"Get parsed transaction with unpacked instructions (paid via x402)","operationId":"getTransactionInstructionsX402","x-x402-price":1500,"tags":["Solana"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTransactionRequest"},"example":{"network":"SOL","txId":"5j7s8K..."}}}},"responses":{"200":{"description":"Parsed transaction with instructions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTransactionInstructionsResponse"}}}},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001500"},"protocols":[{"x402":{}}]}}},"/x402/sol/transaction/raw":{"post":{"summary":"Get raw Solana RPC transaction response (paid via x402)","operationId":"getTransactionRawX402","x-x402-price":1000,"tags":["Solana"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTransactionRequest"},"example":{"network":"SOL","txId":"5j7s8K..."}}}},"responses":{"200":{"description":"Raw Solana transaction","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RawTransaction"}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/sol/address":{"post":{"summary":"Get address info and recent transactions (paid via x402)","operationId":"getAddressX402","x-x402-price":1500,"tags":["Solana"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAddressRequest"},"example":{"network":"SOL","address":"4Qkev8aNZcqFNSRkR37YKd3MagFStkvv9k8gqn87gSo","limit":10}}}},"responses":{"200":{"description":"Address details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAddressResponse"}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001500"},"protocols":[{"x402":{}}]}}},"/x402/sol/address/tokens":{"post":{"summary":"Get token balances for an address (paid via x402)","operationId":"getAddressTokensX402","x-x402-price":1000,"tags":["Solana"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAddressTokensRequest"},"example":{"network":"SOL","address":"4Qkev8aNZcqFNSRkR37YKd3MagFStkvv9k8gqn87gSo"}}}},"responses":{"200":{"description":"Token balances for the address","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAddressTokensResponse"}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/btc/address":{"post":{"summary":"Get BTC address balance (paid via x402)","operationId":"getBtcAddressX402","x-x402-price":1000,"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"}}}},"404":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/btc/address/transactions":{"post":{"summary":"Get paginated BTC address transactions (paid via x402)","operationId":"getBtcAddressTransactionsX402","x-x402-price":1500,"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"}}}},"404":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001500"},"protocols":[{"x402":{}}]}}},"/x402/btc/transaction":{"post":{"summary":"Get BTC transaction detail (paid via x402)","operationId":"getBtcTransactionX402","x-x402-price":1000,"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"}}}},"404":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/btc/transactions":{"post":{"summary":"Get multiple BTC transactions by ID (paid via x402)","operationId":"getBtcTransactionsX402","x-x402-price":2000,"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"}}}},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]}}},"/x402/bch/address":{"post":{"summary":"Get BCH address balance (paid via x402)","operationId":"getBchAddressX402","x-x402-price":1000,"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"}}}},"404":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/bch/address/transactions":{"post":{"summary":"Get paginated BCH address transactions (paid via x402)","operationId":"getBchAddressTransactionsX402","x-x402-price":1500,"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"}}}},"404":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001500"},"protocols":[{"x402":{}}]}}},"/x402/bch/transaction":{"post":{"summary":"Get BCH transaction detail (paid via x402)","operationId":"getBchTransactionX402","x-x402-price":1000,"tags":["Bitcoin Cash"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinTransactionRequest"},"example":{"txId":"abc123..."}}}},"responses":{"200":{"description":"Transaction detail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinTransactionResponse"}}}},"404":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/bch/transactions":{"post":{"summary":"Get multiple BCH transactions by ID (paid via x402)","operationId":"getBchTransactionsX402","x-x402-price":2000,"tags":["Bitcoin Cash"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinTransactionsRequest"},"example":{"txIds":["abc123..."]}}}},"responses":{"200":{"description":"Transaction list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinTransactionsResponse"}}}},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]}}},"/x402/btc/block":{"post":{"summary":"Get BTC block by hash or height (paid via x402)","operationId":"getBtcBlockX402","x-x402-price":3000,"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}}}}}},"responses":{"200":{"description":"Full block data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinBlockResponse"}}}},"400":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.003000"},"protocols":[{"x402":{}}]}}},"/x402/btc/blocks":{"post":{"summary":"Get latest BTC blocks (paid via x402)","operationId":"getBtcLatestBlocksX402","x-x402-price":2000,"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"}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]}}},"/x402/bch/block":{"post":{"summary":"Get BCH block by hash or height (paid via x402)","operationId":"getBchBlockX402","x-x402-price":3000,"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}}}}}},"responses":{"200":{"description":"Full block data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaskoinBlockResponse"}}}},"400":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.003000"},"protocols":[{"x402":{}}]}}},"/x402/bch/blocks":{"post":{"summary":"Get latest BCH blocks (paid via x402)","operationId":"getBchLatestBlocksX402","x-x402-price":2000,"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"}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]}}},"/x402/eth/address":{"post":{"summary":"Get address wallet info and transactions (paid via x402)","operationId":"getEthWalletX402","x-x402-price":1500,"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"}}}},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001500"},"protocols":[{"x402":{}}]}}},"/x402/eth/address/tokens":{"post":{"summary":"Get ERC-20 token holdings for an address (paid via x402)","operationId":"getEthAddressTokensX402","x-x402-price":1000,"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"}}}},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/eth/address/internal-transactions":{"post":{"summary":"Get internal transactions for an address (paid via x402)","operationId":"getEthAddressInternalTransactionsX402","x-x402-price":1500,"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"}}}},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001500"},"protocols":[{"x402":{}}]}}},"/x402/eth/transaction":{"post":{"summary":"Get Ethereum transaction details (paid via x402)","operationId":"getEthTransactionX402","x-x402-price":1000,"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"}}}},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/eth/blocks":{"post":{"summary":"Get latest Ethereum blocks (paid via x402)","operationId":"getEthLatestBlocksX402","x-x402-price":2000,"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"},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]}}},"/x402/eth/block":{"post":{"summary":"Get Ethereum block by number or hash (paid via x402)","operationId":"getEthBlockX402","x-x402-price":3000,"tags":["Ethereum"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEthBlockRequest"},"example":{"network":"ETH","blockId":21000000}}}},"responses":{"200":{"description":"Block details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEthBlockResponse"}}}},"400":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.003000"},"protocols":[{"x402":{}}]}}},"/x402/charts/hash-rate":{"post":{"summary":"Get Bitcoin hash rate chart data (paid via x402)","operationId":"getHashRateChartX402","x-x402-price":1000,"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":5.123456789E8},{"x":1704153600,"y":5.1523456785E8}]}},"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"}}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/charts/avg-confirmation-time":{"post":{"summary":"Get Bitcoin average confirmation time chart data (paid via x402)","operationId":"getAvgConfirmationTimeChartX402","x-x402-price":1000,"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"}}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/charts/total-bitcoins":{"post":{"summary":"Get total bitcoins in circulation chart data (paid via x402)","operationId":"getTotalBitcoinsChartX402","x-x402-price":1000,"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":1.9589375E7},{"x":1704153600,"y":1.95895E7}]}},"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"}}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/charts/difficulty":{"post":{"summary":"Get Bitcoin mining difficulty chart data (paid via x402)","operationId":"getDifficultyChartX402","x-x402-price":1000,"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":7.2E13},{"x":1704153600,"y":7.21E13}]}},"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"}}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/charts/n-transactions":{"post":{"summary":"Get Bitcoin number of transactions chart data (paid via x402)","operationId":"getNTransactionsChartX402","x-x402-price":1000,"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.0},{"x":1704153600,"y":280000.0}]}},"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"}}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/charts/median-confirmation-time":{"post":{"summary":"Get Bitcoin median confirmation time chart data (paid via x402)","operationId":"getMedianConfirmationTimeChartX402","x-x402-price":1000,"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":"Median Confirmation Time chart data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartResponse"},"example":{"status":"ok","name":"Median Confirmation Time","unit":"Minutes","period":"day","description":"The median time for a transaction to be accepted into a mined block and added to the public ledger (note: only includes transactions with miner fees).","values":[{"x":1704067200,"y":8.5},{"x":1704153600,"y":9.1}]}},"text/csv":{"schema":{"type":"string"},"example":"1704067200,8.5\n1704153600,9.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"}}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/charts/market-price":{"post":{"summary":"Get Bitcoin market price chart data (paid via x402)","operationId":"getMarketPriceChartX402","x-x402-price":1000,"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"}}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/charts/trade-volume":{"post":{"summary":"Get Bitcoin USD exchange trade volume chart data (paid via x402)","operationId":"getTradeVolumeChartX402","x-x402-price":1000,"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":"USD Exchange Trade Volume chart data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartResponse"},"example":{"status":"ok","name":"USD Exchange Trade Volume","unit":"Trade Volume (USD)","period":"day","description":"The total USD value of trading volume on major bitcoin exchanges.","values":[{"x":1704067200,"y":8.123456789E8},{"x":1704153600,"y":7.981234567E8}]}},"text/csv":{"schema":{"type":"string"},"example":"1704067200,812345678.9\n1704153600,798123456.7\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"}}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/charts/transaction-fees":{"post":{"summary":"Get total Bitcoin transaction fees chart data (paid via x402)","operationId":"getTransactionFeesChartX402","x-x402-price":1000,"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"}}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/charts/transaction-fees-usd":{"post":{"summary":"Get total Bitcoin transaction fees in USD chart data (paid via x402)","operationId":"getTransactionFeesUsdChartX402","x-x402-price":1000,"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 in USD chart data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartResponse"},"example":{"status":"ok","name":"Total Transaction Fees in USD","unit":"USD","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":1176234.5},{"x":1704153600,"y":1332019.8}]}},"text/csv":{"schema":{"type":"string"},"example":"1704067200,1176234.5\n1704153600,1332019.8\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"}}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/charts/n-transactions-per-block":{"post":{"summary":"Get average Bitcoin transactions per block chart data (paid via x402)","operationId":"getNTransactionsPerBlockChartX402","x-x402-price":1000,"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"}}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/charts/avg-block-size":{"post":{"summary":"Get average Bitcoin block size chart data (paid via x402)","operationId":"getAvgBlockSizeChartX402","x-x402-price":1000,"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"}}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/charts/miners-revenue":{"post":{"summary":"Get Bitcoin miners revenue chart data (paid via x402)","operationId":"getMinersRevenueChartX402","x-x402-price":1000,"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":"Miners Revenue chart data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartResponse"},"example":{"status":"ok","name":"Miners Revenue","unit":"USD","period":"day","description":"Total value of coinbase block rewards and transaction fees paid to miners.","values":[{"x":1704067200,"y":4.48213457E7},{"x":1704153600,"y":4.59901234E7}]}},"text/csv":{"schema":{"type":"string"},"example":"1704067200,44821345.7\n1704153600,45990123.4\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"}}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/charts/cost-per-transaction":{"post":{"summary":"Get Bitcoin cost per transaction chart data (paid via x402)","operationId":"getCostPerTransactionChartX402","x-x402-price":1000,"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":"Cost per Transaction chart data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartResponse"},"example":{"status":"ok","name":"Cost per Transaction","unit":"USD","period":"day","description":"A chart showing miners revenue divided by the number of transactions.","values":[{"x":1704067200,"y":98.42},{"x":1704153600,"y":101.77}]}},"text/csv":{"schema":{"type":"string"},"example":"1704067200,98.42\n1704153600,101.77\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"}}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/charts/fees-usd-per-transaction":{"post":{"summary":"Get Bitcoin fees per transaction in USD chart data (paid via x402)","operationId":"getFeesUsdPerTransactionChartX402","x-x402-price":1000,"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":"Fees per Transaction (USD) chart data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartResponse"},"example":{"status":"ok","name":"Fees per Transaction (USD)","unit":"USD","period":"day","description":"A chart showing the total transaction fees paid to miners divided by the number of transactions.","values":[{"x":1704067200,"y":2.58},{"x":1704153600,"y":2.91}]}},"text/csv":{"schema":{"type":"string"},"example":"1704067200,2.58\n1704153600,2.91\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"}}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/charts/market-cap":{"post":{"summary":"Get Bitcoin market capitalization chart data (paid via x402)","operationId":"getMarketCapChartX402","x-x402-price":1000,"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"}}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/charts/blocks-size":{"post":{"summary":"Get Bitcoin blockchain size chart data (paid via x402)","operationId":"getBlocksSizeChartX402","x-x402-price":1000,"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"}}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/charts/n-transactions-total":{"post":{"summary":"Get total number of Bitcoin transactions chart data (paid via x402)","operationId":"getNTransactionsTotalChartX402","x-x402-price":1000,"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"}}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/charts/utxo-count":{"post":{"summary":"Get Bitcoin unspent transaction output count chart data (paid via x402)","operationId":"getUtxoCountChartX402","x-x402-price":1000,"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"}}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/charts/nvt":{"post":{"summary":"Get Bitcoin network value to transactions ratio chart data (paid via x402)","operationId":"getNvtChartX402","x-x402-price":1000,"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":"Network Value to Transactions (NVT) Ratio chart data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartResponse"},"example":{"status":"ok","name":"Network Value to Transactions (NVT) Ratio","unit":"Ratio","period":"day","description":"The ratio of the market capitalisation of Bitcoin to the USD value transferred on the network.","values":[{"x":1704067200,"y":34.82},{"x":1704153600,"y":35.41}]}},"text/csv":{"schema":{"type":"string"},"example":"1704067200,34.82\n1704153600,35.41\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"}}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/charts/nvts":{"post":{"summary":"Get Bitcoin network value to transactions signal chart data (paid via x402)","operationId":"getNvtsChartX402","x-x402-price":1000,"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":"Network Value to Transactions Signal (NVTS) chart data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartResponse"},"example":{"status":"ok","name":"Network Value to Transactions Signal (NVTS)","unit":"Ratio","period":"day","description":"The ratio of the market capitalisation of Bitcoin to a moving average of the USD value transferred on the network.","values":[{"x":1704067200,"y":31.09},{"x":1704153600,"y":31.44}]}},"text/csv":{"schema":{"type":"string"},"example":"1704067200,31.09\n1704153600,31.44\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"}}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/charts/n-unique-addresses":{"post":{"summary":"Get number of unique Bitcoin addresses used chart data (paid via x402)","operationId":"getNUniqueAddressesChartX402","x-x402-price":1000,"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"}}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/charts/mempool-count":{"post":{"summary":"Get Bitcoin mempool transaction count chart data (paid via x402)","operationId":"getMempoolCountChartX402","x-x402-price":1000,"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":"Mempool Transaction Count chart data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartResponse"},"example":{"status":"ok","name":"Mempool Transaction Count","unit":"Transactions","period":"minute","description":"The number of transactions waiting to be confirmed.","values":[{"x":1704067200,"y":18342},{"x":1704068100,"y":19105}]}},"text/csv":{"schema":{"type":"string"},"example":"1704067200,18342\n1704068100,19105\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"}}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/charts/mempool-size":{"post":{"summary":"Get Bitcoin mempool size chart data (paid via x402)","operationId":"getMempoolSizeChartX402","x-x402-price":1000,"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":"Mempool Size chart data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartResponse"},"example":{"status":"ok","name":"Mempool Size","unit":"Bytes","period":"minute","description":"The aggregate size of transactions waiting to be confirmed.","values":[{"x":1704067200,"y":14823904},{"x":1704068100,"y":15490211}]}},"text/csv":{"schema":{"type":"string"},"example":"1704067200,14823904\n1704068100,15490211\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"}}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/charts/transactions-per-second":{"post":{"summary":"Get Bitcoin transaction rate chart data (paid via x402)","operationId":"getTransactionsPerSecondChartX402","x-x402-price":1000,"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":"Transaction Rate chart data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChartResponse"},"example":{"status":"ok","name":"Transaction Rate","unit":"Transactions Per Second","period":"minute","description":"The number of Bitcoin transactions added to the mempool per second.","values":[{"x":1704067200,"y":4.82},{"x":1704068100,"y":5.13}]}},"text/csv":{"schema":{"type":"string"},"example":"1704067200,4.82\n1704068100,5.13\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"}}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/x402/charts/pools":{"post":{"summary":"Get Bitcoin mining pools distribution (paid via x402)","operationId":"getPoolsChartX402","x-x402-price":1000,"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"}}}}},"500":{"$ref":"#/components/responses/Error"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}}},"security":[{"ApiKeyAuth":[]},{}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-Explorer-Auth-Key","description":"Optional. Provide your Explorer API key in the `X-Explorer-Auth-Key` header. Requests sent without a key use the default (unauthenticated) rate limits."}},"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"}}},"GetBlockResponse":{"type":"object","required":["blockId","hash","parentHash","parentBlockId","transactionCount","successfulTransactionCount","totalAmountSent","transactions","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"}},"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"}}},"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}}},"HaskoinBlockResponse":{"type":"object","required":["hash","height","mainchain","txs"],"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)"},"txs":{"type":"array","items":{"$ref":"#/components/schemas/HaskoinTransactionResponse"},"description":"Full transaction details for all transactions in the block"},"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)"}}},"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"}}},"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},"timestamp":{"type":"integer","format":"int64","nullable":true},"transactionCount":{"type":"integer","nullable":true},"internalTransactionCount":{"type":"integer","nullable":true},"transactions":{"type":"array","items":{"$ref":"#/components/schemas/EthBlockTransaction"}},"internalTransactions":{"type":"array","items":{"$ref":"#/components/schemas/EthBlockInternalTransaction"}}}},"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":5.123456789E8}}},"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}}}}}