Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

Empowering you to understand your world

Blockchain Development: How to Write an EOS Hello World Smart Contract

If you’re not familiar with EOS, it’s a smart contract platform similar to Ethereum.  In this tutorial we’ll be deploying a hello world smart contract to your own local EOS test net. To follow along with the video below, you’ll need to have the EOS software installed, which can be done by following this link. Currently, only releases for Linux and Mac are available (sorry Windows users!).

To start EOS blockchain development, you will need:

nodeos — The EOS node software to run your own node and create your test net. A node plays a key role in connecting to and interacting with the EOSIO network (main net), or in this case, your own private testnet for development purposes.

cleos — The EOS command-line utility you will use to create/manage your EOS account and deploy your smart contract.

eosiocpp — A command-line utility to compile your smart contract down to Web Assembly (WASM).

If you are using Ubuntu 16.04 or higher, Fedora 27, macOS Mojave, or macOS High Sierra, you won’t have to build EOSIO from source. If you don’t: clone the EOS repository with Git and run the eosio_build.sh and then eosio_install.sh shell scripts at a command prompt. The resulting installation will provide nodeos and cleos.

After the EOS installation is complete, you should be able to run your own node using the command below:

nodeos -e -p eosio --plugin eosio::chain_api_plugin --plugin eosio::wallet_api_plugin --delete-all-blocks --contracts-console

The ‘-e’ argument instructs it to enable block production even if the chain is stale, and the ‘-p’ refers to the producer name.

When your local node is working (you’ll see what to expect when your node is running in the video below), go here to download the EOS contract development toolkit (CDT). This will give you access to the command line tool eosio-cpp which is what you’ll use to deploy your smart contract to the blockchain (see the comptract.sh script in the video below).

When you’re done with all the prerequisite set up, you’ll be ready to follow along with the video!

Share this article
Shareable URL
Prev Post

Collaborative Robot Use in the Food and Agriculture Industry

Next Post

The First 2020 Toyota Supra Sells For $2.1 Million

Leave a Reply

Read next
Subscribe to our newsletter
Get notified when new content is published