Introduction to a smart contract on blockchain
Table of Contents
A smart contract is a computer protocol intended to facilitate, verify, or enforce the negotiation or performance of a contract. Since the launch of Ethereum, we deal with a smart contract on blockchain which is a kind of computer programm that is stored on a blockchain and is used to automate the execution of an agreement. Let’s see how it works!
Smart Contract on blockchain – needed knowledge
Before we start creating example of a smart contract on blockchain I would like to introduction some terminology that you should known. What technologies and tools we need to create and deploy a Smart Contract to the Ethereum network. In this article I will show you how source code looks like, how to compile with Solidity compiler. Also how to create private network for testing.
You should know basic knowledge about:
- Linux and CLI
- Ethereum network
Tools we need for a smart contract on blockchain
- Solidity compiler (solcjs)
- Ethereum client: geth
Ethereum have multiple clients. Mentioned above geth but also Parity or cpp_ethereum. Parity is good for general group of users because it have Web UI, where we can find your wallet, transactions list, transactions queues even console.
To create private Ethereum network and blockchain we need Ethereum Client (called nodes). Ethereum network is Peer to Peer network.