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:

CapabilityBitcoinLitecoinDogecoinBitcoin CashCardano
Mainnet chain valuebitcoin-mainnetlitecoin-mainnetdoge-mainnetbch-mainnetcardano-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-testnet and cardano-preprod. Balance at a past block or time is mainnet only.
  • Dogecoin testnet depends on the endpoint: doge-testnet for UTXOs by address, balances, blocks and transactions; dogecoin-testnet for UTXO info, mempool, transaction history and mining rewards.
  • Cardano transaction history supports only address, pageSize and offset: 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…EndpointReference
List an address's unspent outputs to fund a transaction, up to the amount you send (totalValue)GET /v4/data/utxosGet unspent UTXOs for an address
List unspent outputs for up to 50 addresses, with a flag that says whether each address covers totalValuePOST /v4/data/utxos/batchGet unspent UTXOs for a batch of addresses
Check whether a specific output (transaction hash and output index) is still unspentGET /v4/data/blockchains/utxo/infoGet UTXO info by tx hash and index
Get the balance of an addressGET /v4/data/blockchains/balanceGet native balance
Get the balances of up to 30 addresses in one callGET /v4/data/blockchains/balance/batchGet native balance (batch)
Get the Bitcoin balances of up to 10 addresses at a past block or timeGET /v4/data/wallet/balance/timeGet 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/utxosGet transaction history (UTXO)
Get the transaction history of up to 30 addresses in one callPOST /v4/data/blockchains/transaction/history/utxos/batchGet transaction history (UTXO) batch
List the hashes of pending transactions in a chain's mempoolGET /v4/data/blockchains/mempoolGet mempool transaction hashes
Get a transaction by hashGET /v4/data/blockchains/transactionGet transaction by hash
Get a block by hash or heightGET /v4/data/blockchains/blockGet block by hash or height
Get the hash of the block at a given heightGET /v4/data/blockchains/block/hashGet block hash by block number
Get the current block height, for example to count confirmationsGET /v4/data/blockchains/block/currentGet current block height
List the coinbase rewards a miner address received (up to 500 per page)GET /v4/data/mining/rewardsGet mining rewards
Get the total rewards a miner address has earnedGET /v4/data/mining/totalRewardsGet total mining rewards

Before you build on the results:

  • Pending funds. On Bitcoin, Litecoin and Dogecoin, balance is the confirmed balance. Pending mempool amounts are returned separately in incomingPending and outgoingPending.
  • Spent and unconfirmed outputs. UTXO info returns 403 for an output that is already spent, and height -1 for 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

Don't have an API key?

Sign up to Dashboard and create your API keys today. Get higher limits and use debugging tools.

Get API keyFor free. No commitment.

Did this page help you?