Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.42 KB

File metadata and controls

32 lines (22 loc) · 1.42 KB

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

Attributes

Name Description
Hash Gets the contract hash
Symbol Gets the symbol, gas
Decimals Gets decimals

Methods

Name Description
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
Refuel Refuel (adding fees) for smart contract