Base
Base
Base
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
On Base, the Coinbase sequencer includes your transaction in a block within a second or two, but inclusion is not the same as finality. Until the block is deep enough — and ultimately until its batch is settled on Ethereum L1 — the head can still be rewritten by a shallow reorg, so anything irreversible you do on a single confirmation is at risk. Counting confirmations is how you trade waiting time for safety. This guide explains how confirmations work on this OP Stack rollup and gives you the code to count them, wait for a chosen threshold, and choose that threshold sensibly for the value at stake.
getConfirmations helper computes. At ~2s per Base block, confirmations accrue roughly every two seconds.blockNumber is now null or the transaction sits in a different block, treat it as un-confirmed, roll back any side effects you applied, and restart the confirmation count from the new block. Always re-check rather than trusting a previously cached count.waitForConfirmations) or drive it from a newHeads subscription, surface progress to users, and alert if a transaction stops gaining confirmations — a sign of a stalled sequencer or a reorg that needs manual attention.