Skip to content
docs

NearPoolInfo

Defined in: protocol-staking-native-near/src/types.ts:105

A staking pool as the chain reports it, with the module’s verdict. Amounts in yoctoNEAR.

apr: number | null

Defined in: protocol-staking-native-near/src/types.ts:134

Delegator APR in percent: enrich’s, else grossApr after the fee, else the network average after the fee. Null until the fee is read (light listings).


aprSource: "enrich" | "protocol" | "network" | null

Defined in: protocol-staking-native-near/src/types.ts:135


codeHash: string | null

Defined in: protocol-staking-native-near/src/types.ts:113


codeHashKnown: boolean | null

Defined in: protocol-staking-native-near/src/types.ts:114


details: boolean

Defined in: protocol-staking-native-near/src/types.ts:112

True when code hash, fee and pause were read live (getPool / getPools); false in listPools.


eligible: boolean

Defined in: protocol-staking-native-near/src/types.ts:138

Can take new stake now: no refusals.


optional extra?: PoolExtra

Defined in: protocol-staking-native-near/src/types.ts:140


factory: PoolFactory | null

Defined in: protocol-staking-native-near/src/types.ts:110

Factory by suffix; null for a non-factory id.


fee: { denominator: number; numerator: number; } | null

Defined in: protocol-staking-native-near/src/types.ts:116

Reward fee as the pool reports it (get_reward_fee_fraction, or the current one of staking-farm’s get_pool_summary).


feePercent: number | null

Defined in: protocol-staking-native-near/src/types.ts:117


grossApr: number | null

Defined in: protocol-staking-native-near/src/types.ts:132

The pool’s last-epoch reward ÷ its stake, annualized, before its fee, percent (validator_reward_paid_prev_epoch); null without data.


id: string

Defined in: protocol-staking-native-near/src/types.ts:106


inCurrentSet: boolean

Defined in: protocol-staking-native-near/src/types.ts:127


inNextSet: boolean

Defined in: protocol-staking-native-near/src/types.ts:128


listed: boolean

Defined in: protocol-staking-native-near/src/types.ts:136


name: string | null

Defined in: protocol-staking-native-near/src/types.ts:108

From the config or enrich.


nextFee: { denominator: number; numerator: number; } | null

Defined in: protocol-staking-native-near/src/types.ts:122

The fee a staking-farm pool already scheduled for the next epoch (next_reward_fee_fraction); null for pools without a schedule or when not read. maxFee and the APR use the higher of the two.


paused: boolean | null

Defined in: protocol-staking-native-near/src/types.ts:124

is_staking_paused; null when not read or missing (a missing method is the ‘pause-unknown’ refusal).


refusals: PoolRefusal[]

Defined in: protocol-staking-native-near/src/types.ts:139


stake: bigint

Defined in: protocol-staking-native-near/src/types.ts:126

Stake in the current validator set (0n when not in it).


uptime: number | null

Defined in: protocol-staking-native-near/src/types.ts:130

Produced / expected blocks and chunks this epoch, percent; null when not in the current set.