fetchSysvarEpochRewards

function fetchSysvarEpochRewards(
    rpc,
    config?,
): Promise<
    Readonly<{
        active: boolean;
        distributedRewards: Lamports;
        distributionStartingBlockHeight: bigint;
        numPartitions: bigint;
        parentBlockhash: Blockhash;
        totalPoints: bigint;
        totalRewards: Lamports;
    }>
>;

Fetch the EpochRewards sysvar account using any RPC that supports the GetAccountInfoApi.

Parameters

ParameterType
rpcRpc<GetAccountInfoApi>
config?FetchAccountConfig

Returns

Promise<Readonly<{ active: boolean; distributedRewards: Lamports; distributionStartingBlockHeight: bigint; numPartitions: bigint; parentBlockhash: Blockhash; totalPoints: bigint; totalRewards: Lamports; }>>

On this page