Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature] Implement ICO methods

See original GitHub issue

The release of the NEX ICO Template introduces several handy methods that are interesting. Specifically,the crowdsale handling methods that allow the client to check if the sales is active and if the address is whitelisted.

While this set of methods are not an official standard, the rise of contracts following these set of standard has been increasing and it is beneficial to include them as part of the API offering.


  • Comb through the NEX ICO template and find the methods to implement. Focus on methods that are useful from a client perspective (what methods are useful for a light wallet?)
  • These methods are to belong in the api/crowdsale.js file.


  • The methods you are crafting are probably similar to what is found in api/nep5.js

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

snowypowerscommented, Mar 16, 2018

I have just read through the Orbis Contract and while it is nice that they are using C#, there is now a difference in methods:


crowdsale_status returns a boolean or a integer depending on whether have you contributed. crowdsale_available returns an integer


checkKYC is the equivalent of crowdsale_status but returns strings ‘on’ or ‘off’ C# does not offer the crowdsale_available equivalent

jeroenptrscommented, Mar 15, 2018

@snowypowers so there are three functions that seem interesting to me, two of which are crowdsale related and the other is mintTokens:

  • crowdsale_status: gets the KYC Status of an address
  • crowdsale_available: the amount of tokens left for sale in the crowdsale
  • mintTokens: is this already implemented? Exchange NEO/GAS for the token

This one is more general, but seems interesting to add as well:

  • circulation: the total amount of tokens in circulation

The rest are token owner functions

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Launch a Successful ICO in 10 Easy Steps - Velvetech
The key principle of ICO work is to raise capital by leveraging blockchain technology to issue and distribute tokens. It involves financial ...
Read more >
ICO Development Checklist: 11 Easy Steps To Succeed
An initial coin offering (ICO) is a popular fundraising method that involves selling digital assets to raise funds for your blockchain-based project.
Read more >
Initial Coin Offering (ICO): Coin Launch Defined, with Examples
Investors can generally use fiat or digital currency to buy the new tokens, and it's increasingly common for investors to pay using other...
Read more >
ICO 101: A beginner's guide to raising capital using ...
An initial coin offering (ICO) is a way to raise capital for your project by selling blockchain-based digital assets.
Read more >
What Are ICOs and How Do They Work? - SGR Law
ICOs are another form of cryptocurrency that businesses use in order to raise capital. Through ICO trading platforms, investors receive unique ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found