Optimism
Prêt à utiliser cela en production ?
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
Optimism
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
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.