Base
Prêt à utiliser cela en production ?
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
Base
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
Uncle blocks — also called ommer blocks — are valid blocks that were mined at the same height as the block that ultimately made it into the canonical chain, then lost the race and were set aside. They are a feature of proof-of-work chains like the old Ethereum mainnet, where multiple miners can find competing blocks at once. Base does not produce uncle blocks at all. As an OP Stack rollup, Base orders transactions through a single Coinbase-operated sequencer rather than competing miners, so there is no race at a given height and no orphaned siblings to record. This guide exists to make that explicit: the Ethereum JSON-RPC uncle methods still exist on Base for compatibility, but on this chain they have nothing to return — and the rest of this page explains why, and what those calls actually give back so your code handles them correctly.
calculateUncleRate helper above will return 0 because block.uncles.length is always 0 — useful only as a sanity check that your node is behaving normally, not as a tunable network metric.block.uncles to be an empty array, eth_getUncleCountByBlockNumber and eth_getUncleCountByBlockHash to return "0x0", and eth_getUncleByBlockNumberAndIndex / eth_getUncleByBlockHashAndIndex to return null on Base. Write code that treats these as the normal, expected result — never assume an uncle object exists, and do not branch on uncle presence as if it were possible on this chain.