Optimism
Bereit, das in der Produktion aufzurufen?
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
Optimism
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
Block timestamps are the on-chain clock that vesting schedules, auctions, time-locks, and reward accrual read from block.timestamp, and off-chain indexers use to place OP Mainnet events in real time. On OP Mainnet (chain ID 10), with a new block roughly every two seconds, that clock ticks fast and smoothly — but it is set by the sequencer, not measured by a global consensus of validators, which changes how much you can trust it for fine-grained logic. This guide is for smart contract and backend developers who need to use OP Mainnet timestamps safely: it covers how they are assigned, what accuracy you can and cannot assume, the bounds on manipulation, network time drift, and the patterns that keep time-based logic robust.
block.timestamp as a randomness source.block.timestamp alone.