Kit
Functions

fetchSysvarClock

fetchSysvarClock(rpc, config?): Promise<Readonly<{ epoch: bigint; epochStartTimestamp: UnixTimestamp; leaderScheduleEpoch: bigint; slot: bigint; unixTimestamp: UnixTimestamp; }>>

Fetches the Clock sysvar account using any RPC that supports the GetAccountInfoApi.

Parameters

ParameterType
rpcRpc<GetAccountInfoApi>
config?FetchAccountConfig

Returns

Promise<Readonly<{ epoch: bigint; epochStartTimestamp: UnixTimestamp; leaderScheduleEpoch: bigint; slot: bigint; unixTimestamp: UnixTimestamp; }>>

On this page