DEFAULT_GAS
constDEFAULT_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.
Type Declaration
Section titled “Type Declaration”
readonlystake:bigint
unstake
Section titled “unstake”
readonlyunstake:bigint
withdraw
Section titled “withdraw”
readonlywithdraw:bigint