Blockstream API (Esplora) icon

Blockstream API (Esplora)

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

Get Transaction

AI-generated

Overview

This node interacts with the Blockstream API (Esplora) to retrieve detailed information about a specific Bitcoin transaction. It supports multiple Bitcoin networks including mainnet, testnet, Liquid, and Liquid testnet. The node is useful for blockchain analysts, developers, or anyone needing to fetch transaction details such as inputs, outputs, confirmations, and other metadata from the Bitcoin blockchain.

Use Case Examples

  1. A user wants to verify the details of a Bitcoin transaction on the mainnet by providing its transaction ID (txid).
  2. A developer integrates this node into an automation workflow to fetch transaction data for monitoring or auditing purposes.

Properties

Name Meaning
Network Specifies which Bitcoin network to query (mainnet, testnet, Liquid, or Liquid testnet).
Transaction ID The unique identifier (txid) of the Bitcoin transaction to retrieve. This is required to fetch the transaction details.

Output

JSON

  • json - Contains the detailed transaction information returned by the Blockstream API for the specified transaction ID.

Dependencies

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

Troubleshooting

  • Common issues include providing an invalid or non-existent transaction ID, which will result in an error from the API.
  • Network selection must match the transaction's actual network; otherwise, the transaction will not be found.
  • API request failures due to network issues or rate limiting can cause errors; ensure stable internet connection and consider retry logic.
  • Error messages from the node will include the API error message; verify the transaction ID and network parameters to resolve.

Links

Discussion