getBlockRewardInfo
Get the reward info for all executed blocks in the specified epoch.
Usage
import { } from "./client";
const = await .();import { http, createPublicClient } from 'cive'
import { mainnet } from 'cive/chains'
export const publicClient = createPublicClient({
chain: mainnet,
transport: http(),
})Returns
The reward info object array.
Parameters
epochTag (optional)
- Type:
latest_state|latest_confirmed|latest_checkpoint|earliest - Defaut:
latest_state
const rewardInfo = await publicClient.getBlockRewardInfo({
epochTag: "latest_state",
});epochNumber (optional)
- Type:
bigint
const rewardInfo = await publicClient.getBlockRewardInfo({
epochNumber: 1n,
});