Optimism
准备好在生产环境中调用了吗?
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
Optimism
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
Uncle blocks (also called ommers) are valid blocks that were mined at nearly the same height as another block on proof-of-work chains, then lost the race to become canonical — Ethereum's PoW era rewarded them to compensate for unavoidable propagation latency between competing miners. OP Mainnet does not produce uncle blocks. As an OP Stack optimistic rollup (chain ID 10) with a single sequencer rather than competing miners, OP Mainnet appends blocks one at a time in a deterministic order every ~2 seconds; there is no mining race, so no valid sibling block is ever orphaned into an uncle. The uncle-related JSON-RPC methods still exist for Ethereum API compatibility, but on OP Mainnet they always report empty results. This guide explains why uncles cannot occur here and what the uncle methods return so you handle them correctly.
calculateUncleRate will return 0 across any range. Monitor sequencer liveness, head progression at the ~2s cadence, and L1 finalization lag instead.block.uncles to be an empty array, eth_getUncleCountByBlock* to return 0x0, and eth_getUncleByBlock* to return null on chain ID 10. Write code that treats an empty uncle list and null uncle lookups as the normal, expected result rather than an error condition.