Crypto APIs icon

Crypto APIs

Interact with Crypto APIs REST API

Actions113

Overview

This node integrates with Crypto APIs to prepare a blockchain transaction specifically for EVM-compatible blockchains (Ethereum Virtual Machine). The "Prepare Transaction From Address EVM" operation allows users to construct a transaction payload from a given sender address, specifying details such as recipient, amount, fee, nonce, and transaction type. This is useful in scenarios where you want to programmatically create unsigned transactions that can later be signed and broadcasted on an EVM blockchain network.

Practical examples include:

  • Preparing a transaction to send tokens or Ether from one wallet to another.
  • Creating custom transactions with specific gas fee strategies (legacy, access list, or gas fee market).
  • Automating transaction creation workflows in DeFi applications or wallet services.

Properties

Name Meaning
blockchain The blockchain network to use (e.g., Ethereum, Binance Smart Chain).
network The specific network within the blockchain (e.g., mainnet, testnet).
type The type of transaction to prepare.
context Optional context string for additional metadata or tracking.
JSON Body: Collection of parameters defining the transaction details:
- additionalData Extra data to include in the transaction (optional).
- amount Amount of cryptocurrency to send (as a string).
- nonce Nonce value for the transaction (optional).
- recipient Address of the transaction recipient.
- sender Address of the transaction sender.
- fee Fee details as a collection (structure not fully detailed here).
- type Type of the transaction fee model; options are:
• legacy-transaction
• access-list-transaction
• gas-fee-market-transaction (default)

Output

The node outputs a JSON array where each item represents the prepared transaction data returned by the Crypto APIs service. This typically includes all necessary fields to sign and broadcast the transaction on the specified EVM blockchain network.

If binary data were involved (not indicated here), it would represent raw transaction bytes or signatures, but this node focuses on JSON transaction preparation.

Dependencies

  • Requires an API key credential for Crypto APIs REST API.
  • The node reads a local OpenAPI specification file (2024-12-12-final.json) bundled with the node to dynamically resolve API paths and operations.
  • No other external dependencies beyond standard Node.js modules and n8n workflow helpers.

Troubleshooting

  • Operation Not Found Error: If the specified operation cannot be found in the API spec, ensure the operation name matches exactly and the bundled OpenAPI spec file is present and up-to-date.
  • Missing Required Parameters: The node requires certain parameters like blockchain, network, and type. Omitting these will cause errors.
  • API Request Failures: Network issues or invalid API credentials will cause request failures. Verify your API key and network connectivity.
  • Invalid Parameter Values: Providing incorrect blockchain names, network identifiers, or malformed addresses may result in API errors. Double-check input values.
  • To handle errors gracefully, enable "Continue On Fail" in the node settings to capture error messages in output JSON.

Links and References

Discussion