Finance:NEP5

From HandWiki

NEP5 (also NEP-5), is a cryptographic token standard used by the cryptocurrency NEO. It is used by trustless smart contracts on the NEO blockchain.[1]

History

Developed in 2017, NEP5 outlines a token standard for the NEO blockchain that will provide systems with a generalized interaction mechanism for tokenized Smart Contract.[citation needed]

Usage

Switcheo application is a decentralized exchange using NEP5.[2][3]

Technical details

NEP stands for NEO Enhancement Proposal.[4]

The NEP5 aims to give developers a standardized workflow and template to build decentralized applications. All tokens using the NEP5 standard are automatically able to transact with any other token using the same standard.[citation needed]

Functions

An NEP5 token must have the following methods:[citation needed]

 name() returns string  ;[returns the token name]

 symbol() returns string  ;[returns the token symbol]

 decimals() returns byte  ;[returns the number of decimals used by the token - how much the token is divisible]

 

 totalSupply() returns BigInteger  ;[Get the total token supply deployed in the system]

 balanceOf(byte[] account) returns BigInteger  ;[Get the account balance of another account]

 transfer(byte[] from, byte[] to, BigInteger amount) returns bool  ;[Send the amountof tokens from address from to address to]

References