Function prepaid_gas

Source
pub fn prepaid_gas() -> Gas
Expand description

The amount of gas attached to the call that can be used to pay for the gas fees.

ยงExamples

use near_sdk::env::prepaid_gas;
use near_sdk::Gas;

assert_eq!(prepaid_gas(), Gas::from_tgas(300));