Finance:NEP5
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
- ↑ "neo-project/proposals" (in en). https://github.com/neo-project/proposals/blob/master/nep-5.mediawiki.
- ↑ "NEP5 Tokens to Look Out For - Upcoming NEP5 Projects - Daily Bitcoin, Blockchain & Cryptocurrency News" (in en-GB). https://www.bitguru.co.uk/neo-news/nep5-tokens-to-look-out-for-upcoming-nep5-projects/.
- ↑ "Switcheo Network (SWH) Review - Guide for Beginners | Captain Altcoin" (in en-US). Captain Altcoin. 2018-08-20. https://captainaltcoin.com/switcheo-exchange-review/.
- ↑ "neo-project/proposals" (in en). https://github.com/neo-project/proposals/blob/master/nep-1.mediawiki.