> ## 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.

# EVM Batched Transactions

> Send an ERC-20 token to up to 400 recipients in one atomic EVM transaction. Gas is paid by an EVM Gasless relay and your vault account stays the sender.

EVM batched transactions send an ERC-20 token from one vault account to up to 400 recipients in a single atomic on-chain transaction. Either every transfer in the batch settles, or the whole transaction reverts and no funds move. A relay vault account pays the gas through [EVM Gasless](https://developers.fireblocks.com/docs/evm-gasless.md), and your source vault account stays the on-chain sender, so exchanges and analytics tools still attribute the funds to your address.

New to EVM batched transactions? See [EVM Batched Transactions](https://support.fireblocks.io/hc/en-us/articles/29031503127196) 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).

> [!NOTE]
>
> EVM batched transactions are in an early release. They support ERC-20 tokens only and require EVM Gasless. Native assets such as ETH, and batches where the source vault account pays its own gas, are not supported yet.

## Requirements

* **EVM Gasless is configured.** Your workspace has EVM Gasless (Universal Gasless) turned on, with a relay vault account funded with the chain's native asset. See [Configure EVM Gasless in the Console](https://developers.fireblocks.com/docs/evm-gasless.md#step-1-configure-evm-gasless-in-the-console).
* **Policy rules for gasless.** Your Policy allows outgoing transfers from the source vault account and includes the rules EVM Gasless adds. See [Add Policy rules](https://developers.fireblocks.com/docs/evm-gasless.md#step-2-add-policy-rules).
* **A supported chain.** Batching works on every [Universal Gasless integrated chain](https://support.fireblocks.io/hc/en-us/articles/21285504712988).
* **Token balance.** The source vault account holds enough of the ERC-20 token to cover the sum of all `destinations` amounts. It does not need the native asset.

## 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). The example sends USDC to two vault accounts and one external address. Replace the placeholders with your own values.

> [tab] SDK
>
> ```typescript TypeScript theme={"system"}
> import { TransferPeerPathType } from "@fireblocks/ts-sdk";
>
> await fireblocks.transactions.createTransaction({
>   transactionRequest: {
>     assetId: "<ERC20_ASSET_ID>", // For example, USDC
>     source: { type: TransferPeerPathType.VaultAccount, id: "<SOURCE_VAULT_ACCOUNT_ID>" },
>     destinations: [
>       {
>         amount: "10",
>         destination: { type: TransferPeerPathType.VaultAccount, id: "<VAULT_ACCOUNT_ID_1>" },
>       },
>       {
>         amount: "10",
>         destination: { type: TransferPeerPathType.VaultAccount, id: "<VAULT_ACCOUNT_ID_2>" },
>       },
>       {
>         amount: "25",
>         destination: {
>           type: TransferPeerPathType.OneTimeAddress,
>           oneTimeAddress: { address: "<DESTINATION_ADDRESS>" },
>         },
>       },
>     ],
>     useGasless: true, // Optional - Needed only when the workspace gasless mode is Off by default
>     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="<ERC20_ASSET_ID>",  # For example, USDC
>     source=SourceTransferPeerPath(
>         type=TransferPeerPathType.VAULT_ACCOUNT,
>         id="<SOURCE_VAULT_ACCOUNT_ID>",
>     ),
>     destinations=[
>         TransactionRequestDestination(
>             amount="10",
>             destination=DestinationTransferPeerPath(
>                 type=TransferPeerPathType.VAULT_ACCOUNT, id="<VAULT_ACCOUNT_ID_1>")),
>         TransactionRequestDestination(
>             amount="10",
>             destination=DestinationTransferPeerPath(
>                 type=TransferPeerPathType.VAULT_ACCOUNT, id="<VAULT_ACCOUNT_ID_2>")),
>         TransactionRequestDestination(
>             amount="25",
>             destination=DestinationTransferPeerPath(
>                 type=TransferPeerPathType.ONE_TIME_ADDRESS,
>                 one_time_address=OneTimeAddress(address="<DESTINATION_ADDRESS>"))),
>     ],
>     use_gasless=True,  # Optional - Needed only when the workspace gasless mode is Off by default
>     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("<ERC20_ASSET_ID>") // For example, USDC
>     .source(new SourceTransferPeerPath()
>         .type(TransferPeerPathType.VAULT_ACCOUNT)
>         .id("<SOURCE_VAULT_ACCOUNT_ID>"))
>     .addDestinationsItem(new TransactionRequestDestination()
>         .amount("10")
>         .destination(new DestinationTransferPeerPath()
>             .type(TransferPeerPathType.VAULT_ACCOUNT)
>             .id("<VAULT_ACCOUNT_ID_1>")))
>     .addDestinationsItem(new TransactionRequestDestination()
>         .amount("10")
>         .destination(new DestinationTransferPeerPath()
>             .type(TransferPeerPathType.VAULT_ACCOUNT)
>             .id("<VAULT_ACCOUNT_ID_2>")))
>     .addDestinationsItem(new TransactionRequestDestination()
>         .amount("25")
>         .destination(new DestinationTransferPeerPath()
>             .type(TransferPeerPathType.ONE_TIME_ADDRESS)
>             .oneTimeAddress(new OneTimeAddress().address("<DESTINATION_ADDRESS>"))))
>     .useGasless(true) // Optional - Needed only when the workspace gasless mode is Off by default
>     .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": "<ERC20_ASSET_ID>",
>   "source": { "type": "VAULT_ACCOUNT", "id": "<SOURCE_VAULT_ACCOUNT_ID>" },
>   "destinations": [
>     { "amount": "10", "destination": { "type": "VAULT_ACCOUNT", "id": "<VAULT_ACCOUNT_ID_1>" } },
>     { "amount": "10", "destination": { "type": "VAULT_ACCOUNT", "id": "<VAULT_ACCOUNT_ID_2>" } },
>     {
>       "amount": "25",
>       "destination": { "type": "ONE_TIME_ADDRESS", "oneTimeAddress": { "address": "<DESTINATION_ADDRESS>" } }
>     }
>   ],
>   "useGasless": true, // Optional - Needed only when the workspace gasless mode is Off by default
>   "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":"<ERC20_ASSET_ID>","source":{"type":"VAULT_ACCOUNT","id":"<SOURCE_VAULT_ACCOUNT_ID>"},"destinations":[{"amount":"10","destination":{"type":"VAULT_ACCOUNT","id":"<VAULT_ACCOUNT_ID_1>"}},{"amount":"10","destination":{"type":"VAULT_ACCOUNT","id":"<VAULT_ACCOUNT_ID_2>"}},{"amount":"25","destination":{"type":"ONE_TIME_ADDRESS","oneTimeAddress":{"address":"<DESTINATION_ADDRESS>"}}}],"useGasless":true,"externalTxId":"<YOUR_UNIQUE_ID>"}' \
>   --dry-run
> ```

**Field notes:**

* `assetId`: an ERC-20 token on a Universal Gasless integrated chain. Every recipient receives this asset. A native asset such as ETH is rejected.
* `destinations`: up to 400 entries, each with its own `amount` and `destination`. Leave out the top-level `amount` and `destination`.
* `useGasless`: the batch must be relayed. Set `true` when your workspace gasless mode is **Off by default**. Leave it out when the mode is **On by default**. Do not set `false`, because the source vault account cannot pay its own gas for a batch.
* `externalTxId`: a unique ID of your own. Fireblocks rejects any later transaction with the same value, so a retried batch cannot pay recipients twice.

## 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. `gaslessInfo` and `feeInfo` report the relay that paid, as described in [Confirm the relay paid](https://developers.fireblocks.com/docs/evm-gasless.md#step-4-confirm-the-relay-paid).

## Gas savings

The batch pays the base transaction fee once, instead of once per recipient. The per-recipient token transfers still consume gas, so total savings grow with batch size. Savings are larger on Layer 2 networks, where the fixed per-transaction cost is a bigger share of the fee. To see what a batch will cost before you send it, use [Estimate a transaction fee](https://developers.fireblocks.com/reference/estimate-transaction-fee.md).

## Limitations

| Limit | Value |
| - | - |
| Assets | ERC-20 tokens only. Native assets are not supported in this release. |
| Assets per batch | One. Submit one batch per token. |
| Recipients per batch | Up to 400. Larger batches are rejected, so split them. |
| Fee payment | Gasless only. A relay vault account must sponsor the gas. |
| Chains | [Universal Gasless integrated chains](https://support.fireblocks.io/hc/en-us/articles/21285504712988) |
| Console | API only. The Console shows batches in transaction history, labeled **Multi-destination**. |

## Troubleshooting

| Symptom | Cause | Fix |
| - | - | - |
| The batch is rejected at creation | More than 400 recipients, a native asset, or a mix of assets | Split into batches of 400 or fewer, one ERC-20 token each. |
| The batch is not relayed | EVM Gasless is off, the mode is **None**, or the request set `useGasless: false` | Turn on EVM Gasless and remove `useGasless: false`. See [Configure EVM Gasless](https://developers.fireblocks.com/docs/evm-gasless.md#step-1-configure-evm-gasless-in-the-console). |
| The whole batch reverted | One transfer in the batch could not complete | Correct the failing entry and resubmit the batch with a new `externalTxId`. No funds moved. |

For relay funding and Policy issues that affect every gasless transaction, see [EVM Gasless troubleshooting](https://developers.fireblocks.com/docs/evm-gasless.md#troubleshooting).

## What to read next

* [Batched Transactions Overview](https://developers.fireblocks.com/transactions/batched-transactions.md): compare batching across chains.
* [EVM Gasless (Universal Gasless)](https://developers.fireblocks.com/docs/evm-gasless.md): relay setup, Policy rules and `gaslessInfo`.
* [Manage withdrawals at scale](https://developers.fireblocks.com/docs/manage-withdrawals-at-scale.md#transaction-batching): when to batch customer withdrawals.
