Batch Transactions
Overview
Benefits
Basic batching
Multiple transfers
const batch = await client.executeBatch([
{ instruction: "Transfer 10 USDC to 0xaaaa..." },
{ instruction: "Transfer 15 USDC to 0xbbbb..." },
{ instruction: "Transfer 20 USDC to 0xcccc..." }
])
console.log(`Batch transaction: ${batch.txHash}`)
console.log(`Total gas: ${batch.gasEstimate}`)
console.log(`Operations: ${batch.operations.length}`)Method
Base Fee
Gas per Transfer
Total Gas
USD Cost
Structured batch
Advanced batching
Mixed operations
Conditional batching
Dependent operations
Batch strategies
Airdrop distribution
Recurring payments
Portfolio rebalancing
Gas optimization
Calldata compression
Operation reordering
Redundant operation elimination
Error handling
Partial failure handling
Retry failed operations
Monitoring and tracking
Batch status
Individual operation tracking
Size limits
Transaction size constraints
Automatic chunking
Testing batches
Simulation
Dry run
Best practices
Example: Complete treasury distribution
Next steps
Support
Last updated
