Source
get_block_timeEach validator reports their UTC time to the ledger on a regular interval by
intermittently adding a timestamp to a Vote for a particular block. A
requested block’s time is calculated from the stake-weighted mean of the Vote
timestamps in a set of recent blocks recorded on the ledger.
Parameters
slot number
Slot number to query, as a u64 integer.
Result
result
Estimated production time, as Unix timestamp (seconds since the Unix epoch)
result
Returned when the block is available but no block time has been recorded.
result
Error object