BNB Chain Introduces Millisecond Block Timestamps on BSC via BEP‑706

BNB Chain’s BEP‑706 standard lets smart contracts read block timestamps in milliseconds, while the legacy block.timestamp stays in seconds. Developers should verify unit handling in their integrations, and Reth v0.1.3 updates how test tools override time.

BNB Chain Introduces Millisecond Block Timestamps on BSC via BEP‑706

BNB Chain has rolled out a new feature that allows smart contracts on the BNB Smart Chain (BSC) to access block timestamps with millisecond precision. The change is formalized in the BEP‑706 standard, which adds a new function for contracts to query the current block’s timestamp in milliseconds.

The existing block.timestamp value, which has historically returned time in whole seconds, remains unchanged. This dual‑format approach preserves backward compatibility for contracts that rely on the traditional second‑based timestamp while enabling more granular timekeeping for new applications.

Developers integrating the new timestamp function must explicitly check the unit of the returned data. A contract that reads block.timestamp will still see a value in seconds, whereas the BEP‑706 function will return a millisecond‑based value. Failure to account for this difference can lead to logic errors in time‑sensitive contracts.

In addition to the on‑chain change, the Reth testing framework has been updated to version 0.1.3. The update modifies how time overrides are applied during unit tests, ensuring that mock timestamps correctly reflect the new millisecond granularity when the BEP‑706 function is called.

The introduction of millisecond timestamps is expected to benefit a range of use cases, from high‑frequency trading contracts to more precise event scheduling. By maintaining compatibility with the legacy second‑based timestamp, BNB Chain mitigates disruption for existing projects while opening the door to new, time‑sensitive innovations on BSC.

Trust 80 Importance 64 Noise 8% Related symbol Informational material, not financial advice.