System Contracts
MegaETH system contracts — addresses, interfaces, preconditions, and usage examples.
Contract
Address
Purpose
High-Precision Timestamp
interface IHighPrecisionTimestamp {
/// @notice Returns the current timestamp in microseconds since Unix epoch.
/// @return Microsecond-precision timestamp, non-decreasing within a block,
/// capped at block.timestamp × 1,000,000.
function timestamp() external view returns (uint256);
}
IHighPrecisionTimestamp hpt = IHighPrecisionTimestamp(
0x6342000000000000000000000000000000000002
);
uint256 timestampUs = hpt.timestamp(); // microsecond timestamp
uint256 timestampSec = timestampUs / 1_000_000; // convert to second timestampProperty
Value
Keyless Deployment
Contract
Deployed Address
Related Pages
Last updated