getSysvarEpochRewardsDecoder

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

Returns a decoder that you can use to decode a byte array representing the EpochRewards sysvar's account data to a SysvarEpochRewards.

Returns

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

On this page