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 data. Specifically, for the "blocks" resource and the "Get Latest Mined Block XRP" operation, it fetches the most recent mined block information on the XRP blockchain network.

This node is useful in scenarios where users want to monitor the latest blocks mined on the XRP ledger, such as for blockchain explorers, analytics dashboards, or triggering workflows based on new block events.

Example use cases:

  • Fetching the latest XRP block details to verify transaction confirmations.
  • Monitoring XRP blockchain activity in real-time.
  • Integrating XRP block data into reporting or alerting systems.

Properties

Name Meaning
network The specific XRP network to query. This could be mainnet, testnet, or other supported networks by the API.
context (Optional) Additional context string that can be used to correlate responses with requests, useful for tracking or debugging.

Output

The node outputs JSON data representing the latest mined XRP block details retrieved from the Crypto APIs service. The structure typically includes block metadata such as block height, hash, timestamp, transactions count, and other relevant blockchain-specific information.

If the API returns binary data (not typical for this operation), it would represent raw blockchain data or related files, but this operation primarily outputs structured JSON.

Dependencies

  • Requires an active connection to the Crypto APIs REST API.
  • Needs a valid API authentication token configured in n8n credentials to authorize requests.
  • The node reads 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 specified operation is not recognized, ensure the operation name matches exactly and the bundled OpenAPI spec file is present and up-to-date.
  • Network parameter missing or invalid: The network property is required; omitting it or providing an unsupported value will cause errors.
  • API authentication errors: Verify that the API key credential is correctly set up and has sufficient permissions.
  • Rate limiting or connectivity issues: Network problems or API rate limits may cause failures; check API usage quotas and network connectivity.
  • Continue On Fail behavior: If enabled, errors per item are returned as JSON objects with an error field instead of stopping execution.

Links and References

Discussion