Skip to content

getPoSRewards

Get the rewards information of a PoS epoch.

Usage

example.ts
import { publicClient } from "./client";
const PoSReward = await publicClient.getPoSRewardByEpoch({
  epochNumber: 1n,
});

Returns

PoSReward

Parameters

epochNumber

const PoSReward = await publicClient.getPoSRewardByEpoch({
  epochNumber: 1n, 
});

JSON-RPC Method

pos_getRewardsByEpoch