Version
Show / Hide Table of Contents

GAS Class

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

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

Namespace: Neo.SmartContract.Framework.Services.Neo

Assembly: Neo.SmartContract.Framework

Syntax

public class GAS

Attributes

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) Transfers GAS