Path Parameters
- xpubstringREQUIRED
An extended public key, or an output descriptor wrapping one. Supported descriptor forms:
pkh(...),wpkh(...),sh(wpkh(...)), andtr(...). Must be an account-level key, not a master key. Example:tr(xpub...). URL-encode the descriptor when placing it in the REST path.
Descriptors containing a / are not supported and return an error.
This includes:
- key origin prefixes:
tr([73c5da0a/86'/0'/0']xpub...) - multipath selectors:
tr(xpub.../<0;1>/*) - explicit branch paths:
tr(xpub.../0/*)
Percent-encoding the slash does not help. Note the origin prefix cannot be shortened either, since it contains slashes of its own.
Use the bare form instead - tr(xpub...) - which is fully supported. The branch selector is unnecessary: Blockbook automatically scans both the receive (0) and change (1) branches for the account.
Query Parameters
- pageinteger
The page number to retrieve for paginated results.
- sizeinteger
The number of transactions per page.
- fromHeightinteger
Filter transactions from this block height (inclusive).
- detailsstring
Level of detail for returned transactions. Must be one of: basic, txids, or txs.
- filterstring
Filter transactions by token. Provide a token's contract address, or
0to return only transactions with no token transfers.
- contractstring
Limit returned token balances and transactions to the specified token contract address.
- protocolsstring
Comma-separated list of token protocols to include (for example
erc20).
- gapinteger
The gap limit used when deriving addresses from an extended public key (xpub). Defaults to 20.
Returns
- pageinteger
Current page number
- totalPagesinteger
Total number of pages
- itemsOnPageinteger
Number of items on each page
- addressstring
The queried xpub key
- balancestring
Current confirmed balance in satoshis
- totalReceivedstring
Total amount received in satoshis
- totalSentstring
Total amount sent in satoshis
- unconfirmedBalancestring
Unconfirmed balance in satoshis
- unconfirmedTxsinteger
Number of unconfirmed transactions
- txsinteger
Total number of transactions
- txidsarray
List of transaction IDs
- tokensarray
Derived addresses from the xpub
- typestring
Token type (e.g., XPUBAddress)
- namestring
Derived address
- pathstring
BIP32 derivation path
- transfersinteger
Number of transfers for this address
- decimalsinteger
Decimal places
- balancestring
Balance of this derived address
- totalReceivedstring
Total received by this derived address
- totalSentstring
Total sent from this derived address
1{2"page": 1,3"totalPages": 1,4"itemsOnPage": 1000,5"address": "xpub...",6"balance": "0",7"totalReceived": "0",8"totalSent": "0",9"unconfirmedBalance": "0",10"unconfirmedTxs": 0,11"txs": 0,12"tokens": []13}
1{2"page": 1,3"totalPages": 1,4"itemsOnPage": 1000,5"address": "xpub...",6"balance": "0",7"totalReceived": "0",8"totalSent": "0",9"unconfirmedBalance": "0",10"unconfirmedTxs": 0,11"txs": 0,12"tokens": []13}