Parameters
- addressstringREQUIRED
An extended public key, or an output descriptor wrapping one. Supported descriptor form:
pkh(...). Must be an account-level key, not a master key. Example:pkh(xpub...).
Descriptors containing a / are not supported and return an error.
This includes:
- key origin prefixes:
pkh([73c5da0a/44'/133'/0']xpub...) - multipath selectors:
pkh(xpub.../<0;1>/*) - explicit branch paths:
pkh(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 - pkh(xpub...) - which is fully supported. The branch selector is unnecessary: Blockbook automatically scans both the receive (0) and change (1) branches for the account.
- objectobject
The options object with the following fields:
- pageinteger
The page you would like to retrieve.
- sizeinteger
The number of transactions you would like on each page
- fromHeightinteger
Filter of the returned transactions from block height
- toHeightinteger
Filter of the returned transactions to block height
- detailsstring
Must be one of: basic|txids|txs
- secondarystring
The secondary (fiat) currency in which the token and total balances are returned in addition to crypto values. Must be one of: usd|eur
- 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"id": 1,3"result": {4"page": 1,5"totalPages": 1,6"itemsOnPage": 1000,7"address": "xpub...",8"balance": "0",9"totalReceived": "0",10"totalSent": "0",11"unconfirmedBalance": "0",12"unconfirmedTxs": 0,13"txs": 0,14"tokens": []15},16"jsonrpc": "2.0"17}
1{2"id": 1,3"result": {4"page": 1,5"totalPages": 1,6"itemsOnPage": 1000,7"address": "xpub...",8"balance": "0",9"totalReceived": "0",10"totalSent": "0",11"unconfirmedBalance": "0",12"unconfirmedTxs": 0,13"txs": 0,14"tokens": []15},16"jsonrpc": "2.0"17}