Subscribe viaDocumentation Index
Fetch the complete documentation index at: https://docs.base.org/llms.txt
Use this file to discover all available pages before exploring further.
eth_subscribe to receive each transaction as it is pre-confirmed into a Flashblock. Pass true as the second parameter to receive full transaction and receipt data.
This subscription requires a WebSocket-enabled RPC endpoint. The public Base endpoints (
mainnet.base.org, sepolia.base.org) are HTTP only. Use a node provider such as Alchemy or QuickNode that offers WebSocket support for Base.Requires base/base minimum client version v0.8.0.
Parameters
Must be
"newFlashblockTransactions".If
true, each notification includes the full transaction object with receipt fields embedded. Defaults to false (transaction hash only).Returns
Hex-encoded subscription ID returned on subscribe.
Notifications
Each notification is a standardeth_subscription message. The params.result field depends on the full parameter:
full: false — result is the transaction hash:
full: true — result is a transaction object with receipt fields embedded directly (no nested receipt sub-object). Verified live against base/v0.9.0:
Transaction type:
0x0 Legacy, 0x2 EIP-1559, 0x7e Deposit.Chain ID (hex).
Sender nonce (hex).
Gas limit (hex).
EIP-1559 max fee per gas (hex).
EIP-1559 max priority fee per gas (hex).
Recipient address.
ETH value transferred (hex).
EIP-2930 access list.
Transaction input data (hex).
Signature r component.
Signature s component.
Signature parity (hex).
Signature v value (hex).
Transaction hash.
Always
null — transaction is pre-confirmed, not yet in a finalized block.Block number (hex) of the in-progress Flashblock.
Index within the block (hex).
Sender address.
Effective gas price (hex).
Gas used by this transaction (hex). Note: changed from integer to hex string in v0.8.0.
0x1 for success, 0x0 for failure.Total gas used in the block up to and including this transaction (hex).
Address of the created contract, or
null.Bloom filter of logs (hex).
Array of log objects emitted by this transaction.