Skip to content
docs

NearUnstakeResult

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

amount: bigint

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

yoctoNEAR moving from staked to unstaked (for ‘all’: the current staked balance).

NearUnstakeQuote.amount


approveHash: null

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


fee: bigint

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

NearUnstakeQuote.fee


hash: string

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


hashes: string[]

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


id: bigint

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

The request’s id for claimWithdrawals({ ids }): poolRequestId(pool).

NearUnstakeQuote.id


pool: string

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

NearUnstakeQuote.pool


resetsTimer: boolean

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

A locked unstaked balance exists and its timer restarts.

NearUnstakeQuote.resetsTimer


transactions: NearTransaction[]

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

NearUnstakeQuote.transactions


unlock: UnlockEstimate | null

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

Unlock of the whole unstaked balance after this unstake (epoch = current + 4); null when the epoch could not be read.

NearUnstakeQuote.unlock


upfront: bigint

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

See NearStakeQuote.upfront: the account must hold this much NEAR to send the unstake.

NearUnstakeQuote.upfront


warnings: NearStakingWarning[]

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

NearUnstakeQuote.warnings


withdrawsFirst: bigint

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

Unlocked unstaked balance withdrawn first in the same transaction (0n when none).

NearUnstakeQuote.withdrawsFirst