Blockstream API (Esplora) icon

Blockstream API (Esplora)

Accède aux données Bitcoin via l'API Blockstream (Esplora) - Transactions, mempool, UTXO

Get Address UTXO

AI-generated

Overview

This node interacts with the Blockstream API (Esplora) to retrieve Unspent Transaction Outputs (UTXOs) for a specified Bitcoin address. It supports multiple Bitcoin networks including mainnet, testnet, Liquid, and Liquid testnet. This operation is useful for blockchain analysis, wallet balance calculations, and transaction building by fetching all UTXOs associated with an address.

Use Case Examples

  1. A user wants to check all unspent outputs for a Bitcoin address on the mainnet to prepare for creating a new transaction.
  2. A developer needs to monitor UTXOs on a testnet address for testing a Bitcoin wallet application.

Properties

Name Meaning
Network Specifies which Bitcoin network to query (mainnet, testnet, Liquid, or Liquid testnet).
Address The Bitcoin address for which to retrieve UTXOs. This is a required string input.

Output

JSON

  • json - The JSON response containing the list of UTXOs for the specified address. Each UTXO includes details such as transaction id, output index, value, and status.

Dependencies

  • Blockstream API (Esplora) endpoint accessed via HTTP requests using axios library.

Troubleshooting

  • Common issues include invalid or malformed Bitcoin addresses, which will cause the API to return errors.
  • Network selection must match the address type; querying mainnet for a testnet address will fail.
  • API rate limits or network connectivity issues may cause request failures.
  • Error messages from the API are propagated and can be seen in the node output if 'Continue On Fail' is enabled.

Links

Discussion