Get you own node endpoint today
Start for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.Parameters
string— the subscription type,newFlashblockTransactionsin this case.boolean— (optional) whentrue, includes complete transaction objects and associated logs in each notification. Defaults tofalse(minimal data only).
Response
subscription— the subscription ID.
full is false (default), the result is the transaction hash as a hex string. When full is true, the result is a complete transaction object with the following fields:
type— the transaction type (0x0Legacy,0x1Access List,0x2EIP-1559,0x7eDeposit).chainId— the chain ID (hex).nonce— the sender’s nonce (hex).from— the sender address.to— the recipient address.value— the ether value transferred (hex).input— the call data.gas— the gas limit (hex).maxFeePerGas— the maximum fee per gas, EIP-1559 (hex).maxPriorityFeePerGas— the maximum priority fee per gas, EIP-1559 (hex).gasPrice— the effective gas price (hex).hash— the transaction hash.blockHash—nullbecause the transaction is pre-confirmed (not yet in a finalized block).blockNumber— the pending block number (hex).transactionIndex— the transaction’s index position in the block (hex).accessList— the EIP-2930 access list (if applicable).r,s,v,yParity— signature values.logs— array of event logs emitted by the transaction. Each log includesaddress,topics,data,blockHash,blockNumber,blockTimestamp,transactionHash,transactionIndex,logIndex, andremoved.
eth_subscribe("newFlashblockTransactions") code examples
Note that subscriptions require a WebSocket connection and WebSocket cat for you to use this method in the console.Install WebSocket cat with:
npm install -g wscatMinimal data (default)
Full transaction objects and logs
If your handler performs heavy processing per event, throttle or debounce it to avoid blocking the WebSocket connection.
Use case
Theeth_subscribe("newFlashblockTransactions") method is useful in scenarios where sub-second transaction visibility matters:
- Latency-sensitive trading. DEX aggregators and MEV searchers can observe individual transactions as soon as the Base sequencer pre-confirms them—up to ~1.8 seconds before the full block seals—enabling faster reaction to on-chain events.
- Real-time transaction monitoring. Wallet providers and block explorers can show users their transaction status within ~200ms of submission instead of waiting for the next 2-second block, significantly improving perceived confirmation speed.
-
Event-driven automation. Applications that trigger downstream actions on specific transactions—such as bridge relayers or liquidation bots—can act on pre-confirmed data instead of polling
eth_getBlockByNumberwithpending.