Home > @3rdweb/sdk > estimateBlockAtTime
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>;
Parameter | Type | Description |
---|---|---|
timeInEpochSeconds | number | The time in seconds. |
provider | Provider |
Returns:
Promise<number>