Version
Show / Hide Table of Contents

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.Services.Neo

Assembly: Neo.SmartContract.Framework

Syntax

public class NEO

Attributes

NameDescription
NameGets the name, NEO
SymbolGets the symbol, neo
DecimalsGets decimals

Methods

NameDescription
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