Fireblocks selects inputs for unspent transaction output (UTXO) transactions automatically by default, using Adaptive Selection on supported blockchains. You can also manage input selection manually to handle high-volume workspaces.
UTXO blockchains support using multiple source addresses in a single transaction. In Fireblocks, multi-input transactions must originate from a single vault account.
By default, when you create transactions in the Fireblocks Console or API, Fireblocks selects inputs from the vault account using the default selection strategy for the asset. For Bitcoin (BTC), Litecoin (LTC), Dogecoin (DOGE), Bitcoin Cash (BCH), and Bitcoin Signet Testnet (BTC_SIGNET_TEST), this is Adaptive Selection, which compares several ways to cover the requested amount and fees, then chooses the one that suits the transaction and the wallet. For other UTXO blockchains, the default is Ascending selection, which combines inputs from the smallest to the largest until the inputs cover the requested amount and all fees. See Understanding UTXO selection at Fireblocks.
In the Fireblocks Console, the platform automatically selects address inputs that transfer the total amount requested. In the Fireblocks API, you can select address inputs for new transactions either automatically or manually.
When creating a transaction in the Fireblocks Console, you can select Max to send the most the selected asset can spend in a single transaction. Max is capped by the input limit for the blockchain, so it can be lower than your full balance.
Input management
Fireblocks limits the number of inputs per UTXO transaction based on the blockchain.
| Blockchain | Maximum inputs per transaction |
|---|---|
| Bitcoin, Bitcoin Cash, Bitcoin SV, Dash, Dogecoin, Litecoin, Bitcoin Signet Testnet (BTC_SIGNET_TEST) | 250 |
| ZCash | 50 |
Cardano works differently. Instead of a fixed number of inputs, Cardano limits the size of a transaction to 16KB. Every input adds data to the transaction, and every different address you spend from adds a signature, which takes even more space. In the worst case, when every input has a different address, a transaction fits about 100 inputs. In the best case, when all inputs come from the same address and the transaction has a single output, it fits about 350. The maximum spendable amount takes this limit into account.
Each blockchain’s testnet has the same input limits as its mainnet. The exception is testnet workspaces using the Fireblocks Communal API Co-signer, where the platform limits all UTXO transactions to 50 inputs.
Transactions signed with the Fireblocks mobile app support up to 30 inputs. To use the full limit, have an API Co-signer sign the transaction.
Transactions that require more inputs than the limit fail with the TOO_MANY_INPUTS substatus. On Cardano, a transaction that exceeds the size limit fails with the TX_SIZE_EXCEEDED_MAX substatus. Adaptive Selection always selects within the limit, so this happens when the best combination of your available UTXOs cannot cover the amount. To check what you can send, and to consolidate, see Consolidate UTXO inputs below.
In some edge cases, where you expect a high volume of incoming transactions to separate deposit addresses, you can use the Fireblocks API to manage outgoing UTXO transaction inputs manually.
Manually select inputs for each transaction
Use the Get UTXO unspent inputs information endpoint to retrieve a list of unspent inputs available for a UTXO transaction. Pass the specific inputs in the Create transactions endpoint by specifying the inputsSelection parameter inside the extraParameters object. Use the inputsToSpend field to spend only the selected inputs. The transaction fails if the specified inputs do not cover the requested amount. Manually selected inputs bypass the selection strategy.
Configure input selection
You can change the strategy for your workspace, or for a specific vault account and asset, in the Fireblocks Console or using the UTXO selection configuration API. A strategy configured for a vault account and asset takes precedence over the workspace configuration. For the endpoints and details, see Control UTXO selection.
| Selection strategy | When to use |
|---|---|
| Adaptive Selection (default) | Most workspaces. Adapts to the wallet and the transaction, and is designed to avoid common issues tied to spendable amounts and input limits. |
| Ascending (low to high) | Avoids leaving small amounts of assets spread across multiple deposit addresses. |
| Descending (high to low) | Useful if you frequently send large UTXO transactions and encounter transactions failing with the TOO_MANY_INPUTS substatus. Adaptive Selection is designed to handle this without a manual switch. |
Consolidate UTXO inputs
If the maximum spendable amount is less than the amount you want to transfer, consolidate your UTXOs into fewer, larger ones, or send the transfer as multiple transactions. The Get max spendable amount in a transaction endpoint shows what one transaction can spend, calculated before network fees.
To consolidate multiple UTXO inputs into a single output, create a transaction using the maximum spendable amount and transfer it to an asset wallet, either in the same vault account or in a different one. This is an on-chain transaction that requires network fees. Once merged, future transactions require fewer inputs.
Consolidate UTXO inputs in the Fireblocks Console
Before you start, set the strategy for the vault account and asset to Ascending (low to high), which spends the smallest UTXOs first. See Understanding UTXO selection at Fireblocks for more information. Then send the amount as a gross amount, so that the fee is deducted from it. See UTXO fees: Net vs. gross fee selection.
If a vault account has 600 Bitcoin deposit addresses, each holding 0.002 BTC, the largest available single transaction is 0.5 BTC even though the vault account holds 1.2 BTC total (due to the 250 inputs per transaction limit).
From the Fireblocks Console, you can create a 0.5 BTC transaction from this vault account to another vault account, with the fee deducted from the amount. The platform automatically selects 250 inputs and sends them to the permanent deposit address of the destination vault account, which receives them as a single UTXO worth 0.5 BTC, minus the fee. Create two more transactions of 0.5 BTC and 0.2 BTC to consolidate the rest of the 0.7 BTC.
Consolidate UTXO inputs in the Fireblocks API
To consolidate through the API, follow the steps in Consolidate UTXOs.
Related articles
- What is a UTXO?: an introduction to UTXOs, change, and why selection matters.
- Understanding UTXO selection at Fireblocks: the selection strategies and how to control them.
- Understanding Adaptive UTXO Selection: how Adaptive Selection chooses inputs, handles change and dust, and splits change.
- Select UTXOs for a transaction: labels, filters, and explicit UTXO selection in the API.