Docs Chain API Wallet API Balances and UTXOs of many addresses Balances and UTXOs of many addresses POST /esplora/api/wallet/addresses
Wallet API v1.0.0 · Wallet batch
Not part of Esplora. One entry per requested address, in request order (duplicates included). An entry has either the data or an error, never neither, so a missing result is never mistaken for a zero balance. The data is exactly what GET /address/{address} and GET /address/{address}/utxo return; tx_count tells used-but-empty addresses apart, for gap-limit discovery. The whole request answers from one view: send view back on the next call of the same sync, to the same host, and every batch describes the same moment. Limits: 1 to 500 addresses, at most 20 000 UTXOs in the reply, body up to 128 KB, 2 requests per second per IP (burst 30).
Example curl -X POST 'https://api.tensorcash.org/esplora/api/wallet/addresses' \
-H 'Content-Type: application/json' \
--data '{"addresses":["tc1qmvalge7mnhct9qj5uua8rn0dmjcyh6fmvrr46j"]}'Parameters No parameters.
Request body Responses Status Description Body 200One entry per requested address 400Bad body, more than 500 addresses, or more than 20 000 UTXOs in the reply 410view expired: restart the sync without view413Body over 128 KB 503Index syncing: n/m
Schemas WalletAddressesRequestField Type Required Description addressesstring[]Yes 1 to 500 addresses. viewstring— Optional: the view of an earlier response from the same host, to answer from that state.
WalletAddressesResponseField Type Required Description tipTip Yes viewstringYes Opaque id of the state this answer comes from. Send it back to pin later calls to it. addressesWalletAddressEntry | AddressError []Yes One entry per requested address, in request order.
TipField Type Required Description heightintegerYes hashstringYes
WalletAddressEntryChainStatsField Type Required Description funded_txo_countintegerYes Outputs received. funded_txo_sumintegerYes Satoshis received. spent_txo_countintegerYes Outputs spent. spent_txo_sumintegerYes Satoshis spent. tx_countintegerYes Transactions touching the address.
UtxoField Type Required Description txidstringYes voutintegerYes statusTxStatus Yes valueintegerYes Satoshis.
TxStatusField Type Required Description confirmedbooleanYes False while the transaction is in the mempool. block_heightinteger— Confirmed only. block_hashstring— Confirmed only. block_timeinteger— Block timestamp, Unix seconds. Confirmed only.
AddressErrorField Type Required Description addressstringYes errorstringYes Invalid address, or Too many unspent transaction outputs (>5000).
Source tensorcash-wallet-api (tensorcash-api) v1.0.0 (772799e) · bobponey · MIT