API documentation
Every route is a GET and answers JSON. The examples below are real answers, cut to at most 40 lines.
Chains
The chain is the first part of the path after /v1/. Each chain has the same routes and the same fields.
| Chain | Name in URLs |
|---|---|
| Bitcoin | bitcoin |
| Bitcoin Cash | bitcoin-cash |
| Litecoin | litecoin |
| Dogecoin | dogecoin |
| Dash | dash |
| Zcash | zcash |
API key
Every request carries your API key: in the header X-API-Key, or as the query parameter key. The header keeps the key out of URLs. You make keys on your account page after you sign in. You can sign up with Google, Apple, GitHub, or an email address and a password. Connecting a provider to an existing account with a verified address may need a confirmation link, which we send to that account's address. A key works once your account has credits, from the trial or from a purchase (see Credits). A request without a valid key answers 401 with the code unauthorized.
Credits
Calls with a key from your account use prepaid credits. A call that is charged answers with two headers: X-Credits-Cost, the credits the call cost, and X-Credits-Remaining, your balance right after the charge, not counting other calls of your account that are still running. The body of the answer is the same as without credits. Packs, the trial and how long credits last are on the pricing page.
What a call costs
| Call | Credits |
|---|---|
| /v1 one transaction, a block, a block's transactions, the latest blocks, search or status | 1 |
| /v1 several transactions (up to 10) | 2 |
| /v1 address summary | 1 |
| /v1 address transactions or unspent outputs, per page | 2 |
| /v1 wallet summary for an xpub, ypub or zpub key, plus the scan surcharge | 5 |
| /v1 wallet (xpub, ypub or zpub) addresses, transactions or unspent outputs, per page | 5 |
| Blockchair-compatible transaction dashboard (up to 10) | 2 |
| Blockchair-compatible address dashboard | 1 |
| Blockchair-compatible address dashboard with transaction_details=true | 2 |
The scan surcharge is 1 credit for every 20 addresses scanned and 1 for every 1,000 transactions in the wallet's history, each rounded down. It is worked out from the figures the answer itself reports.
What is charged
A completed lookup is charged: every 2xx answer, an empty result included, and on /v1 a 404 for a well-formed transaction or block that does not exist. A wallet over the address limit (422 wallet_too_large) costs the route's base cost, without the scan surcharge.
Not charged: 400, 401, 402, 404 for an unknown chain or route, 405, 429 and every 5xx.
A call reserves its base cost when it starts, and your balance must cover it. A call that is not charged gives the reservation back. The scan surcharge can take the balance below 0; your calls then answer 402 until the balance covers them again.
Refusals
- 402 insufficient_credits: your balance does not cover the call, your account has no credits yet, or your account is on hold.
- 429 too_many_requests: 8 calls of your account are running already. Retry-After is 1 second.
- 503 unavailable: your account could not be checked because the accounts database does not answer. Retry-After is 30 seconds.
Conventions
A successful answer has two parts: data, and meta with the chain and the chain tip (chain, tip_height, tip_time). Search and status are about no single chain, so their meta is empty. An error has one part, error (see Errors). Only GET is accepted.
- Amounts are decimal strings in the chain's smallest unit (satoshis and their equivalents), such as "125070000". A change that decreases a balance has a leading minus sign. The strings are exact on every chain.
- US dollar values are fields ending in _usd, numbers rounded to two decimals. null means no price is available. It never means zero. See Prices.
- Times are UTC to the second, as 2026-11-13T17:02:11Z.
- Hashes are lower-case hex. A request may use upper case.
- A field that does not apply is null. Fields are never left out, so every chain has the same shape.
Lists
The list routes (transactions of an address or a wallet key) take these parameters:
- limit
- Rows to return, 1 to 100. Default 25.
- offset
- Rows to skip, counted in the chosen order. Default 0. The largest offset is 1,000,000 on an address and 100,000 on a wallet key; above it the answer is 400.
- order
- desc (default) lists the newest first. asc lists the oldest first, so offsets do not shift as new transactions arrive.
- from_height
- Only rows in blocks at or above this height. offset then counts inside that range, and total is null.
A list answers with total (all rows that match), limit, offset, order and the rows.
To follow an address, remember the highest block_height you have seen. Later ask with order=asc and from_height a few blocks below it, and drop the rows you already have. The few blocks cover a chain reorganisation.
Addresses
An address is accepted in any form the chain has. On Bitcoin Cash that includes the cashaddr form with or without its prefix, and the legacy form. Answers use one form: the one the Blockchair-compatible routes serve (on Bitcoin Cash, the cashaddr without its prefix). An address that is valid and has no history answers 200 with zero amounts and tx_count 0. A malformed address answers 400.
Address summary
GET https://api.blockglance.com/v1/bitcoin/address/{address}
No parameters. formats holds the cashaddr and legacy forms on Bitcoin Cash and is null on other chains. balance_usd uses the latest price.
{ "data": { "address": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa", "formats": null, "type": "p2pkh", "balance": "10772315827", "balance_usd": 6961205.86, "received": "10772315827", "spent": "0", "tx_count": 67542, "first_seen": "2009-01-03T18:15:05Z", "last_received": "2026-11-17T01:16:51Z", "last_spent": null, "output_count": null, "unspent_count": null, "first_spent": null }, "meta": { "chain": "bitcoin", "tip_height": 976203, "tip_time": "2026-11-17T01:16:51Z" } }
Address transactions
GET https://api.blockglance.com/v1/bitcoin/address/{address}/txs?limit=3
- limit, offset, order, from_height
- As in Conventions.
change is the address's net change in that transaction. A row is a summary: ask the transaction route for the whole transaction.
{ "data": { "total": 67542, "limit": 3, "offset": 0, "order": "desc", "txs": [ { "txid": "42dbf6ec13bdf414b4486094e1632b77c3ff09b16380d977e61a63d64bf04ed5", "block_height": 976203, "time": "2026-11-17T01:16:51Z", "change": "1092" }, { "txid": "a6c96fe8cac5fa1cebad9c546f34552c3c9fd3c8d4130487da54779f5a195a68", "block_height": 976201, "time": "2026-11-17T01:04:50Z", "change": "546" }, { "txid": "fd562afaacad71332663249fd2a134c136cab84e018995adac68ffb072c6fbaa", "block_height": 976194, "time": "2026-11-16T23:11:28Z", "change": "12162" } ] }, "meta": { "chain": "bitcoin", "tip_height": 976203, "tip_time": "2026-11-17T01:16:51Z" } }
Address unspent outputs
GET https://api.blockglance.com/v1/bitcoin/address/{address}/utxos?limit=3
- limit
- 1 to 100. Default 25.
- offset
- Rows to skip. Default 0.
The newest output comes first. complete is false when the list may be short: the search for outputs stopped at its limit before the page was full. A list is never cut without that flag.
{ "data": { "total": null, "complete": true, "limit": 3, "offset": 0, "utxos": [ { "txid": "42dbf6ec13bdf414b4486094e1632b77c3ff09b16380d977e61a63d64bf04ed5", "index": 0, "value": "546", "block_height": 976203 }, { "txid": "42dbf6ec13bdf414b4486094e1632b77c3ff09b16380d977e61a63d64bf04ed5", "index": 1, "value": "546", "block_height": 976203 }, { "txid": "a6c96fe8cac5fa1cebad9c546f34552c3c9fd3c8d4130487da54779f5a195a68", "index": 0, "value": "546", "block_height": 976201 } ] }, "meta": { "chain": "bitcoin", "tip_height": 976203, "tip_time": "2026-11-17T01:16:51Z" } }
Transactions
One transaction
GET https://api.blockglance.com/v1/bitcoin/tx/{txid}
No parameters. The fee is normally input_total minus output_total. A coinbase transaction and a Dash special transaction have fee 0. On Zcash the totals count transparent rows only, and the fee is input_total minus output_total minus shielded_value_delta. On Zcash, shielded_value_delta is the net value entering the shielded pools, in zatoshis and negative when value leaves them; it is null on other chains. An output with no address has address null. A transaction that does not exist answers 404.
{ "data": { "txid": "f4184fc596403b9d638783cf57adfe4c75c605f6356fbc91338530e9831e9e16", "block_height": 170, "block_hash": "00000000d1145790a8694403d4063f323d499e655c83426834d4ce2f8dd4a2ee", "position": 1, "time": "2009-01-12T03:30:25Z", "confirmations": 976034, "coinbase": false, "size": 275, "weight": 1100, "version": 1, "lock_time": 0, "input_total": "5000000000", "output_total": "5000000000", "fee": "0", "price_usd": null, "input_total_usd": null, "output_total_usd": null, "fee_usd": null, "inputs": [ { "index": 0, "address": "12cbQLTFMXRnSzktFkuoG3eHoMeFtpTu3S", "type": "p2pkh", "value": "5000000000", "value_usd": null, "prev_txid": "0437cd7f8525ceed2324359c2d0ba26006d92d856a9c20fa0241106ee5a597c9", "prev_index": 0, "prev_height": 9, "prev_time": "2009-01-09T03:54:39Z" } ], "outputs": [ { "index": 0, "address": "1Q2TWHE3GMdB6BZKafqwxXtWAWgFt5Jvm3", "type": "p2pkh", "value": "1000000000", …
Several transactions
GET https://api.blockglance.com/v1/bitcoin/txs/{txid,txid,…}
Up to 10 transaction ids, separated by commas. The answer is found, the full transactions in request order, and missing, the ids that do not exist. It is 200 even when all are missing. A malformed id makes the whole request 400. An id that is repeated is answered once.
Wallet keys
A wallet key is an extended public key. The routes find the addresses that have been used, so one call covers a whole wallet. A key is accepted as xpub, ypub or zpub. The prefix does not choose the address type: every address type the chain has is scanned, so the same key gives the same answer under any prefix. On a chain without SegWit the only type scanned is p2pkh.
Each chain's own prefixes are accepted on that chain only: drkv on Dash, Ltub and Mtub on Litecoin, dgub on Dogecoin. On another chain they answer 400.
A wallet with more than 10,000 used addresses is too large for these routes: they answer 422 with the code wallet_too_large. When many wallets are scanned at once, a request may wait for its turn and then answer 503 with the code busy and a Retry-After of 5 seconds. Try again after that time. A valid key that has never been used answers 200 with used false and zero amounts.
The examples use the account 0 key of the BIP 84 test vector, a key that is printed in the BIP itself:
zpub6rFR7y4Q2AijBEqTUquhVz398htDFrtymD9xYYfG1m4wAcvPhXNfE3EfH1r1ADqtfSdVCToUG868RvUUkgDKf31mGDtKsAYz2oz2AGutZYs
Wallet summary
GET https://api.blockglance.com/v1/bitcoin/xpub/{key}
No parameters. script_types shows, for each address type, whether it was used, how many addresses were checked and how many were used. address_count is the number of used addresses over all types. tx_count counts each transaction once. balance_usd uses the latest price.
{ "data": { "used": true, "script_types": [ { "type": "p2pkh", "used": true, "scanned": 60, "addresses": 3 }, { "type": "p2sh-p2wpkh", "used": false, "scanned": 40, "addresses": 0 }, { "type": "p2wpkh", "used": true, "scanned": 160, "addresses": 43 } ], "address_count": 46, "balance": "0", "balance_usd": 0, "received": "5755998", "spent": "5755998", "tx_count": 291, "first_seen": "2019-12-13T21:41:44Z", "last_received": "2026-11-15T11:38:18Z", "last_spent": "2026-11-15T11:38:18Z" }, "meta": { "chain": "bitcoin", "tip_height": 976203, "tip_time": "2026-11-17T01:16:51Z" } }
Wallet addresses
GET https://api.blockglance.com/v1/bitcoin/xpub/{key}/addresses?limit=3
- limit
- 1 to 100. Default 25.
- offset
- 0 to 100,000. Default 0.
The used addresses, ordered by address type, then branch, then index. order and from_height are not accepted here and answer 400. total equals address_count.
{ "data": { "total": 46, "limit": 3, "offset": 0, "addresses": [ { "address": "1JaUQDVNRdhfNsVncGkXedaPSM5Gc54Hso", "script_type": "p2pkh", "path": "0/0", "type": "p2pkh", "balance": "0", "balance_usd": 0, "received": "3682", "spent": "3682", "tx_count": 2, "first_seen": "2022-01-19T03:55:57Z", "last_received": "2022-01-19T03:55:57Z", "last_spent": "2022-01-19T03:55:57Z", "output_count": null, "unspent_count": null, "first_spent": null }, { "address": "12Bx82ZNx4sZVRfHcBDyEYEevnfSyeYBfG", "script_type": "p2pkh", "path": "0/2", "type": "p2pkh", "balance": "0", "balance_usd": 0, "received": "1106", "spent": "1106", "tx_count": 2, "first_seen": "2026-01-10T22:06:34Z", "last_received": "2026-01-10T22:06:34Z", "last_spent": "2026-01-10T22:06:34Z", "output_count": null, "unspent_count": null, "first_spent": null …
Wallet transactions
GET https://api.blockglance.com/v1/bitcoin/xpub/{key}/txs?limit=3
- limit, offset, order, from_height
- As in Conventions.
One row per transaction. change is the wallet's net change. addresses lists each wallet address the transaction touches, with its own change.
{ "data": { "total": 291, "limit": 3, "offset": 0, "order": "desc", "txs": [ { "txid": "739eeab5dea518b3f0dd13ed54245bf763f2eafc1f2d961c90d63094b6bac99b", "block_height": 975954, "time": "2026-11-15T11:38:18Z", "change": "-1000", "addresses": [ { "address": "bc1qsc8xsgffl7f50e26u0huq7cwvhu5jk6zjq8c23", "change": "-1000" } ] }, { "txid": "b930df85ace8264ea30916b71df41b8af1a55088bc0fa2de6b22c55697bff0b8", "block_height": 975954, "time": "2026-11-15T11:38:18Z", "change": "1000", "addresses": [ { "address": "bc1qsc8xsgffl7f50e26u0huq7cwvhu5jk6zjq8c23", "change": "1000" } ] }, { "txid": "712b7bff42f0f2bccfd82b04a29be860125e3964f200c0cc0a0cd83c831ba202", "block_height": 974787, "time": "2026-11-06T09:08:36Z", "change": "-294", "addresses": [ { "address": "bc1qcr8te4kr609gcawutmrza0j4xv80jy8z306fyu", …
Wallet unspent outputs
GET https://api.blockglance.com/v1/bitcoin/xpub/{key}/utxos?limit=3
- limit
- 1 to 100. Default 25.
- offset
- Rows to skip. Default 0.
As for an address, with the address of each output added.
{ "data": { "total": null, "complete": true, "limit": 3, "offset": 0, "utxos": [] }, "meta": { "chain": "bitcoin", "tip_height": 976203, "tip_time": "2026-11-17T01:16:51Z" } }
Blocks
A block is named by its height or by its hash. A value of exactly 64 hex characters is a hash. Digits only, without leading zeros and at most 9 of them, is a height. Anything else answers 400. A block that does not exist answers 404.
One block
GET https://api.blockglance.com/v1/bitcoin/block/{height-or-hash}
No parameters. reward is the output total of the block's first transaction. next_hash is null at the tip.
{ "data": { "height": 170, "hash": "00000000d1145790a8694403d4063f323d499e655c83426834d4ce2f8dd4a2ee", "time": "2009-01-12T03:30:25Z", "confirmations": 976034, "tx_count": 2, "prev_hash": "000000002a22cfee1f2c846adbd12b3e183d4f97683f85dad08a79780a84bd55", "next_hash": "00000000c9ec538cab7f38ef9c67a95742f56ab07b0a37c5be6b02808dbfb4e0", "price_usd": null, "reward": "5000000000", "size": null, "version": null, "merkle_root": null, "bits": null, "nonce": null, "fee_total": null, "output_total": null }, "meta": { "chain": "bitcoin", "tip_height": 976203, "tip_time": "2026-11-17T01:16:51Z" } }
Transactions in a block
GET https://api.blockglance.com/v1/bitcoin/block/{height-or-hash}/txs?limit=3
- limit
- 1 to 100. Default 25.
- offset
- Rows to skip. Default 0.
In block order.
{ "data": { "total": 2, "limit": 3, "offset": 0, "txs": [ { "txid": "b1fea52486ce0c62bb442b530a3f0132b826c74e473d1f2c220bfa78111c5082", "position": 0, "output_total": "5000000000", "fee": "0" }, { "txid": "f4184fc596403b9d638783cf57adfe4c75c605f6356fbc91338530e9831e9e16", "position": 1, "output_total": "5000000000", "fee": "0" } ] }, "meta": { "chain": "bitcoin", "tip_height": 976203, "tip_time": "2026-11-17T01:16:51Z" } }
Latest blocks
GET https://api.blockglance.com/v1/bitcoin/blocks?limit=3
- limit
- 1 to 100. Default 10.
The newest block first. Each entry is a block summary without reward.
{ "data": { "blocks": [ { "height": 976203, "hash": "000000000000000000018a68e6c2f13b8415d9f0f2dee70347c5d756e8754566", "time": "2026-11-17T01:16:51Z", "confirmations": 1, "tx_count": 3182, "prev_hash": "00000000000000000000c753d02410e83fd95b73d42e8284207451614a6e8dad", "next_hash": null, "price_usd": 64644.13, "size": null, "version": null, "merkle_root": null, "bits": null, "nonce": null, "fee_total": null, "output_total": null }, { "height": 976202, "hash": "00000000000000000000c753d02410e83fd95b73d42e8284207451614a6e8dad", "time": "2026-11-17T01:08:30Z", "confirmations": 2, "tx_count": 2711, "prev_hash": "000000000000000000001942618d817531a038df9354ee11d8e2557173a38b58", "next_hash": "000000000000000000018a68e6c2f13b8415d9f0f2dee70347c5d756e8754566", "price_usd": 64603.49, "size": null, "version": null, "merkle_root": null, "bits": null, "nonce": null, "fee_total": null, "output_total": null }, { "height": 976201, …
Search
GET https://api.blockglance.com/v1/search?q={text}
- q
- A transaction id, a block hash or height, an address or a wallet key.
The text is checked on every chain it could belong to. Each match has the chain, a kind (tx, block, address or xpub) and the id in the chain's own form. No match is 200 with an empty matches. unavailable lists the chains that could not be asked in time, so an empty matches is a "not found" only for the chains not listed there. Text that fits no kind answers 400.
{ "data": { "matches": [ { "chain": "bitcoin", "kind": "block", "id": "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f" }, { "chain": "bitcoin-cash", "kind": "block", "id": "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f" } ], "unavailable": [] }, "meta": {} }
Status
GET https://api.blockglance.com/v1/status
No parameters. One entry per chain, with the height and time of its newest block and how many blocks it is behind the network. It answers 200 even when a chain is down: that chain's entry has healthy false and null in the other fields.
{ "data": { "chains": [ { "chain": "bitcoin", "healthy": true, "schema": 2, "tip_height": 976203, "tip_time": "2026-11-17T01:16:51Z", "lag_blocks": 0 }, { "chain": "bitcoin-cash", "healthy": true, "schema": 2, "tip_height": 977693, "tip_time": "2026-11-17T01:17:35Z", "lag_blocks": 0 }, { "chain": "dash", "healthy": true, "schema": 2, "tip_height": 2573526, "tip_time": "2026-11-17T01:12:23Z", "lag_blocks": 0 }, { "chain": "dogecoin", "healthy": true, "schema": 2, "tip_height": 6460732, "tip_time": "2026-11-17T01:16:48Z", "lag_blocks": 0 }, { "chain": "litecoin", "healthy": true, "schema": 2, …
Prices
US dollar values come from third-party price sources and are estimates. A value on a transaction (price_usd, value_usd, fee_usd and the totals) uses the hourly price at the time of the transaction's block. balance_usd on an address or a wallet uses the latest price. A block's price_usd is the price at its time.
A field is null when no price is available: before a market existed, or when no current price can be had. It never means zero.
Errors
An error answers with a status and a body {"error":{"code":"…","message":"…"}}. Branch on the code; the message is for people.
| Status | Code | When |
|---|---|---|
| 400 | bad_request | A malformed hash, address, key or parameter, a limit or offset over its largest value. |
| 401 | unauthorized | No API key, or one that is not valid. |
| 402 | insufficient_credits | Your credits do not cover the call, or your account is on hold. See Credits. |
| 404 | not_found | An unknown chain or route, or a well-formed transaction or block that does not exist. |
| 405 | bad_request | A method other than GET. |
| 422 | wallet_too_large | A wallet key with more than 10,000 used addresses. |
| 429 | too_many_requests | 8 calls of your account are running already. Retry-After is 1 second. |
| 500 | internal_error | A failure inside the service. |
| 503 | chain_unavailable | The chain's index is unhealthy or starting. Retry-After says when to try again. |
| 503 | busy | A wallet scan found no free place in time. Retry-After is 5 seconds. |
| 503 | unavailable | The accounts database does not answer. Retry-After is 30 seconds. |
| 504 | timeout | The request took too long. |
A valid address or wallet key that has never been used is not an error: it answers 200 with zeros.
Not served
- Unconfirmed transactions: only transactions in a block are served.
- Scripts, witness data and signatures.
- Sending a transaction to the network. The API only reads.
- Chains that are not in the list above.
Blockchair-compatible routes
Three more routes answer in the shape of Blockchair's API, so a program written for it can use Block Glance by changing its base URL. Their JSON follows the same structure, except for the fields listed under Not returned. Wallet keys are accepted as xpub, ypub and zpub only. The chain is the first part of the path, with the names from Chains.
The same API key works on these routes, with the same credits: their costs are in Credits. Their errors, the credit refusals included, come in the shape of Blockchair's API: the same status, and a body such as {"data":null,"context":{"code":402,"error":"…"}}. The wallet key dashboard does not take keys from accounts yet: it answers 503.
Address dashboard
GET https://api.blockglance.com/bitcoin/dashboards/address/{address}
- limit
- Transactions to return. 0 returns the summary only.
- offset
- Transactions to skip.
- transaction_details
- true returns each transaction as an object, false returns transaction hashes only.
Wallet key dashboard
GET https://api.blockglance.com/bitcoin/dashboards/xpub/{key}
- limit
- 0,{n} returns the summary and up to n addresses. A single number returns that many transactions.
- offset
- Transactions to skip.
- transaction_details
- As above.
The key is xpub, ypub or zpub as the chain's address types allow. A key that was never used answers with an empty data array.
Transaction dashboard
GET https://api.blockglance.com/bitcoin/dashboards/transactions/{txid,txid,…}
Up to 10 transaction ids, separated by commas. Ids that do not exist are left out of data.
The answer is {"data":{…},"context":{…}}, and data is keyed by the address, key or hash exactly as it was requested. Amounts are integers in the chain's smallest unit. Times are YYYY-MM-DD HH:MM:SS in UTC.
Not returned
- Script, witness and signature fields
- Output counts
- The spending_* fields of outputs
- Unconfirmed transactions
- received_usd and spent_usd of an address and of a wallet key's addresses: always 0
The api object in context has the same keys as in Blockchair's API, with Block Glance's own values: its documentation links to this section.