BlockBook API
v1.0.0https://avax-blockbook.nownodes.ioAuthentication
api-keyAuthapiKeyAPI Key: api-key in header
MAINNET / Blockbook
BlockBook
Get Blockbook backend info
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Returns general metadata and status about the Blockbook service and its connected backend node.
Response
Successfully retrieved Blockbook info
Internal error
Get block hash by block height
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Returns the block hash corresponding to the specified block height.
Parameters
heightinteger>= 0requiredpathThe height of the block (e.g., 800000)
Response
Successfully retrieved block hash
Block not found at given height
Internal server error
Get specific transaction details
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Returns full decoded transaction data for a given transaction ID.
Parameters
txidstringrequiredpathTransaction ID (txid) to look up
Response
Successful response with transaction details
Transaction not found
Internal server error
Get address information
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Returns detailed information about a Bitcoin address such as balance, total received and sent, unconfirmed transactions, list of txids, and more. Supports pagination and filtering by block height and details.
Parameters
addressstringrequiredpathBitcoin address to query.
pageinteger1queryPage number for pagination (default is 1).
pageSizeinteger1000queryNumber of items per page (default 1000).
fromintegerqueryStarting block height to filter transactions (optional).
tointegerqueryEnding block height to filter transactions (optional).
detailsstringbasictokenstokenBalancestxidstxsqueryLevel of transaction detail to return. Options:
- basic: Basic transaction info.
- tokens: Include token info.
- tokenBalances: Include token balances.
- txids: Return only transaction IDs.
- txs: Return full transaction details.
contractstringqueryFilter by contract address (optional).
secondarystringqueryInclude secondary currency balances (e.g., USD).
Response
Successful response with address details
Invalid address or bad request
Address not found
Internal server error
Get XPUB or descriptor details
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Retrieves detailed information about an XPUB or descriptor including confirmed balance, total received and sent amounts, unconfirmed balances, transaction counts, tokens used, and paginated transaction IDs.
Parameters
xpubOrDescriptorstringrequiredpathXPUB or descriptor to query.
pageinteger1queryPage number for pagination (default is 1).
pageSizeinteger1000queryNumber of items per page (default 1000).
fromintegerqueryStarting block height to filter transactions (optional).
tointegerqueryEnding block height to filter transactions (optional).
detailsstringbasictokenstokenBalancestxidstxsqueryLevel of transaction detail to return. Options:
- basic: Basic transaction info.
- tokens: Include token info.
- tokenBalances: Include token balances.
- txids: Return only transaction IDs.
- txs: Return full transaction details.
tokensstringnonzerousedderivedqueryFilter tokens by usage type:
- nonzero: Tokens with non-zero balances.
- used: Tokens that have been used.
- derived: Tokens derived from this XPUB.
secondarystringqueryInclude secondary currency balances (e.g., EUR).
Response
Successful response with XPUB details
Invalid XPUB or bad request
XPUB not found
Internal server error
Get UTXOs for address, XPUB or descriptor
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Retrieves the unspent transaction outputs (UTXOs) associated with a specific address, XPUB, or descriptor. Optionally filter only confirmed UTXOs by using the confirmed query parameter.
Parameters
addressOrXpubOrDescriptorstringrequiredpathAddress, XPUB or descriptor to query UTXOs for.
confirmedbooleanfalsequeryIf true, only return confirmed UTXOs. Defaults to false (returns both confirmed and unconfirmed).
Response
List of UTXOs for the given address, XPUB, or descriptor
Invalid address or parameter error
No UTXOs found for the specified input
Internal server error
Get block details by height or hash
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Returns detailed information about a block specified by its height or hash.
Parameters
blockHeightOrHashstringrequiredpathBlock height (integer) or block hash (string) to identify the block.
Response
Block details response
Invalid block height or hash format
Block not found
Internal server error
Broadcast raw transaction
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Sends a raw transaction to the blockchain network. The transaction must be provided as a hex-encoded string in the URL path.
Parameters
hexTxDatastringrequiredpathHex-encoded raw transaction data to be broadcasted.
Response
Transaction broadcast successful
Invalid transaction hex data
Internal server error
Get list of tickers updated since timestamp
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Returns an array of ticker objects representing cryptocurrency prices updated since the specified UNIX timestamp (in seconds).
Parameters
timestampintegerqueryUNIX timestamp (in seconds). Only tickers updated after this time are returned.
Response
List of tickers
Invalid timestamp parameter
Internal server error
Get balance history for an address or XPUB
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Returns the balance history for the specified address or XPUB between the from and to date parameters. The balances can be optionally converted to a specified fiat currency and grouped by time intervals.
Parameters
accountstringrequiredpathXPUB or address to query balance history for
fromstring<date-time>requiredqueryStart date (ISO 8601 format, e.g. 2023-01-01T00:00:00Z)
tostring<date-time>requiredqueryEnd date (ISO 8601 format, e.g. 2023-01-10T00:00:00Z)
fiatcurrencystringqueryFiat currency code to convert balances (e.g., USD, EUR). Optional.
groupByintegerqueryGroup results by time interval in seconds (e.g., 86400 for daily). Optional.
Response
Balance history retrieved successfully
Invalid or missing parameters
Internal server error