typescript-sdk

Home > @3rdweb/sdk > estimateBlockAtTime

estimateBlockAtTime() function

Given a time in second, return the block number that the time is in.

Signature:

export declare function estimateBlockAtTime(timeInEpochSeconds: number, provider: Provider): Promise<number>;

Parameters

Parameter Type Description
timeInEpochSeconds number The time in seconds.
provider Provider  

Returns:

Promise<number>