> ## Documentation Index
> Fetch the complete documentation index at: https://developers.fireblocks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# UTXO Batched Transactions

> Pay many recipients from one Bitcoin or other UTXO transaction with multiple outputs. Covers the request, the 250-input limit and pacing batches at scale.

UTXO batched transactions pay several recipients from one Bitcoin or other UTXO-based transaction. Every entry in `destinations` becomes an output of the same transaction, so all recipients are paid together when it confirms, or none are. The transaction has one set of inputs and one fee, which costs less than sending one transaction per recipient.

New to UTXO batched transactions? See [UTXO-Based Batched Transactions](https://support.fireblocks.io/hc/en-us/articles/29028108114460) in the Help Center for a product introduction. For batching on other chains, see the [Batched Transactions Overview](https://developers.fireblocks.com/transactions/batched-transactions.md).

## Requirements

* **Confirmed balance.** The source vault account holds enough confirmed balance of the asset to cover the sum of all `destinations` amounts plus the network fee.
* **Policy.** Your Policy allows outgoing transfers from the source vault account to each destination type in the batch.

## Send a batched transaction

Submit a transfer with a `destinations` array to [Create a new transaction](https://developers.fireblocks.com/api-reference/transactions/create-a-new-transaction.md). One batch can mix destination types, such as vault accounts, exchange accounts, allowlisted wallets and one-time addresses. The example pays a vault account and two one-time addresses on the Bitcoin testnet (`BTC_TEST`).

> [tab] SDK
>
> ```typescript TypeScript theme={"system"}
> import { TransferPeerPathType } from "@fireblocks/ts-sdk";
>
> await fireblocks.transactions.createTransaction({
>   transactionRequest: {
>     assetId: "BTC_TEST",
>     source: { type: TransferPeerPathType.VaultAccount, id: "<SOURCE_VAULT_ACCOUNT_ID>" },
>     destinations: [
>       {
>         amount: "0.001",
>         destination: { type: TransferPeerPathType.VaultAccount, id: "<COLD_STORAGE_VAULT_ACCOUNT_ID>" },
>       },
>       {
>         amount: "0.0005",
>         destination: {
>           type: TransferPeerPathType.OneTimeAddress,
>           oneTimeAddress: { address: "<DESTINATION_ADDRESS_1>" },
>         },
>       },
>       {
>         amount: "0.0005",
>         destination: {
>           type: TransferPeerPathType.OneTimeAddress,
>           oneTimeAddress: { address: "<DESTINATION_ADDRESS_2>" },
>         },
>       },
>     ],
>     externalTxId: "<YOUR_UNIQUE_ID>", // Optional - Rejects duplicate batches
>   },
> });
> ```
>
> ```python Python theme={"system"}
> from fireblocks.models.transaction_request import TransactionRequest
> from fireblocks.models.transaction_request_destination import TransactionRequestDestination
> from fireblocks.models.source_transfer_peer_path import SourceTransferPeerPath
> from fireblocks.models.destination_transfer_peer_path import DestinationTransferPeerPath
> from fireblocks.models.transfer_peer_path_type import TransferPeerPathType
> from fireblocks.models.one_time_address import OneTimeAddress
>
> transaction_request = TransactionRequest(
>     asset_id="BTC_TEST",
>     source=SourceTransferPeerPath(
>         type=TransferPeerPathType.VAULT_ACCOUNT,
>         id="<SOURCE_VAULT_ACCOUNT_ID>",
>     ),
>     destinations=[
>         TransactionRequestDestination(
>             amount="0.001",
>             destination=DestinationTransferPeerPath(
>                 type=TransferPeerPathType.VAULT_ACCOUNT, id="<COLD_STORAGE_VAULT_ACCOUNT_ID>")),
>         TransactionRequestDestination(
>             amount="0.0005",
>             destination=DestinationTransferPeerPath(
>                 type=TransferPeerPathType.ONE_TIME_ADDRESS,
>                 one_time_address=OneTimeAddress(address="<DESTINATION_ADDRESS_1>"))),
>         TransactionRequestDestination(
>             amount="0.0005",
>             destination=DestinationTransferPeerPath(
>                 type=TransferPeerPathType.ONE_TIME_ADDRESS,
>                 one_time_address=OneTimeAddress(address="<DESTINATION_ADDRESS_2>"))),
>     ],
>     external_tx_id="<YOUR_UNIQUE_ID>",  # Optional - Rejects duplicate batches
> )
> fireblocks.transactions.create_transaction(transaction_request=transaction_request).result()
> ```
>
> ```java Java theme={"system"}
> import com.fireblocks.sdk.model.*;
>
> TransactionRequest transactionRequest = new TransactionRequest()
>     .assetId("BTC_TEST")
>     .source(new SourceTransferPeerPath()
>         .type(TransferPeerPathType.VAULT_ACCOUNT)
>         .id("<SOURCE_VAULT_ACCOUNT_ID>"))
>     .addDestinationsItem(new TransactionRequestDestination()
>         .amount("0.001")
>         .destination(new DestinationTransferPeerPath()
>             .type(TransferPeerPathType.VAULT_ACCOUNT)
>             .id("<COLD_STORAGE_VAULT_ACCOUNT_ID>")))
>     .addDestinationsItem(new TransactionRequestDestination()
>         .amount("0.0005")
>         .destination(new DestinationTransferPeerPath()
>             .type(TransferPeerPathType.ONE_TIME_ADDRESS)
>             .oneTimeAddress(new OneTimeAddress().address("<DESTINATION_ADDRESS_1>"))))
>     .addDestinationsItem(new TransactionRequestDestination()
>         .amount("0.0005")
>         .destination(new DestinationTransferPeerPath()
>             .type(TransferPeerPathType.ONE_TIME_ADDRESS)
>             .oneTimeAddress(new OneTimeAddress().address("<DESTINATION_ADDRESS_2>"))))
>     .externalTxId("<YOUR_UNIQUE_ID>"); // Optional - Rejects duplicate batches
>
> fireblocks.transactions().createTransaction(transactionRequest, null, null).get();
> ```

> [tab] API
>
> ```http theme={"system"}
> POST /v1/transactions
> ```
>
> ```jsonc theme={"system"}
> {
>   "assetId": "BTC_TEST",
>   "source": { "type": "VAULT_ACCOUNT", "id": "<SOURCE_VAULT_ACCOUNT_ID>" },
>   "destinations": [
>     { "amount": "0.001", "destination": { "type": "VAULT_ACCOUNT", "id": "<COLD_STORAGE_VAULT_ACCOUNT_ID>" } },
>     {
>       "amount": "0.0005",
>       "destination": { "type": "ONE_TIME_ADDRESS", "oneTimeAddress": { "address": "<DESTINATION_ADDRESS_1>" } }
>     },
>     {
>       "amount": "0.0005",
>       "destination": { "type": "ONE_TIME_ADDRESS", "oneTimeAddress": { "address": "<DESTINATION_ADDRESS_2>" } }
>     }
>   ],
>   "externalTxId": "<YOUR_UNIQUE_ID>" // Optional - Rejects duplicate batches
> }
> ```
>
> Sign the request with a JWT as described in [Signing a request](https://developers.fireblocks.com/reference/signing-a-request-jwt-structure.md).

> [tab] CLI
>
> ```bash theme={"system"}
> fireblocks transactions create-transaction \
>   --data '{"assetId":"BTC_TEST","source":{"type":"VAULT_ACCOUNT","id":"<SOURCE_VAULT_ACCOUNT_ID>"},"destinations":[{"amount":"0.001","destination":{"type":"VAULT_ACCOUNT","id":"<COLD_STORAGE_VAULT_ACCOUNT_ID>"}},{"amount":"0.0005","destination":{"type":"ONE_TIME_ADDRESS","oneTimeAddress":{"address":"<DESTINATION_ADDRESS_1>"}}},{"amount":"0.0005","destination":{"type":"ONE_TIME_ADDRESS","oneTimeAddress":{"address":"<DESTINATION_ADDRESS_2>"}}}],"externalTxId":"<YOUR_UNIQUE_ID>"}' \
>   --dry-run
> ```

**Field notes:**

* `assetId`: Bitcoin or another UTXO-based asset. Every recipient receives this asset.
* `destinations`: one output per entry, each with its own `amount` and `destination`. Leave out the top-level `amount` and `destination`.
* `externalTxId`: a unique ID of your own. Fireblocks rejects any later transaction with the same value, so a retried batch cannot pay recipients twice.
* `utxoSelectionParams` (optional): choose which UTXOs fund the batch. See [Select UTXOs for a transaction](https://developers.fireblocks.com/reference/select-utxos-for-a-transaction.md).

## Size a batch

There is no fixed cap on the number of recipients. Two things limit a batch in practice:

* **250 inputs.** Fireblocks selects up to 250 UTXOs to fund one transaction, which caps the total amount a single batch can send. Before you build a large batch, call [Get max spendable amount in a transaction](https://developers.fireblocks.com/api-reference/vaults/get-max-spendable-amount-in-a-transaction.md) for the source vault account and asset. If the batch total is higher, split it, or [consolidate UTXOs](https://developers.fireblocks.com/reference/consolidate-utxos.md) first.
* **Transaction size.** Each output adds bytes, and the fee grows with the transaction size. Very large batches cost more in absolute terms, though still less per recipient than separate transactions.

## Pace batches at scale

A UTXO wallet can reuse unconfirmed change from its previous transaction. Bitcoin nodes reject a transaction whose unconfirmed ancestor chain is longer than 25 transactions, so submitting batches back to back can stall the wallet. Space your batches, for example one every 30 seconds, so earlier batches confirm before the chain grows. For withdrawal-specific guidance, see [Manage withdrawals at scale](https://developers.fireblocks.com/docs/manage-withdrawals-at-scale.md#utxos).

## Confirm the result

[Get the transaction](https://developers.fireblocks.com/api-reference/transactions/get-a-specific-transaction-by-fireblocks-transaction-id.md) or read the [transaction webhook](https://developers.fireblocks.com/reference/monitoring-transaction-status.md). The response carries one entry per recipient in `destinations`, `destination.type` is `MULTI_DESTINATION`, and `destinationAddress` is empty.

To speed up a batch that is stuck with a low fee, see [Boost transactions](https://developers.fireblocks.com/docs/boost-transactions.md).

## Troubleshooting

| Symptom | Cause | Fix |
| - | - | - |
| The batch fails for insufficient funds while the balance looks high enough | The amount needs more than 250 UTXOs, or part of the balance is unconfirmed | Check [max spendable amount](https://developers.fireblocks.com/api-reference/vaults/get-max-spendable-amount-in-a-transaction.md), then split the batch or [consolidate UTXOs](https://developers.fireblocks.com/reference/consolidate-utxos.md). |
| New batches are rejected or stay pending | The chain of unconfirmed transactions reached 25 | Wait for earlier batches to confirm, space new batches further apart, or [boost](https://developers.fireblocks.com/docs/boost-transactions.md) a stuck one. |

## What to read next

* [Batched Transactions Overview](https://developers.fireblocks.com/transactions/batched-transactions.md): compare batching across chains.
* [Select UTXOs for a transaction](https://developers.fireblocks.com/reference/select-utxos-for-a-transaction.md): control which inputs fund a batch.
* [Manage withdrawals at scale](https://developers.fireblocks.com/docs/manage-withdrawals-at-scale.md#transaction-batching): when to batch customer withdrawals.
