Skip to main content
Subscribe via 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.
Each subscription emits one item per WebSocket message. Events arrive approximately every 200ms. If your handler performs heavy processing per event, throttle or debounce it to avoid blocking.

Parameters

string
required
Must be "newFlashblockTransactions".
boolean
If true, each notification includes the full transaction object with receipt fields embedded. Defaults to false (transaction hash only).

Returns

string
Hex-encoded subscription ID returned on subscribe.

Notifications

Each notification is a standard eth_subscription message. The params.result field depends on the full parameter: full: falseresult is the transaction hash:
full: trueresult is a transaction object with receipt fields embedded directly (no nested receipt sub-object). Verified live against base/v0.9.0:
string
Transaction type: 0x0 Legacy, 0x2 EIP-1559, 0x7e Deposit.
string
Chain ID (hex).
string
Sender nonce (hex).
string
Gas limit (hex).
string
EIP-1559 max fee per gas (hex).
string
EIP-1559 max priority fee per gas (hex).
string
Recipient address.
string
ETH value transferred (hex).
array
EIP-2930 access list.
string
Transaction input data (hex).
string
Signature r component.
string
Signature s component.
string
Signature parity (hex).
string
Signature v value (hex).
string
Transaction hash.
null
Always null — transaction is pre-confirmed, not yet in a finalized block.
string
Block number (hex) of the in-progress Flashblock.
string
Index within the block (hex).
string
Sender address.
string
Effective gas price (hex).
string
Gas used by this transaction (hex). Note: changed from integer to hex string in v0.8.0.
string
0x1 for success, 0x0 for failure.
string
Total gas used in the block up to and including this transaction (hex).
string | null
Address of the created contract, or null.
string
Bloom filter of logs (hex).
array
Array of log objects emitted by this transaction.
gasUsed is a hex string (e.g. "0x26132"), not an integer. This changed in v0.8.0 — update any parsers that expect a numeric value.

Example