Actions9
Get Transaction Status
AI-generatedOverview
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
- A user wants to check if a Bitcoin transaction has been confirmed on the mainnet by providing the transaction ID.
- 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
jsonconfirmed- 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
- Blockstream Esplora API Documentation - Official documentation for the Blockstream API used to fetch Bitcoin transaction data.