Skip to content
docs

NearStakeResult

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

amount: bigint

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

NearStakeQuote.amount


apr: number | null

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

NearStakeQuote.apr


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.

NearStakeQuote.fee


hash: string

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


hashes: string[]

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


maxStakeable: bigint

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

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

NearStakeQuote.maxStakeable


pool: NearPoolInfo

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

The pool, read live (details: true).

NearStakeQuote.pool


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]).

NearStakeQuote.reserve


transactions: NearTransaction[]

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

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

NearStakeQuote.transactions


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.

NearStakeQuote.upfront


warnings: NearStakingWarning[]

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

NearStakeQuote.warnings