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 Block Info

AI-generated

Overview

This node operation retrieves detailed information about a specific Bitcoin block using the Mempool.space API. It accepts either the block's hash or its height as an identifier to fetch the block data. This is useful for blockchain analysts, developers, or enthusiasts who want to obtain comprehensive block details such as transactions, timestamps, and block metadata.

Use Case Examples

  1. Retrieve block information by providing the block hash to analyze its transactions and metadata.
  2. Fetch block details using the block height to monitor blockchain activity at a specific block number.

Properties

Name Meaning
Block Hash or Height The hash or height of the Bitcoin block to retrieve information for. This is a required input to specify which block's data to fetch.

Output

JSON

  • json - The JSON object containing detailed information about the specified Bitcoin block, including transactions, timestamps, and other block metadata.

Dependencies

  • Mempool.space API

Troubleshooting

  • Ensure the block identifier (hash or height) is correctly formatted and valid; otherwise, the API may return an error or no data.
  • If the node throws an 'Operation not supported' error, verify that the operation parameter is set to 'Get Block Info'.
  • Network or API connectivity issues may cause request failures; check internet connection and API availability.

Links

Discussion