Flashblocks API Quickstart
Introduction
Flashblocks on Unichain enable ultra-fast transaction confirmations by providing preconfirmations - instant signals that arrive before the next block is finalized. Instead of waiting up to 2 seconds for block confirmation, users receive transaction feedback in just 200 milliseconds, a 10x improvement.
Built as an “out-of-protocol” extension, Flashblocks work by streaming partial block updates every 200ms without modifying Unichain’s core consensus. This makes them perfect for developers building DeFi applications, marketplaces, payment systems, and other applications where instant confirmations create seamless user experiences.
Getting started instructions
Flashblocks is currently supported on both Unichain testnet and mainnet and can be accessed using your existing Alchemy Unichain RPC.
Flashblocks-enabled API Endpoints
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
eth_call
Use the pending tag to execute a smart contract call against the latest Flashblock:
Example Response
eth_simulateV1
Use the pending tag to simulate transactions against the latest Flashblock:
Example Response
eth_estimateGas
Use the pending tag to estimate gas against the latest Flashblock:
Example Response
eth_getLogs
Use the pending tag for toBlock to retrieve logs from the latest Flashblock:
Example Response
Also check out the Official Unichain Flashblocks Docs!