Crypto APIs icon

Crypto APIs

Interact with Crypto APIs REST API

Actions113

Overview

This node provides a utility operation to decode a raw transaction hex string for UTXO-based blockchains. It takes a raw transaction in hexadecimal format and returns its decoded details, which can be useful for analyzing or verifying transaction contents without broadcasting them.

Common scenarios include:

  • Inspecting the structure and details of a raw transaction before sending it.
  • Debugging or auditing transactions by extracting inputs, outputs, and metadata.
  • Integrating with blockchain explorers or wallet software that require transaction decoding.

For example, a user might input a raw Bitcoin transaction hex to see all inputs and outputs decoded into readable JSON format.

Properties

Name Meaning
blockchain The blockchain network to use (e.g., Bitcoin, Litecoin).
network The specific network type within the blockchain (e.g., mainnet, testnet).
context Optional context string to specify additional request context or environment.
JSON Body A collection of fields representing the JSON body parameters:
- rawTransactionHex The raw transaction data in hexadecimal string format to decode.

Output

The output is a JSON array where each item contains the decoded transaction details returned from the API. This typically includes structured information about the transaction inputs, outputs, amounts, addresses, and other metadata relevant to the UTXO model.

No binary data output is produced by this node.

Dependencies

  • Requires an active connection to the Crypto APIs REST API service.
  • Needs an API key credential configured in n8n to authenticate requests.
  • The node reads a local OpenAPI specification file (2024-12-12-final.json) bundled with the node for operation metadata but does not depend on it at runtime beyond static analysis.

Troubleshooting

  • Operation not found error: If the specified operation cannot be found, ensure the "Decode Raw Transaction Hex UTXO" operation is selected correctly under the Utilities resource.
  • Invalid rawTransactionHex: Providing malformed or incomplete hex strings will cause the API to return errors. Verify the hex string is complete and valid.
  • Authentication errors: Make sure the API key credential is properly set up and has permissions for the required blockchain network.
  • Network or blockchain mismatch: Ensure the blockchain and network properties match the transaction's actual network; otherwise, decoding may fail or return incorrect data.

Links and References

Discussion