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
Parameter | Type |
---|---|
rpc | Rpc <GetAccountInfoApi > |
config? | FetchAccountConfig |
Returns
Promise
<Readonly
<{ epoch
: bigint
; epochStartTimestamp
: UnixTimestamp
; leaderScheduleEpoch
: bigint
; slot
: bigint
; unixTimestamp
: UnixTimestamp
; }>>