getParamsFromVote
Get DAO vote params information.
Usage
example.ts
import { publicClient } from "./client";
const PoSReward = await publicClient.getParamsFromVote();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,
});