fetchSysvarSlotHistory

function fetchSysvarSlotHistory(
    rpc,
    config?,
): Promise<SysvarSlotHistory>;

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

Parameters

ParameterType
rpcRpc<GetAccountInfoApi>
config?FetchAccountConfig

Returns

Promise<SysvarSlotHistory>

On this page