getSysvarEpochRewardsEncoder

function getSysvarEpochRewardsEncoder(): FixedSizeEncoder<
    Readonly<{
        active: boolean;
        distributedRewards: Lamports;
        distributionStartingBlockHeight: bigint;
        numPartitions: bigint;
        parentBlockhash: Blockhash;
        totalPoints: bigint;
        totalRewards: Lamports;
    }>,
    81
>;

Returns an encoder that you can use to encode a SysvarEpochRewards to a byte array representing the EpochRewards sysvar's account data.

Returns

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

On this page