Neo Class
Provides a series of attributes and methods of the native contract NeoToken, which contract hash is 0xef4073a0f2b305a38ec4050e4d3d28bc40ea63f5.
NeoToken is also an NEP-17 contract that inherits all NEP-17 specific attributes and methods.
Namespace:Neo.SmartContract.Framework.Native
Assembly: Neo.SmartContract.Framework
Syntax#
public class NEOProperties#
| Name | Description |
|---|---|
| Name | Gets the name, NEO |
| Symbol | Gets the symbol, neo |
| Decimals | Gets decimals |
Methods#
| Name | Description |
|---|---|
| TotalSupply() | Gets the total supply of NEO |
| BalanceOf(UInt160 account) | Gets the balance |
| Transfer(UInt160 from, UInt160 to, BigInteger amount, object data = null) | Transfers NEO |
| GetGasPerBlock() | Gets the number of GAS generated for each block |
| UnclaimedGas(UInt160 account, uint end) | Gets the number of unclaimed GAS |
| RegisterCandidate(ECPoint pubkey) | Registers as a candidate |
| UnRegisterCandidate(ECPoint pubkey) | Unregisters as a candidate |
| Vote(UInt160 account, ECPoint voteTo) | Votes for candidates |
| GetCandidates() | Gets candidates list |
| GetCommittee() | Gets committee members list |
| GetNextBlockValidators() | Gets validators list for the next block |
| GetAccountState(DataCache snapshot, UInt160 account) | Gets the latest votes of the specified account |