概述
Flashblocks is a transaction preconfirmation feature on Unichain that delivers partial block updates every 200 milliseconds, achieving up to 10x faster confirmations than Unichain's standard 2-second block time. This enables applications to access near-instant transaction feedback, enhancing responsiveness for time-critical use cases like decentralized exchanges and onchain gaming.
Flashblocks is useful for:
- Applications that require real-time feedback
- Decentralized exchanges and trading platforms
- Onchain games or apps with frequent state updates
- Interfaces that benefit from faster feedback such as live dashboards
Using Flashblocks with Unichain Endpoints
Flashblocks is currently supported on the Unichain and can be accessed using your existing Quicknode Unichain endpoint — no additional add-ons are required.
| 网络 | Flashblocks Availability |
|---|---|
| Unichain Mainnet | ✅ |
| Unichain Sepolia | ✅ |
Supported RPC Methods
Access Flashblocks preconfirmations through your Unichain endpoint by using the 待定 tag on methods like eth_getBlockByNumber, eth_getBalance,以及 eth_getTransactionCount. Additionally, fetch Flashblocks related transaction details via methods such as eth_getTransactionReceipt 以及 eth_getTransactionByHash. You can also use eth_subscribe over WebSocket to stream real-time Flashblock data including new transactions, pending logs, and block state updates, and stop active streams when needed using eth_unsubscribe.
| 方法 | 描述 |
|---|---|
eth_call | With "pending", executes contract calls using Flashblock state |
eth_getBalance | With "pending", reflects balances from the latest Flashblock |
eth_getBlockByNumber | With "pending", returns the most recent Flashblock |
eth_getLogs | With "pending", returns logs from the latest Flashblock |
eth_getTransactionByHash | Returns the transaction with the specified hash |
eth_getTransactionCount | With "pending", returns the updated nonce from Flashblocks |
eth_getTransactionReceipt | Returns receipts for preconfirmed transactions |
eth_subscribe | Subscribes to real-time Flashblock events via WebSocket (e.g., newFlashblocks, newFlashblockTransactions, pendingLogs) |
eth_unsubscribe | Unsubscribes from an active WebSocket subscription created with eth_subscribe |
资源
我们 ❤️ 您的反馈!
如果您对本文档有任何反馈或疑问,请告诉我们。我们非常期待您的反馈!