BNB Chain introduces millisecond-level block timestamps via BEP-706.

--

BNB Chain announced that BEP-706 has been incorporated into the Jenner hard fork upgrade, which will provide millisecond-level block timestamps to smart contracts through a new pre-compiled contract deployed at address 0x70. Developers can read the millisecond-level timestamps through the new interface, while the existing second-level timing logic of block.timestamp remains unchanged. This feature supports sub-second precision applications such as bid settlement with validity periods of only a few hundred milliseconds, auction deadline checks, and price oracle data update timeliness checks. The computation cost of the new pre-compiled contract is 20 Gas; calls incur corresponding call and memory costs. BNB Chain reminds developers to ensure consistency between seconds and milliseconds and to check if the call was successful and if the expected 32 bytes of data were returned.

Loading...