Get XPUB or descriptor account details.
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Returns balances and transactions of an XPUB or output descriptor for Bitcoin-type coins. Transactions are sorted by block height with newest blocks first. URL-encode descriptors before placing them after /xpub/.
Blockbook expects XPUBs at level 3 of the derivation path, for example m/purpose'/coin_type'/account'. It derives the remaining change/address_index path. The BIP scheme is inferred from the XPUB prefix; unknown prefixes default to BIP44.
Supported descriptors are pkh(xpub), sh(wpkh(xpub)), wpkh(xpub), and tr(xpub). Descriptors can include origin paths and change selectors such as <0;1> or {0,1}; when change is omitted, Blockbook defaults to <0;1>.
Note: usedTokens always reports the total number of used addresses for the XPUB, regardless of the tokens query filter.
Load estimate: High for broad accounts; grows with derived addresses, gap, used address count, pageSize, transaction history, token rows, and protocol enrichment.
Parameters
xpubstringrequiredpathExtended public key or output descriptor to query in Blockbook.
pageinteger<int32>>= 11queryPage number of the returned transaction list. Pagination starts from 1.
pageSizeinteger<int32>[1, 1000]1000queryMaximum number of transactions returned on one page.
frominteger<int64>>= 0queryStart block height filter for transactions, inclusive.
tointeger<int64>>= 0queryEnd block height filter for transactions, inclusive.
detailsstringbasictokenstokenBalancestxidstxslighttxstxidsqueryControls how much transaction or token detail is included in the response. Supported values: basic, tokens, tokenBalances, txids, txslight, txs.
tokensstringnonzerousedderivednonzeroqueryControls which XPUB-derived address rows are included.
filterstring | integerqueryFilter by input/output side or numeric id.
contractstringqueryContract address filter.
protocolsArray<string>queryProtocol enrichments.
secondarystringquerySecondary currency code.
gapinteger[0, 10000]queryXPUB/address derivation gap limit.
Response
HTTP 200 Dogecoin Blockbook response for getXpub.
Bad Request. The request is malformed or contains invalid parameters.
Unauthorized: API key is present but rejected by the NOWNodes gateway.
Method Not Allowed. Returned by the NOWNodes gateway for malformed or unsupported gateway-level requests.
Missing API key. The NOWNodes gateway returns plain text for this error.
Internal Server Error. The gateway or Dogecoin node failed while processing the request.