Skip to main content

Overview

Flashblocks enable up to 200 millisecond transaction confirmations on Base by leveraging preconfirmations, ultra-fast signals that arrive before the next block is sealed. Built for developers who demand instant UX, it’s ideal for high-frequency apps, games, and real-time interactions where waiting even a few seconds is too long. By integrating directly within Base’s infrastructure, Flashblocks enables, seamless, ultrafast and snappy user experiences without compromising security.

Integrating Flashblocks

Flashblocks is enabled for developers on Base. There are two ways you can integrate with Flashblocks data. You can either use the WebSocket API to stream real-time block updates, or use the RPC API to query the Flashblocks-aware RPC endpoint.

RPC API

Base offers the following public Flashblocks aware RPC endpoints. These are rate limited and may not be suitable for production use - we recommend using a node provider that runs Flashblocks integrated nodes. Major node providers such as Alchemy, Infura, QuickNode and dRPC have Flashblocks-aware RPCs that can be leveraged The following RPC methods can return Flashblocks specific data. All standard Ethereum JSON-RPC methods are still supported as usual.

eth_getBlockByNumber

Use the pending tag to retrieve the latest Flashblock:
Example Response

eth_getTransactionReceipt

Use the existing receipt RPC to get preconfirmed receipts:
Example Response

eth_getBalance

Use the pending tag to get the address balance in the latest Flashblock:
Example Response

eth_getTransactionCount

Use the pending tag to get the address nonce in the latest Flashblock:
Example Response

eth_getTransactionByHash

Use the existing get transaction by hash RPC to get preconfirmed transactions:
Example Response

Libraries

You will need to use a Flashblocks-aware RPC endpoint to use Flashblocks with the following libraries:

Wagmi

To use Flashblocks with Wagmi, you will need to use the basePreconf chain in the Wagmi Config (see config.ts).

Viem

Ethers

You should see the confirmation time significantly lower than the standard RPC endpoint.

Support

For feedback, support or questions about Flashblocks, please don’t hesitate to contact us in the #developer-chat channel in the Base Discord.