How Transaction Aggregation Works
DA Builder collects transactions from multiple users, validates them, and combines them into a single aggregated transaction that executes all operations atomically.The Aggregation Process
- Transaction Submission: Users submit transactions to DA Builder’s RPC endpoint
- Collection: DA Builder collects multiple transactions in a mempool
- Validation: Each transaction is validated for correctness and funding
- Batching: Valid transactions are combined into a single aggregated transaction
- Execution: The aggregated transaction executes all user operations in sequence
- Settlement: Costs are calculated and charged to each participant
Execution Model
The aggregated transaction uses a multicall pattern where:- Each user’s transaction is executed as a call to their EIP-7702 account code
- The
ProposerMulticallcontract orchestrates execution - All calls execute in a single atomic transaction
- Gas costs are shared across all participants
Cost Benefits
Shared Execution Costs
The minimum transaction overhead (21,000 gas) is paid once and split across all aggregated transactions. For example:- Single transaction: Pays full 21k gas minimum
- 10 aggregated transactions: Each pays ~2.1k gas (21k / 10)
- Savings: 90% reduction in per-transaction overhead
Proportional Gas Sharing
Execution gas is charged based on actual usage:- Each transaction pays for its own gas consumption
- Intrinsic gas costs are shared proportionally
- Large transactions pay more, small transactions pay less
- Fair cost distribution based on actual resource usage
Security Model
Transaction aggregation maintains security through:EIP-7702 Account Code
Users set EIP-7702 account code that implements theIProposer interface. This allows:
- DA Builder to execute transactions on behalf of users
- Users to maintain control through cryptographic signatures
- Trustless execution through signature verification
Trustless Proposer
The recommendedTrustlessProposer implementation requires:
- EIP-712 signatures for each transaction
- Nonce protection to prevent replay attacks
- Deadline protection to prevent stale transactions
- Gas limit enforcement to prevent excessive consumption
Transaction Types Supported
DA Builder aggregates various transaction types:- Blob transactions (EIP-4844): For rollup data submission
- Standard transactions: For contract calls and transfers
- Bundle transactions: Simplified bundle format with single transaction
Aggregation vs. Direct Submission
Aggregated Transactions
- Cost: Shared execution overhead, lower per-transaction cost
- Speed: Faster inclusion through premium positioning
- Protection: MEV protection and dual layer revert protection
- Requirement: EIP-7702 setup and GasTank funding
Direct Submission
- Cost: Full execution overhead per transaction
- Speed: Standard mempool inclusion time
- Protection: Standard Ethereum protection
- Requirement: Standard wallet setup
Relationship to Blob Aggregation
Transaction aggregation and blob aggregation work together:- Transaction aggregation: Combines multiple transactions into one execution
- Blob aggregation: Combines multiple blobs into one blob transaction
- Combined: Multiple blob transactions can be aggregated together
Benefits Summary
Transaction aggregation provides:- Cost reduction: Shared execution overhead reduces per-transaction costs
- Faster inclusion: Aggregated transactions gain priority positioning
- Better positioning: Favorable positioning in blocks
- MEV protection: Protection from frontrunning and sandwich attacks
- Dual layer revert protection: Multi-layered protection against transaction reverts
Next Steps
- Learn about Blob Aggregation for blob-specific details
- Review Cost Structure to understand pricing
- See Integration Guide to get started