Transaction Streaming
TheTransactionStream module provides Effect-native transaction streaming for monitoring pending and confirmed transactions on Ethereum.
Overview
makeTransactionStream wraps voltaire core’s TransactionStream with Effect Stream integration, enabling:- Pending transactions: Watch mempool for new transactions
- Confirmed transactions: Stream transactions with confirmation requirements
- Transaction tracking: Follow a specific transaction through its lifecycle
makeTransactionStream
The stream provides three streaming methods, each returning an Effect Stream:Watching Pending Transactions
Stream pending transactions from the mempool with optional filtering:Streaming Confirmed Transactions
Watch for transactions that meet confirmation requirements:Tracking a Specific Transaction
Track a transaction through pending, confirmed, and dropped states:Error Handling
Transaction stream operations can fail withTransactionStreamError:
TransactionStreamError
Thrown when any transaction stream operation fails:Integration with BlockStream
TransactionStream’s confirmation tracking internally uses BlockStream for monitoring block confirmations. The confirmed transaction stream waits for the specified number of blocks before emitting events:Layer Composition
makeTransactionStream requires TransportService:See Also
- Transaction Stream — API reference
- Stream Errors — Common stream error types
- Block Streaming — Block streaming with reorg detection
- Send Transactions Example — Transaction signing and sending
- Provider Service —
waitForTransactionReceiptfor simple confirmation - Voltaire Transaction — Core transaction documentation

