Assets, Ethereum

What Is the Name of the Language Used Within Ethereum to Implement Smart Contracts?

Ethereum is a public, decentralized platform that runs smart contracts: applications that run exactly as programmed without any possibility of fraud or third party interference.

Ethereum is powered by Ether, a crypto asset that serves as a fuel for the network. In order to run applications on Ethereum, developers need to use a programming language.

The most popular language for Ethereum smart contracts is Solidity.

Solidity is a contract-oriented, high-level language for implementing smart contracts. It was influenced by C++, Python and JavaScript and is designed to Target the Ethereum Virtual Machine (EVM).

NOTE: WARNING: Ethereum is a complex system and its language (Solidity) is not intended for use by beginners. Before attempting to use Solidity to implement any smart contracts, it is important to fully understand the language and its associated risks. Any mistakes in coding or misinterpretation of the language can lead to serious security vulnerabilities or loss of funds.

Solidity is statically typed, supports inheritance, libraries and complex user-defined types among other features. The syntax of Solidity is similar to that of JavaScript.

Here is a simple Solidity contract written in version 0.4.21:

pragma solidity ^0.4.21; contract SimpleStorage { uint storedData; function set(uint x) public { storedData = x; } function get() public view returns (uint) { return storedData; } }

The name of the language used within Ethereum to implement smart contracts is Solidity.

Previous ArticleNext Article