getPoSRewardByEpoch
Get rewards information of a PoS epoch by it's correspond PoW epoch number. Only PoW epoch happen's at PoS epoch end will have rewards information. Others will return undefined.
Usage
import { } from "./client";
const = await .({
: 1n,
});import { http, createPublicClient } from 'cive'
import { mainnet } from 'cive/chains'
export const publicClient = createPublicClient({
chain: mainnet,
transport: http(),
})Returns
PoSReward | undefined
Parameters
epochNumber
- Type:
bigint
const PoSReward = await publicClient.getPoSRewardByEpoch({
epochNumber: 1n,
});