Arbitrum One
Pronto para usar isso em produção?
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
Arbitrum One
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
Uncle blocks — also called ommer blocks — are valid blocks that were mined at nearly the same height as another block on a proof-of-work chain like Ethereum's original execution layer, lost the race to become canonical, but were still referenced and lightly rewarded to compensate for propagation latency. Arbitrum One does not work this way and produces no uncle blocks at all. It is an Optimistic Rollup built on the Nitro stack with a single sequencer ordering transactions, so there is no competition between miners to win a block and therefore no stale, near-miss blocks to reference. As a result the uncles array on every Arbitrum One block is empty, the uncle-related JSON-RPC methods return null or zero, and there is no uncle reward to account for. This guide exists to explain that reality clearly — so you understand why the uncle methods behave the way they do on chain ID 42161 and do not build logic around a mechanism that never fires here.
finalized (L1-settled) tag instead of any uncle-rate consideration.calculateUncleRate helper above against https://arbitrum.therpc.io/YOUR_API_KEY it will return 0; treat any nonzero result as a bug in your parsing or node, not a property of the network.block.uncles to be an empty array, eth_getUncleCountByBlock* to return "0x0", and eth_getUncleByBlock* to return null. Write defensive code that handles those empty/null results gracefully rather than assuming an uncle object will be present.