2

I am working on a piece of code, but require to know the timestamp in best case milliseconds, and worst case seconds, at which a specific slot number was executed.

is there historical data onchain that I can tap into?

0

1 Answer 1

1

You can't. The highest resolution on-chain wall timestamp available today is one second and available in the unix_timestamp field of the Clock sysvar.

Sampling theory states, via Nyquist, that there is nothing to be gained by sampling higher than twice a signal's period. Given that the (target) slot rate of the cluster is 400ms and that slots are essentially samples, attempting to resolve below 800ms fraught at best

1
  • so presuming, the best resolution I can get is seconds, then what about the historical pieces? can I in a trustless solana program, know at what specific second, a slot was finalized? Commented Jul 23, 2022 at 20:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.