Skip to content
A Solana transaction is a container that holds one or more instructions. Each instruction is an operation—transfer tokens, create an account, call a program. The network executes all instructions in a transaction sequentially and atomically: either every instruction succeeds, or the entire transaction fails and rolls back. This means you can pack multiple transfers into a single transaction. Instead of sending three separate transactions to pay three recipients, you send one transaction with three transfer instructions. This is faster (one confirmation instead of three) and cheaper (one base fee instead of three). Here’s an illustrative example of how payments (referred to as “drops” in this image) are batched into a single transaction and multiple transactions are sent to handle the larger batch.
Batch payments diagram
Batch payments diagram
Source: QuickNode - How to Send Bulk Transactions on Solana For more information on transactions and instructions, see the Transactions and Instructions guides. The walkthrough below shows how to load multiple transfer instructions into a single transaction for batch payments.

​Batching Instructions into a Single Transaction

A Solana transaction can contain multiple transfers to different recipients. You sign once, pay one transaction fee, and all transfers settle together. If any transfer fails, the entire transaction is rejected.
See How Payments Work on Solana for core payment concepts.
Batching multiple transfers requires building each instruction separately, then combining them into a single transaction. The steps below show the core flow. See the Demo for complete runnable code.
1

Derive Token Accounts

First, derive the Associated Token Account (ATA) addresses for the sender and each recipient. ATAs are deterministic addresses based on the wallet and mint.
Batch Payments
2

Create Transfer Instructions

Create a separate transfer instruction for each recipient. Each instruction specifies the:
  • source token account address
  • destination token account address
  • authority (source token account owner address)
  • amount in base units (adjusted for the mint’s decimals)
Batch Payments
3

Send as Single Transaction

Add all transfer instructions into a single transaction. This executes all transfers atomically, either all transfers succeed or the entire transaction fails.
Batch Payments
4

Verify Balances

After the batch transfer, verify the token balances for all parties by fetching each token account with the client’s RPC connection.
Batch Payments

​Demo

To run this demo, create a project and install its packages. "type": "module" lets the demo use top-level await:
In a second terminal, start a local network on 127.0.0.1:8899 with the Surfpool CLI and leave it running:
Save the demo as demo.ts and run it with npx tsx demo.ts.
Demo

​Scaling with Transaction Planning

A single transaction has size limits—roughly 1232 bytes. For large batch operations (payroll for hundreds of employees, mass airdrops), you’ll exceed this limit and need to split work across multiple transactions. The v1 transaction format raises the size limit to 4096 bytes, which fits roughly three times as many transfers per transaction. Batching is still required beyond that, since the runtime loads at most 64 accounts per transaction, or 96 for v1 once SIMD-0596 activates. Though you are welcome to create your own transaction distribution logic, the @solana/instruction-plans package (part of Solana Kit) handles this at two levels: Instruction plans define your operations and their ordering constraints:
  • Sequential — instructions that must execute in order
  • Parallel — instructions that can execute in any order
  • Non-divisible — instructions that must stay together in the same transaction
Transaction plans are generated from instruction plans. The planner intelligently packs instructions into optimally-sized transactions, respecting your ordering constraints. The resulting transaction plan can then be:
  • Executed — signed and sent to the network, with parallel transactions sent concurrently
  • Simulated — dry-run against the network to verify before sending
  • Serialized — compiled to base64 for external signing services or multi-party workflows
This two-level approach lets you think in terms of operations (“transfer to Alice, then transfer to Bob”) while the library handles the mechanics of transaction sizing, packing, and parallel execution.