Skip to content
docs

NearPoolPosition

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

The account’s position in one pool (get_account). Amounts in yoctoNEAR.

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: 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: bigint

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


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: bigint

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


warnings: PositionWarning[]

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


withdrawable: bigint

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

Unstaked and withdrawable now (canWithdraw ? unstaked : 0n).