Skip to main content

Developing Smart Contract on the NEO Blockchain (ep5) - Deploying a NEP-5 Smart Contract (part 2)

This episode 5 of how to start develop Smart Contract on NEO by our CTO, Dominic. Last article was part 1 of starting on a NEP5 smart contract. Dom shared about how to install neo-boa and fixed up a NEP-5 smart-contract to make it our own. We are now at part 2 for compile and deploy. You can see the full series at his Medium account.


Step 1: Compile the contract code

Open up a command prompt type



sudo -i 

Continue on to...

cd neo-boa/ source venv/bin/activate cd ../smart-contract python3.6 

*upon completion you will see* ico_template.avm

Step 2: Import the contract — Using the same Ubuntu prompt:

cd ../neo-python source venv/bin/activate np-prompt -p  

Now that you are in the NEO prompt, open your admin wallet: open wallet testWallet1

import contract ../smart-contract/ico_template.avm "" 0710 05 True False # Fill out the contract details [Contract Name] > nodis [Contract Version] > 1 [Contract Author] > nodis [Contract Email] > nodis [Contract Description] > nodis 

Your contract is now on the blockchain!

Step 3: Deployment

Currently, the tokens are all locked up in the contract. Ultimately, we need to call...


This is a function on the contract to transfer all the tokens to the admin wallet. Our first task is to find the hash of the contract.

contract search

in our case, the script hash is 0x3ffb8a621f461559a90943986bc813b8fcf6ac0a

Now type:

testinvoke  deploy [] 

Input your password when prompted to invoke on the network.

Done! Check out your newfound wealth by typing...


BONUS command:

testinvoke  name []

The value is in hex, we can use an online tool to decipher it. Ours says ‘Nodis Token’.


You can see my profile for a link to join our Telegram to learn more about our project!

Original content came from ->

submitted by /u/willchen319
[link] [comments]

Popular posts from this blog

The Basics of Cryptocurrency and the Way It Works

In the times that we're living in, technology has made unbelievable advancement as compared to any time in the past. This evolution has redefined the life of man on almost every aspect. In fact, this evolution is an ongoing process and thus, human life on earth is improving constantly day in and day out. One of the latest inclusions in this aspect is cryptocurrencies.Cryptocurrency is nothing but digital currency, which has been designed to impose security and anonymity in online monetary transactions. It uses cryptographic encryption to both generate currency and verify transactions. The new coins are created by a process called mining, whereas the transactions are recorded in a public ledger, which is called the Transaction Block Chain.Little backtrackEvolution of cryptocurrency is mainly attributed to the virtual world of the web and involves the procedure of transforming legible information into a code, which is almost uncrackable. Thus, it becomes easier to track purchases an…

Forex MegaDroid - The Trading Robot That Applies Two Trading Strategies

It is important for novice traders to gain the basic knowledge of Forex trading at the very beginning of their attempts. After you get the rough ideas of what those charts, tables and axis mean, then you should study in details about which trading style suits you the most. Currency trading involves completely different styles. People should opt for their own strategies, but basically there are two primary types of analysis: the technical and the fundamental. A few traders would choose one of the two, some will combine them, others just follow what the robot tells them. Forex Megadroid belongs one of the few automated programs that applies both trading strategies. Forex traders who choose to use technical analysis always base their analyzes on the currency market trend. They read charts and recognize the common patterns for the price movement. Different traders may employ various reporting system to make the analysis easy to read or update. For the users of technical analys…

Virtual Currency Games

Every little boy's (and many grown men's) dream of making a living by playing video games is edging closer to reality. The recent release of HunterCoin and the in-development VoidSpace, games which reward players in digital currency rather than virtual princesses or gold stars point towards a future where one's ranking on a scoreboard could be rewarded in dollars, and sterling, euros and yen.The story of the millionaire (virtual) real estate agent... Digital currencies have been slowly gaining in maturity both in terms of their functionality and the financial infrastructure that enables them to be used as a credible alternative to non-virtual fiat currency. Though Bitcoin, the 1st and most well known of the crypto-currencies was created in 2009 there have been forms of virtual currencies used in video games for more than 15 years. 1997's Ultima Online was the first notable attempt to incorporate a large scale virtual economy in a game. Players could collect gold coins …