Fetch the estimated production time of a block as a Unix timestamp.
HTTP transport instance
Slot number to query
Additional call options
Unix timestamp (seconds since epoch) or null if unavailable
null
const timestamp = await getBlockTime(transport, 100_000);if (timestamp) console.log(new Date(timestamp * 1000)); Copy
const timestamp = await getBlockTime(transport, 100_000);if (timestamp) console.log(new Date(timestamp * 1000));
1.0.0
Fetch the estimated production time of a block as a Unix timestamp.