Mempool.space API icon

Mempool.space API

Accède aux données Bitcoin via l'API Mempool.space - Mempool live, fees recommandées, détails blocs & transactions

Get Transaction Status

AI-generated

Overview

This node interacts with the Mempool.space API to retrieve the confirmation status of a specific Bitcoin transaction. It is useful for users who want to check whether a Bitcoin transaction has been confirmed on the blockchain or is still pending. For example, a user can input a transaction ID to get real-time status updates about that transaction's confirmation state.

Use Case Examples

  1. Checking the confirmation status of a Bitcoin transaction by providing its transaction ID.
  2. Monitoring transaction confirmations in a Bitcoin payment processing workflow.

Properties

Name Meaning
Transaction ID The unique identifier of the Bitcoin transaction to retrieve the status for. This is a required string input.

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 - The timestamp of when the block containing the transaction was mined.

Dependencies

  • Mempool.space public API

Troubleshooting

  • Ensure the transaction ID (txid) is correctly formatted and valid; invalid IDs will cause errors.
  • Network issues or API downtime may prevent successful data retrieval; check internet connection and API status.
  • If the transaction is very recent, it might not yet be confirmed, so the status may show as unconfirmed.

Links

Discussion