Actions113
- blocks Actions
- Get Block Details By Block Hash UTXOs
- List Transactions by Block Hash EVM
- List Transactions by Block Hash UTXOs
- List Transactions By Block Hash XRP
- List Transactions By Block Height XRP
- List Transactions by Block Height EVM
- List Transactions by Block Height UTXOs
- Get Block Details By Block Height UTXOs
- Get Block Details By Block Height EVM
- Get Block Details By Block Height XRP
- Get Block Details By Block Hash EVM
- Get Block Details By Block Hash XRP
- Get Last Mined Block EVM
- Get Last Mined Block UTXOs
- Get Latest Mined Block XRP
- List Latest Mined Blocks UTXOs
- List Latest Mined Blocks EVM
- List Latest Mined Blocks XRP
- HD Wallets Actions
- Sync HD Wallet (xPub, yPub, zPub)
- Derive And Sync New Receiving Addresses UTXO
- Derive And Sync New Change Addresses UTXO
- Derive And Sync New Receiving Addresses EVM
- Derive And Sync New Receiving Addresses XRP
- List Synced Addresses UTXO
- List Synced Addresses EVM
- List Synced Addresses XRP
- List HD Wallet (xPub, yPub, zPub) Transactions UTXO
- List HD Wallet (xPub, yPub, zPub) Transactions EVM
- List HD Wallet (xPub, yPub, zPub) Transactions XRP
- List HD Wallet (xPub, yPub, zPub) UTXOs
- Prepare A UTXO-Based Transaction From HD Wallet (xPub, yPub, zPub)
- Prepare A Transaction From an Address in HD Wallet (xPub, yPub, zPub) EVM
- Get HD Wallet (xPub, yPub, zPub) Assets UTXO
- Get HD Wallet (xPub, yPub, zPub) Assets EVM
- Get HD Wallet (xPub, yPub, zPub) Assets XRP
- Get HD Wallet (xPub, yPub, zPub) Details UTXO
- Get HD Wallet (xPub, yPub, zPub) Details EVM
- Get HD Wallet (xPub, yPub, zPub) Details XRP
- List Synced HD Wallets (xPub, yPub, zPub)
- Activate HD Wallet (xPub, yPub, zPub)
- Delete Synced HD Wallet (xPub, yPub, zPub)
- address-latest Actions
- Utilities Actions
- simulate-transactions Actions
- addresses-latest Actions
- Get Address Balance Solana
- List Transactions By Address Solana
- Get Address Balance EVM
- Get Address Balance XRP
- Get Address Balance Kaspa
- List Confirmed Transactions By Address EVM
- List Transactions by Address XRP
- List Confirmed Transactions By Address UTXOs
- List Confirmed Transactions By Address Kaspa
- List Unconfirmed Transactions by Address UTXOs
- List Internal Transactions By Address EVM
- Get Next Available Nonce EVM
- List Confirmed Tokens Transfers By Address EVM
- addresses-historical Actions
- Get Address Balance UTXOs
- List Confirmed Transactions By Address EVM history
- List Confirmed Transactions By Address UTXO Historical
- List Unspent Transaction Outputs By Address UTXOs
- Sync Address
- List Synced Addresses
- Get Synced Address Tokens Transfer EVM
- Activate Synced Address
- Delete Synced Address
- List Synced Address Internal Transactions EVM
- List Tokens By Address Synced EVM
- blockchain-events Actions
- New Confirmed Coins Transactions
- New Unconfirmed Coins Transactions
- New Confirmed Tokens Transactions
- New Confirmed Coins Transactions And Each Confirmation
- New Confirmed Tokens Transactions And Each Confirmation
- Mined Transaction
- New Block
- List Blockchain Events Subscriptions
- Get Blockchain Event Subscription Details By Reference ID
- Delete Blockchain Event Subscription
- Activate Blockchain Event Subscription
- New Confirmed Internal Transactions
- New Confirmed Internal Transactions And Each Confirmation
- Crypto Transactions Actions
- Get Transaction Details By Transaction Hash Solana
- Get Transaction Details By Transaction Id Kaspa
- Get Transaction Details By Transaction Hash EVM
- Get Transaction Details By Transaction Hash UTXOs
- Get Transaction Details By Transaction Hash XRP
- List Internal Transaction Details by Transaction Hash EVM
- List Tokens Transfers By Transaction Hash EVM
- List Logs By Transaction Hash EVM
- Get Raw Transaction Data UTXOs
- contracts Actions
- blockchain-fees Actions
- broadcast-transactions Actions
- prepare-transactions Actions
- Market Data & Prices Actions
Overview
This node operation prepares a UTXO-based cryptocurrency transaction using an HD Wallet's extended public key (xPub, yPub, or zPub). It interacts with a blockchain network to construct the transaction details without requiring private keys, enabling secure transaction preparation for cryptocurrencies that use the UTXO model (e.g., Bitcoin and its derivatives).
Typical use cases include:
- Creating unsigned transactions for cold storage wallets.
- Preparing transactions for hardware wallets or external signing tools.
- Building transactions programmatically in workflows that manage multiple addresses derived from an HD wallet.
For example, you might use this node to prepare a Bitcoin transaction specifying recipients and fees, then export the prepared transaction for offline signing.
Properties
| Name | Meaning |
|---|---|
| blockchain | The blockchain network to interact with (e.g., bitcoin, litecoin). |
| network | The specific network type within the blockchain (e.g., mainnet, testnet). |
| extendedPublicKey | The HD wallet's extended public key (xPub, yPub, or zPub) used to derive addresses. |
| context | Optional context string for the request, if applicable. |
| JSON Body | A collection of optional parameters to customize the transaction preparation: |
| - additionalData | Extra data to include in the transaction, if supported. |
| - locktime | The locktime value for the transaction, controlling when it can be added to the blockchain. |
| - fee | Fee-related settings (structure not detailed here). |
| - prepareStrategy | Strategy for preparing the transaction; options are: none, minimize-dust, optimize-size. |
| - recipients | Collection defining recipients of the transaction (addresses and amounts). |
| - replaceable | Boolean indicating if the transaction is replaceable (RBF - Replace-By-Fee). |
Output
The node outputs a JSON array where each item represents the prepared transaction data returned by the API. This typically includes:
- Transaction hex or raw data ready for signing.
- Details about inputs, outputs, fees, and other metadata relevant to the UTXO transaction.
- Any additional information provided by the API response related to the prepared transaction.
No binary data output is indicated by the source code.
Dependencies
- Requires an active connection to the Crypto APIs REST API service.
- Needs an 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 for operation definitions. - No other external dependencies are required.
Troubleshooting
- Operation Not Found Error: If the specified operation cannot be found, ensure the "operation" parameter matches exactly the supported operation name.
- Missing Required Parameters: The node requires
blockchain,network, andextendedPublicKeyat minimum. Omitting these will cause errors. - API Request Failures: Network issues or invalid API credentials will result in request errors. Verify API key validity and network connectivity.
- Invalid Extended Public Key: Providing an incorrect or malformed xPub/yPub/zPub will cause the API to reject the request.
- Incorrect Recipients Format: Ensure recipients are correctly structured as per API expectations; otherwise, the transaction preparation may fail.
- Use the "Continue On Fail" option to handle errors gracefully in workflows.