Guides/EVM/Precompiles

Timestamp

Typed EVM interface for Timestamp pallet state.

View as Markdown
PropertyValue
ImplementationTimestampPrecompile
Solidity interfaceITimestamp
Address0x0000000000000000000000000000000000000811
StatusDeployed

Views

FunctionReplaces
getTimestamp()Timestamp.Now
wasUpdatedThisBlock()Timestamp.DidUpdate

getTimestamp() converts the pallet's millisecond timestamp to Unix seconds, matching the EVM block.timestamp value. It exists here so every storage item authorized through StorageQueryPrecompile has an explicit typed replacement. wasUpdatedThisBlock provides the Timestamp pallet's update state without requiring contracts to construct a storage key or decode SCALE.

Timestamp.set is an inherent submitted by block production, not a public user operation. The precompile therefore exposes no state-changing timestamp function.

See the complete classification in Extrinsic coverage.

Source: timestamp.sol