fetchSysvarStakeHistory

function fetchSysvarStakeHistory(
    rpc,
    config?,
): Promise<SysvarStakeHistory>;

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

Parameters

ParameterType
rpcRpc<GetAccountInfoApi>
config?FetchAccountConfig

Returns

Promise<SysvarStakeHistory>

On this page