fetchSysvarClock
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;
}>>