Blockstream API (Esplora) icon

Blockstream API (Esplora)

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

Get Transaction Status

AI-generated

Overview

This node interacts with the Blockstream API (Esplora) to retrieve the confirmation status of a Bitcoin transaction. It is useful for monitoring whether a specific transaction has been confirmed on the blockchain, which is critical for applications that depend on transaction finality, such as payment processing or blockchain analytics.

Use Case Examples

  1. A user wants to check if a Bitcoin transaction has been confirmed on the mainnet by providing the transaction ID.
  2. A developer integrates this node to automatically verify the status of transactions on Bitcoin testnet before proceeding with further processing.

Properties

Name Meaning
Network Specifies which Bitcoin or Liquid network to query (e.g., mainnet, testnet, liquid, liquidtestnet).
Transaction ID The unique identifier of the Bitcoin transaction whose status is to be retrieved.

Output

JSON

  • json
    • confirmed - Boolean indicating if the transaction is confirmed.
    • block_height - The height of the block that includes the transaction, if confirmed.
    • block_hash - The hash of the block that includes the transaction, if confirmed.
    • block_time - Timestamp of when the block containing the transaction was mined.

Dependencies

  • Blockstream API endpoint accessed via HTTP GET requests

Troubleshooting

  • Common issues include providing an invalid or non-existent transaction ID, which results in API errors or empty responses.
  • Network selection must match the transaction's actual network; otherwise, the transaction will not be found.
  • Errors from the Blockstream API such as rate limiting or downtime can cause failures; retry or check API status if errors occur.

Links

Discussion