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.
Properties
Section titled “Properties”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
Section titled “aprSource”aprSource:
"enrich"|"protocol"|"network"|null
Defined in: protocol-staking-native-near/src/types.ts:135
codeHash
Section titled “codeHash”codeHash:
string|null
Defined in: protocol-staking-native-near/src/types.ts:113
codeHashKnown
Section titled “codeHashKnown”codeHashKnown:
boolean|null
Defined in: protocol-staking-native-near/src/types.ts:114
details
Section titled “details”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
Section titled “eligible”eligible:
boolean
Defined in: protocol-staking-native-near/src/types.ts:138
Can take new stake now: no refusals.
extra?
Section titled “extra?”
optionalextra?:PoolExtra
Defined in: protocol-staking-native-near/src/types.ts:140
factory
Section titled “factory”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
Section titled “feePercent”feePercent:
number|null
Defined in: protocol-staking-native-near/src/types.ts:117
grossApr
Section titled “grossApr”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
Section titled “inCurrentSet”inCurrentSet:
boolean
Defined in: protocol-staking-native-near/src/types.ts:127
inNextSet
Section titled “inNextSet”inNextSet:
boolean
Defined in: protocol-staking-native-near/src/types.ts:128
listed
Section titled “listed”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
Section titled “nextFee”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
Section titled “paused”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
Section titled “refusals”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
Section titled “uptime”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.