Crypto APIs icon

Crypto APIs

Interact with Crypto APIs REST API

Actions113

Overview

This node interacts with the Crypto APIs REST API to retrieve blockchain-related data. Specifically, for the "blocks" resource and the "List Latest Mined Blocks XRP" operation, it fetches the most recent mined blocks on the XRP ledger network.

Common scenarios where this node is beneficial include:

  • Monitoring the latest XRP blocks for analytics or alerting.
  • Integrating XRP blockchain data into dashboards or reporting tools.
  • Building applications that require up-to-date XRP block information.

For example, a user can configure the node to list the latest 10 mined XRP blocks on the mainnet network, then process or display this data downstream in their workflow.

Properties

Name Meaning
network The XRP network to query (e.g., mainnet, testnet).
context Optional context string to correlate responses with requests (useful for tracking).
count Optional number of latest mined blocks to retrieve.

Output

The node outputs an array of JSON objects representing the latest mined XRP blocks as returned by the Crypto APIs service. Each object contains detailed information about a single block, such as its hash, height, timestamp, transactions included, and other relevant metadata.

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 for authentication.
  • The node reads from a local OpenAPI specification file (2024-12-12-final.json) bundled with the node to dynamically resolve API paths and parameters.

Troubleshooting

  • Operation not found error: If the specified operation cannot be found in the API specification, ensure the node version and bundled spec file are up to date.
  • Missing required parameters: The network property is mandatory; omitting it will cause errors.
  • API request failures: Network issues or invalid API keys will result in errors. Verify API credentials and network connectivity.
  • Empty or unexpected response: Check if the count parameter is set correctly and supported by the API.

Links and References

Discussion