getParamsFromVote
Get DAO vote params information.
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
Parameters
epochTag (optional)
- Type:
latest_state|latest_confirmed|latest_checkpoint|earliest - Defaut:
latest_state
const PoSReward = await publicClient.getParamsFromVote({
epochTag: "latest_state",
});epochNumber (optional)
- Type:
bigint
const PoSReward = await publicClient.getParamsFromVote({
epochNumber: 1n,
});