Crypto APIs icon

Crypto APIs

Interact with Crypto APIs REST API

Actions113

Overview

This node operation fetches detailed information about a specific blockchain block by its hash on an EVM-compatible blockchain network. It is useful for users who want to retrieve comprehensive data about a particular block, such as its transactions, timestamp, miner, and other metadata, by providing the unique block hash.

Practical examples include:

  • Monitoring a specific block for auditing or tracking purposes.
  • Fetching block details to analyze transaction confirmations.
  • Integrating block data into dashboards or reporting tools.

Properties

Name Meaning
blockchain The blockchain network to query (e.g., Ethereum, Binance Smart Chain).
network The specific network within the blockchain (e.g., mainnet, testnet).
blockHash The unique hash identifier of the block whose details are to be retrieved.
context Optional additional context string that can be used to correlate requests or responses.

Output

The output is a JSON array where each item contains detailed information about the requested block. This typically includes fields such as block number, timestamp, list of transactions, miner address, gas used, and other relevant block metadata.

If the node supports binary data output, it would represent any associated binary content related to the block, but this operation primarily returns structured JSON data.

Dependencies

  • Requires an API key credential for accessing the Crypto APIs REST API.
  • The node depends on the Crypto APIs service to fetch blockchain data.
  • No additional environment variables are explicitly required beyond the API authentication setup in n8n.

Troubleshooting

  • Common issues:

    • Invalid or missing block hash: Ensure the block hash provided is correct and corresponds to the specified blockchain and network.
    • Network or blockchain mismatch: Verify that the blockchain and network parameters match the block hash's origin.
    • API authentication errors: Confirm that the API key credential is correctly configured and has sufficient permissions.
  • Error messages:

    • Operation <operationName> not found: Indicates an internal misconfiguration or unsupported operation; ensure the node version matches the API specification.
    • API request failures: Usually due to invalid parameters or connectivity issues; check parameter values and network access.

Links and References

Discussion