You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following describes standard functions a token contract can implement.
Specification
Token
Contracts that work with tokens
Methods
NOTE: The contract developers must implement all function if they want to work with the specified tokens.
TotalSupply
privatestaticBigIntegerTotalSupply()
Get the total token supply
Name
privatestaticstringName()
Get the name of token
Symbol
privatestaticstringSymbol()
Get the symbol of token, symbol used to represent a unit of token
Decimals
privatestaticBigIntegerDecimals()
Get decimals of token
BalanceOf
privatestaticBigIntegerBalanceOf(object[]args)
Get the account balance of another account with address which is first element of args and type is byte[]
Transfer
privatestaticboolTransfer(object[]args)
function that is always called when someone wants to transfer tokens. The first element is sender address and type is byte[], the second element is receiver address and type is byte[], the third element is the number of token and type is BigInteger .
Event
Transferred
privatestaticvoidTransferred(object[]args)
Triggered when tokens are transferred. args is the same with transfer.
The text was updated successfully, but these errors were encountered:
Proposal
Name: NEP-5
Title:Token Standard
Author: luodanwg [email protected], tanyuan [email protected]
Status: Draft
Created: 10 August 2017
Resolution: Proposals
Template: NEO_NEP_5
Abstract
The following describes standard functions a token contract can implement.
Specification
Token
Contracts that work with tokens
Methods
NOTE: The contract developers must implement all function if they want to work with the specified tokens.
TotalSupply
Get the total token supply
Name
Get the name of token
Symbol
Get the symbol of token, symbol used to represent a unit of token
Decimals
Get decimals of token
BalanceOf
Get the account balance of another account with address which is first element of args and type is byte[]
Transfer
function that is always called when someone wants to transfer tokens. The first element is sender address and type is byte[], the second element is receiver address and type is byte[], the third element is the number of token and type is BigInteger .
Event
Transferred
Triggered when tokens are transferred. args is the same with transfer.
The text was updated successfully, but these errors were encountered: