Blockstream API (Esplora) icon

Blockstream API (Esplora)

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

Get Address Info

AI-generated

Overview

This node interacts with the Blockstream API (Esplora) to retrieve detailed information about a specific Bitcoin address on various Bitcoin networks (mainnet, testnet, Liquid, Liquid testnet). It is useful for scenarios where users need to analyze Bitcoin addresses, such as checking balances, transaction history, or other metadata associated with the address. For example, a user can input a Bitcoin address to get its current state and related data from the blockchain.

Use Case Examples

  1. Checking the balance and transaction count of a Bitcoin address on the mainnet.
  2. Retrieving address information on the Bitcoin testnet for development or testing purposes.

Properties

Name Meaning
Network Specifies which Bitcoin network to query (mainnet, testnet, Liquid, or Liquid testnet). This determines the API endpoint used for the request.
Address The Bitcoin address to retrieve information about. This is a required string input.

Output

JSON

  • json - The JSON response from the Blockstream API containing detailed information about the specified Bitcoin address, such as balance, transaction count, and other blockchain-related data.

Dependencies

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

Troubleshooting

  • Common issues include providing an invalid or malformed Bitcoin address, which will cause the API request to fail or return an error.
  • Network selection must match the address type; querying mainnet for a testnet address or vice versa may result in no data or errors.
  • API rate limits or network connectivity issues can cause request failures; ensure stable internet connection and consider retry logic.
  • Error messages from the node typically indicate unsupported operations or invalid parameters; verify input values and operation selection.

Links

Discussion