Skip to content
docs

NearUnstakeOptions

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

Options every write shares.

optional allowTimerReset?: boolean

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

Accept that an unstaked balance still unbonding in the pool restarts its 4-epoch wait together with this amount (default false: refused with ‘timer-reset-refused’). Never accepted for an amount below MIN_STAKE.


amount: number | bigint | "all"

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

yoctoNEAR of staked balance to unstake, or 'all' (unstake_all).


optional expected?: NearTransaction[]

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

The transactions of the quote the user confirmed. The write re-plans with fresh reads and refuses with quote-changed when the result differs, so the signer signs what was shown.

NearWriteOptions.expected


optional maxFee?: bigint

Defined in: core/dist/index-i6xtgDlq.d.ts:120

Cap on this write’s worst-case network fee, in native base units. Checked by the chain package on the transaction it is about to sign (EVM: its gas limit × its own gas price), with the tighter of this and the account’s configured cap winning. The kit’s policies.maxFee passes it down.

NearWriteOptions.maxFee


optional pool?: string

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

Pool id; default defaultPool, or the only pool with a staked balance.