Crypto APIs icon

Crypto APIs

Interact with Crypto APIs REST API

Actions113

Overview

This node interacts with the Crypto APIs REST API to retrieve detailed information about a specific XRP blockchain block by its block hash. It is useful for users who want to fetch comprehensive data on a particular XRP ledger block, such as developers building blockchain explorers, analytics dashboards, or monitoring tools that require precise block details.

For example, you can use this node to:

  • Get metadata and transaction details of an XRP block identified by its unique hash.
  • Integrate XRP block data into your workflow for auditing or reporting purposes.
  • Monitor specific blocks on the XRP network for changes or confirmations.

Properties

Name Meaning
network The XRP network to query (e.g., mainnet, testnet).
blockHash The unique hash identifier of the XRP block whose details you want to retrieve.
context Optional context string to correlate responses with requests, useful for tracking.

Output

The node outputs a JSON array where each element contains detailed information about the XRP block corresponding to the provided block hash. The structure typically includes block metadata such as block height, timestamp, transactions included in the block, and other relevant blockchain data fields returned by the Crypto APIs service.

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the Crypto APIs REST API.
  • Needs an API key credential configured in n8n to authenticate requests.
  • The node reads from a local OpenAPI specification file (2024-12-12-final.json) bundled with the node to dynamically build request parameters and paths.

Troubleshooting

  • Operation not found error: If the node throws an error stating the operation is not found, ensure that the operation name "Get Block Details By Block Hash XRP" is correctly selected and that the bundled OpenAPI spec file is intact and accessible.
  • Invalid or missing parameters: Make sure the network and blockHash properties are provided and valid. Missing required parameters will cause the API call to fail.
  • API authentication errors: Verify that the API key credential is properly set up and has sufficient permissions to access XRP block data.
  • Network issues: Connectivity problems or incorrect network selection may result in failed requests or empty responses.

Links and References

Discussion