Skip to content
docs

DEFAULT_GAS

const DEFAULT_GAS: object

Defined in: protocol-staking-native-near/src/constants.ts:52

Prepaid gas per call. The whole prepaid amount is bought upfront at min_gas_purchase_price, so it is kept close to what the calls use. Burnt on mainnet, whole transaction: deposit_and_stake 27.7 Tgas (its restake attaches 20 Tgas to the on_stake_action callback), unstake_all ~5 Tgas, withdraw_all 3.5 Tgas, or 26.5 when it also restakes after an epoch change (the same callback); withdraws with 30 and 45 Tgas prepaid succeeded.

readonly stake: bigint

readonly unstake: bigint

readonly withdraw: bigint