NearPoolPosition
Defined in: protocol-staking-native-near/src/types.ts:198
The account’s position in one pool (get_account). Amounts in yoctoNEAR.
Properties
Section titled “Properties”canWithdraw
Section titled “canWithdraw”canWithdraw:
boolean
Defined in: protocol-staking-native-near/src/types.ts:204
The pool’s own can_withdraw flag.
name:
string|null
Defined in: protocol-staking-native-near/src/types.ts:200
pool:
string
Defined in: protocol-staking-native-near/src/types.ts:199
poolInfo
Section titled “poolInfo”poolInfo:
NearPoolInfo|null
Defined in: protocol-staking-native-near/src/types.ts:210
Light pool info (from the validator set) plus the fee read for the position check; null when the validator set could not be read.
staked
Section titled “staked”staked:
bigint
Defined in: protocol-staking-native-near/src/types.ts:201
unlock
Section titled “unlock”unlock:
UnlockEstimate|null
Defined in: protocol-staking-native-near/src/types.ts:208
For a locked unstaked balance; null when there is none or it is withdrawable.
unstaked
Section titled “unstaked”unstaked:
bigint
Defined in: protocol-staking-native-near/src/types.ts:202
warnings
Section titled “warnings”warnings:
PositionWarning[]
Defined in: protocol-staking-native-near/src/types.ts:211
withdrawable
Section titled “withdrawable”withdrawable:
bigint
Defined in: protocol-staking-native-near/src/types.ts:206
Unstaked and withdrawable now (canWithdraw ? unstaked : 0n).