- In production, point your app to a Flashblocks‑aware RPC endpoint from your provider of choice. If your provider doesn’t support flashblocks yet, let us know on Discord and we’ll work with them to get it added.
- Alternatively, you can run your own flashblocks-aware node using Base’s reth image.
Supported RPC methods
Developers can access Flashblocks using the same familiar Ethereum JSON-RPC calls. The difference is using the “pending” tag in some of them to explicitly query the pre-confirmed state instead of the last finalized block.-
eth_getBlockByNumber: Use thependingtag to retrieve the latest flashblock snapshot. -
eth_call: Use thependingtag to execute calls against the most recent pre-confirmed state. -
eth_estimateGas: Withpending, estimates gas usage against the latest Flashblock -
eth_getBalance/eth_getTransactionCount: Use thependingtag to fetch balances or transaction counts respectively as they evolve within the block window. Other methods, likeeth_getTransactionReceipt,eth_getTransactionByHashoreth_simulateV1, return data from pre-confirmed transactions without requiring thependingtag. Consult the Flashblocks specification for more details on each of these methods.
Libraries
You will need a Flashblocks‑aware RPC endpoint to use the following libraries:Viem
Ethers
Next steps
- Understand how Flashblocks affect gas usage and large transactions.
- Learn how Flashblocks work in the Flashblocks explainer.
- Review the technical specs for architecture details.
- Join our community to share best practices and get support!