Ethereum Blockchain: developing smart contracts
Tags: blockchain, ethereum, programming
Published: 2017-09-18 14:17:19

---
layout: post
title: "Ethereum Blockchain: developing smart contracts"
published: true
tags: blockchain, ethereum, programming
cover_image: "https://thepracticaldev.s3.amazonaws.com/i/ph26pmo77trr8hjbu82v.jpg"
---


<h3>Blockchain technology</h3>

Blockchain is a trusted distributed ledger that maintains a continuously growing number of transactions and data records. 

In fact, it is an innovative technology of decentralized data storage providing a high-security level and enables data manipulation occurred according to certain rules.

This confidence is ensured by the fact that data array is stored at once for each Blockchain participant, meaning that it won’t be enough to simply replace the entire array in one place.

And each subsequent piece of data, a so-called block, contains a hash of the previous block, providing the following benefits:

- It’s impossible to substitute an intermediate block in the finished chain;
A block can’t be changed without changing its hash, therefore it is impossible to make it without breaking the chain integrity.
 
- Having great perspectives for a plenty of industries, Blockchain provides various abilities for developers. For instance, an Ethereum Blockchain platform, serving as an extension to Blockchain and enabling smart contracts.

 

<h3>Ethereum Smart Contracts</h3>
 

</span><a href="https://github.com/slockit/smart-contract"><span style="font-weight: 400;">Smart contracts</span></a><span style="font-weight: 400;"> are programs with contract clauses, determined by the parties and written into the lines of code. 

While each network participant has access to all the data, they automatically trace agreements’ completion and remove any intermediaries.

In fact, an Ethereum smart contract represents an ordinary contract, but the fixing goes not legally, but technically. So, there is no need for a notary or any other authorized administrator, recognized by both parties.

In Blockchain, smart contracts are responsible for data manipulation. Each smart contract has a small database and provides methods for changing its data.

Since contracts are replicated across all nodes, their databases also are. Every time a user calls a method from a contract, thus changing the data, this command is replicated and repeated by the entire network. This process enables to create a distributed consensus to fulfill agreements.

Noteworthy that Ethereum smart contracts describe what data to store in the ledger as well as a set of functions for performing operations on these data. 

Functions’ execution is carried out through the interface, provided by each contract and generated from the source code separately from the compilation. Also, the interface allows executing of the binary code.

Data changes occur via transactions, <b>each transaction has the following structure:</b>


- Transaction sender;
- Transaction recipient;
- The amount of sending currency;
- Price per gas unit;
- Gas limit per transaction;
- Arbitrary data (optional).

&nbsp;
Learn more about <b></span><a href="https://smartym.pro/blog/ethereum-blockchain-platform-delving-into-smart-contract-development/"><span style="font-weight: 400;">Ethereum network and Smart Contract development.</span></a><span style="font-weight: 400;"></b>

Also, find out </span><a href="https://www.ethereum.org/greeter"><span style="font-weight: 400;">how to create a Hello, World smart contract.</span></a><span style="font-weight: 400;">

&nbsp;