UTXO Indexer
Tatum's UTXO Indexer lets you query Bitcoin, Litecoin, Dogecoin and Cardano by address: unspent outputs (UTXOs), balances and transaction history.
Tatum's UTXO Indexer indexes Bitcoin, Litecoin, Dogecoin and Cardano by address, so one Data API call returns an address's unspent outputs (UTXOs), balance or transaction history. Mempool and single-UTXO lookups also cover Bitcoin Cash. Standard UTXO nodes can't list an address's unspent outputs or balance: Tatum's nodes don't support wallet methods such as listunspent or getbalance.
Supported chains
You select the network with the chain parameter. Mainnet values and what each chain supports:
| Capability | Bitcoin | Litecoin | Dogecoin | Bitcoin Cash | Cardano |
|---|---|---|---|---|---|
Mainnet chain value | bitcoin-mainnet | litecoin-mainnet | doge-mainnet | bch-mainnet | cardano-mainnet |
| UTXOs by address (single and batch) | ✓ | ✓ | ✓ | ✓ | |
| UTXO by transaction hash and index | ✓ | ✓ | ✓ | ✓ | |
| Balance (single and batch) | ✓ | ✓ | ✓ | ✓ | |
| Balance at a past block or time | ✓ | ||||
| Transaction history (single and batch) | ✓ | ✓ | ✓ | ✓ | |
| Mempool transactions | ✓ | ✓ | ✓ | ✓ | |
| Mining rewards | ✓ | ✓ | ✓ | ||
| Blocks and transactions | ✓ | ✓ | ✓ | ✓ | ✓ |
- Testnets:
bitcoin-testnet,litecoin-testnet,bch-testnetandcardano-preprod. Balance at a past block or time is mainnet only. - Dogecoin testnet depends on the endpoint:
doge-testnetfor UTXOs by address, balances, blocks and transactions;dogecoin-testnetfor UTXO info, mempool, transaction history and mining rewards. - Cardano transaction history supports only
address,pageSizeandoffset: no block range and no incoming/outgoing filter. - Zcash (
zcash-mainnet) is also available for blocks and transactions.
What do you want to do?
| I want to… | Endpoint | Reference |
|---|---|---|
List an address's unspent outputs to fund a transaction, up to the amount you send (totalValue) | GET /v4/data/utxos | Get unspent UTXOs for an address |
List unspent outputs for up to 50 addresses, with a flag that says whether each address covers totalValue | POST /v4/data/utxos/batch | Get unspent UTXOs for a batch of addresses |
| Check whether a specific output (transaction hash and output index) is still unspent | GET /v4/data/blockchains/utxo/info | Get UTXO info by tx hash and index |
| Get the balance of an address | GET /v4/data/blockchains/balance | Get native balance |
| Get the balances of up to 30 addresses in one call | GET /v4/data/blockchains/balance/batch | Get native balance (batch) |
| Get the Bitcoin balances of up to 10 addresses at a past block or time | GET /v4/data/wallet/balance/time | Get balances by time of addresses |
| Page through the transaction history of an address (up to 50 per page, optional block range and incoming/outgoing filter) | GET /v4/data/blockchains/transaction/history/utxos | Get transaction history (UTXO) |
| Get the transaction history of up to 30 addresses in one call | POST /v4/data/blockchains/transaction/history/utxos/batch | Get transaction history (UTXO) batch |
| List the hashes of pending transactions in a chain's mempool | GET /v4/data/blockchains/mempool | Get mempool transaction hashes |
| Get a transaction by hash | GET /v4/data/blockchains/transaction | Get transaction by hash |
| Get a block by hash or height | GET /v4/data/blockchains/block | Get block by hash or height |
| Get the hash of the block at a given height | GET /v4/data/blockchains/block/hash | Get block hash by block number |
| Get the current block height, for example to count confirmations | GET /v4/data/blockchains/block/current | Get current block height |
| List the coinbase rewards a miner address received (up to 500 per page) | GET /v4/data/mining/rewards | Get mining rewards |
| Get the total rewards a miner address has earned | GET /v4/data/mining/totalRewards | Get total mining rewards |
Before you build on the results:
- Pending funds. On Bitcoin, Litecoin and Dogecoin,
balanceis the confirmed balance. Pending mempool amounts are returned separately inincomingPendingandoutgoingPending. - Spent and unconfirmed outputs. UTXO info returns
403for an output that is already spent, andheight-1for an output that is still in the mempool. - Back-to-back sends. If you send from the same address less than 25 seconds apart, the indexer may not have ingested your previous transaction yet. Check each input with UTXO info first, or see Transaction already exists in mempool.
Example
Get the unspent outputs of a Bitcoin address that cover a payment of 0.0001 BTC. Replace {YOUR_API_KEY} with an API key from the Tatum Dashboard.
curl --request GET \
--url 'https://api.tatum.io/v4/data/utxos?chain=bitcoin-mainnet&address=bc1qmfp2r68cde646jv5ns7x2qvah8v5qtfw8gznj2&totalValue=0.0001' \
--header 'x-api-key: {YOUR_API_KEY}'[
{
"chain": "bitcoin-mainnet",
"address": "bc1qmfp2r68cde646jv5ns7x2qvah8v5qtfw8gznj2",
"txHash": "1b5b3e8a671434bf5d0d38e3e52dcafac484441a48bfae4a3f71e5b0b3093d8e",
"index": 0,
"value": 0.0001,
"valueAsString": "0.0001"
}
]Each item is one unspent output. Pass its txHash and index as an input when you build the transaction, for example with fromUTXO in Building a UTXO transaction. value is in BTC (LTC or DOGE on those chains), while UTXO info returns value in satoshis. The call costs 100 credits.
Indexer vs node RPC
Use the indexer whenever you start from an address: which outputs it can spend, what it holds, and what it sent and received. Use node RPC for raw node calls such as broadcasting a signed transaction or estimating fees; see the Bitcoin, Litecoin, Dogecoin, Bitcoin Cash and Cardano RPC pages. Tatum's UTXO nodes don't support wallet methods such as listunspent, getbalance or listtransactions; see Unsupported RPC methods on Tatum nodes. If you need address queries over JSON-RPC, Bitcoin mainnet has an Electrs endpoint and Bitcoin Cash a Rostrum endpoint, with Electrum protocol methods such as blockchain.address.listunspent.
Related guides
- Building a UTXO transaction: spend the UTXOs you listed with
fromUTXO, or let Tatum select them withfromAddress. - Bitcoin: getting started with the REST API: generate a wallet, check the balance, get UTXOs and send BTC.
- Bitcoin transaction fee estimation: choose a fee before you broadcast.
- Historical balances: get balances at a past block or time.
- UTXO: get confirmations from a transaction: count confirmations after you receive funds.
- Blockchains API migration (v3 to v4): move from per-chain v3 endpoints such as
/v3/bitcoin/address/balance/{address}to the unified v4 endpoints on this page. - UTXO vs account model: how unspent outputs work.
Don't have an API key?
Sign up to Dashboard and create your API keys today. Get higher limits and use debugging tools.
Updated 3 days ago