Skip to main content

GAS Class

Provides a series of attributes and methods of the native contract GasToken, which contract hash is 0xd2a4cff31913016155e38e474a2c06d08be276cf.

GasToken is also an NEP-17 contract, which inherits all properties and methods of an NEP-17 contract.

Namespace:Neo.SmartContract.Framework.Native

Assembly: Neo.SmartContract.Framework

Syntax#

public class GAS

Properties#

NameDescription
HashGets the contract hash
SymbolGets the symbol, gas
DecimalsGets decimals

Methods#

NameDescription
TotalSupply()Gets the total supply of GAS
BalanceOf(UInt160 account)Gets the balance
Transfer(UInt160 from, UInt160 to, BigInteger amount, object data = null)Transfers GAS
RefuelRefuel (adding fees) for smart contract