Skip to content
docs

NearStakeQuote

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

amount: bigint

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


apr: number | null

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


fee: bigint

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

Upper bound of the network fee, yoctoNEAR (all gas burnt, at the gas price + 10 %). Passes as maxFee.


maxStakeable: bigint

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

What stake can send now: available − reserve − upfront (never below 0).


pool: NearPoolInfo

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

The pool, read live (details: true).


reserve: bigint

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

NEAR the stake leaves on the account: the configured reserve, but at least the upfront of the largest exit ([withdraw_all, unstake]).


transactions: NearTransaction[]

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

Exactly what stake sends: receiverId + actions, no signer / nonce / block hash.


upfront: bigint

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

NEAR the node holds back when it accepts the transaction, beside the deposit: the prepaid gas, bought at min_gas_purchase_price. The unburnt part comes back a few blocks later.


warnings: NearStakingWarning[]

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