Blockstream API (Esplora) icon

Blockstream API (Esplora)

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

Get Latest Blocks

AI-generated

Overview

This node interacts with the Blockstream API (Esplora) to retrieve the latest Bitcoin blocks from a specified network. It is useful for applications that need up-to-date blockchain data, such as blockchain explorers, monitoring tools, or analytics platforms. For example, a user can fetch the most recent blocks on the Bitcoin mainnet or testnet to display block details or track new block creation in real-time.

Use Case Examples

  1. Fetching the latest blocks on the Bitcoin mainnet to display recent blockchain activity on a dashboard.
  2. Retrieving the latest blocks from the Liquid network for analysis or monitoring purposes.

Properties

Name Meaning
Network Specifies which Bitcoin or Liquid network to query for the latest blocks. Options include Bitcoin Mainnet, Bitcoin Testnet, Liquid, and Liquid Testnet.

Output

JSON

  • json - Contains an array of the latest blocks retrieved from the selected network. Each block object includes details such as block hash, height, timestamp, and other block metadata.

Dependencies

  • Requires access to the Blockstream API endpoints for the selected network, no authentication needed.

Troubleshooting

  • Common issues include network connectivity problems or invalid network selection leading to failed API requests.
  • If the API endpoint is unreachable or returns an error, the node will throw an error unless 'Continue On Fail' is enabled, in which case it outputs the error message in the JSON output.

Links

Discussion