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 leveragedNetwork | URL |
---|---|
Mainnet | https://mainnet-preconf.base.org |
Sepolia | https://sepolia-preconf.base.org |
eth_getBlockByNumber
Use thepending
tag to retrieve the latest Flashblock:
eth_getTransactionReceipt
Use the existing receipt RPC to get preconfirmed receipts:eth_getBalance
Use thepending
tag to get the address balance in the latest Flashblock:
eth_getTransactionCount
Use thepending
tag to get the address nonce in the latest Flashblock:
eth_getTransactionByHash
Use the existing get transaction by hash RPC to get preconfirmed transactions: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 thebasePreconf
chain in the Wagmi Config (see config.ts
).
Viem
Ethers
Support
For feedback, support or questions about Flashblocks, please don’t hesitate to contact us in the#developer-chat
channel in the Base Discord.