Home/Blockchain/Rollup Demo/Transaction Bundling

🎁 Transaction Bundling: Batch Processing

Watch thousands of transactions get compressed into one batch

Scale Ethereum with Layer 2 rollup technology

📦 Transaction Bundling

Rollups achieve massive cost savings by batching hundreds of transactions into a single Ethereum transaction. Instead of each user paying $50, they share the cost - paying just pennies.

🎬 Interactive Bundling Simulator

Watch how rollups collect, compress, and submit transactions to Ethereum. Adjust transaction count and see the cost savings.

500 txs
📥
Collecting
🗜️
Compressing
📤
Submitting
Complete

📥 Collecting Transactions

Users submit transactions to the rollup sequencer. Transactions are held in a mempool until enough accumulate for a batch (500 in this simulation).

Mempool: [500 transactions waiting...]

💡 How Data Compression Works

Signature Aggregation

Instead of storing 500 individual signatures (each ~65 bytes), rollups use BLS signature aggregation to combine them into a single signature. Saves ~32KB per batch.

State Diffs Only

Rollups only post state changes (diffs), not full state. If your balance goes from 100 to 95 ETH, only "-5" is stored, not the full balances.

Data Encoding

Transactions are encoded in efficient binary format. Addresses use 20 bytes instead of 42-character hex strings. Every byte saved multiplies across thousands of transactions.

Calldata Optimization

Ethereum charges 16 gas per non-zero byte, 4 gas per zero byte. Rollups minimize non-zero bytes through clever encoding and zero-padding where possible.

📊 Cost Breakdown Example

Ethereum L1 gas cost for batch:500,000 gas
Gas price:50 gwei
ETH price:$2,000
Total L1 cost for batch:$50
Transactions in batch:500
Cost per transaction:$0.10
Compare to $50 per transaction on L1 - that's 500x cheaper!