NearUnstakeOptions
Defined in: protocol-staking-native-near/src/types.ts:277
Options every write shares.
Extends
Section titled “Extends”Omit<WithdrawalRequestOptions,"amount"|"token">NearWriteOptions
Properties
Section titled “Properties”allowTimerReset?
Section titled “allowTimerReset?”
optionalallowTimerReset?: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
Section titled “amount”amount:
number|bigint|"all"
Defined in: protocol-staking-native-near/src/types.ts:279
yoctoNEAR of staked balance to unstake, or 'all' (unstake_all).
expected?
Section titled “expected?”
optionalexpected?: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.
Inherited from
Section titled “Inherited from”maxFee?
Section titled “maxFee?”
optionalmaxFee?: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.
Inherited from
Section titled “Inherited from”
optionalpool?:string
Defined in: protocol-staking-native-near/src/types.ts:281
Pool id; default defaultPool, or the only pool with a staked balance.