Solidity Functions

Solidity Tutorial

Solidity tutorial is designed for those who want to learn Solidity programming language and for experienced Solidity developers looking to gain a deeper understanding of the language. The following Solidity tutorial explains the basic and advanced concepts of Solidity programming language and provides a firm foundation in the language that will enable you to begin developing your own projects and expanding on your knowledge. So let’s deep dive into the important topics of Solidity language. 

Table of Content

  • Solidity Basics
  •  Data Types in Solidity
  • Variable in Solidity
  • Operators in Solidity
  • Control Flow in Solidity
  • Solidity Functions
  • Reference & Mapping Types in Solidity
  • Type Conversions in Solidity
  • Solidity Special Variables
  • Solidity Advanced Concepts
  • Misc
  • What is Ethereum?
  • The Ethereum Virtual Machine (EVM)
  • Smart Contracts

Solidity is an object-oriented and high-level language for implementing Smart contracts. Solidity is a curly-bracket language designed to target the Ethereum Virtual Machine(EVM), It is influenced by C++, Python, and JavaScript. Solidity is statically typed and supports inheritance, libraries, and complex user-defined types among features. With this, you can create contracts for users such as voting, crowdfunding, blind auctions, and multi-signature wallets.

Similar Reads

Solidity Basics

Introduction to Solidity How to Install Solidity on MacOS?  How to Install Solidity on Windows? Introduction to Solidity Compiler Basic Syntax of Solidity Keywords in Solidity Solidity “Hello World” Program How Does Solidity Work? Comments in Solidity...

Data Types in Solidity

Solidity Data Types Integers in Solidity Fixed Point Numbers in Solidity Address in Solidity Bytes in Solidity...

Variable in Solidity

Solidity Variables State Variables in Solidity Local Variable in Solidity Global Variables in Solidity Variable Scope in Solidity...

Operators in Solidity

Solidity Operators Arithmetic Operators in Solidity Comparison Operators in Solidity Logical  Operators in Solidity Assignment Operators in Solidity Ternary Operators in Solidity...

Control Flow in Solidity

Solidity Decision Making If Statement in Solidity If-Else Statement in Solidity If-Else-If ladder in Solidity Solidity Loops For loop in Solidity While Loop in Solidity Do while loop in Solidity Solidity Break and Continue Statements...

Solidity Functions

Solidity Functions Solidity Function Modifiers Function visibility specifier Solidity View and Pure Functions Solidity Fallback Function Solidity Function Overloading  Solidity Mathematical Operations Hashing in Solidity...

Reference & Mapping Types in Solidity

Reference Types in Solidity Solidity Strings Solidity Arrays Solidity Dynamic Arrays  Solidity Enums and Structs Solidity Mappings...

Type Conversions in Solidity

Type conversion  Implicit Conversions Explicit Conversions...

Solidity Special Variables

Solidity Special Variables Solidity Ether Units Time Units...

Solidity Advanced Concepts

Storage vs Memory in Solidity Solidity Libraries Solidity Basics of Contracts Solidity Ownable contracts  Solidity Polymorphism Solidity Inheritance Solidity Encapsulation Solidity Constructors Solidity Abstract Contracts Solidity Basic of Interfaces Solidity Assembly Solidity Events  Solidity Error Handling...

Misc

Creating dApps using the Truffle Framework Solidity – Deploy a Smart Contract for Marks Management System Steps to Execute Solidity Smart Contract using Remix IDE What is Hashing in Solidity? How to use MetaMask to Deploy a Smart Contract in Solidity (Blockchain)? Random Number Generator in Solidity using keccak256 How to use GANACHE Truffle Suite to Deploy a Smart Contract in Solidity (Blockchain)? Creating a Smart Contract that Returns the Address and Balance of the Owner using Solidity Smart Contract to Store Employee Details What is Escrow Smart Contract? Build a To-do List Web Application Powered by Blockchain What is Wallet Smart Contract? What is a Decentralized Voting Application (DApps)? How to Simply Deploy a Smart Contract on Ethereum? Flutter and Blockchain – Hello World Dapp Application Binary Interface(ABI) in Ethereum Virtual Machine Deploying Smart Contract on Test/Main Network Using Truffle Interacting With Ethereum Smart Contract Using Web3js Setting Up Smart Contract Development Environment...

What is Ethereum?

Ethereum is the Do it Yourself platform for Decentralized programs also known as D apps – decentralized apps. The Ethereum platform has thousands of independent computers running it which means it’s fully decentralized. Once a program is deployed to the Ethereum Network these computers, also known as nodes, will make sure it is executed as written. Ethereum is the infrastructure for running D apps worldwide. It’s not a currency but it’s a platform. The currency used to incentivize the network is called Ether....

The Ethereum Virtual Machine (EVM)

The Ethereum Virtual Machine which is also known as EVM . When a smart contract runs on Ethereum it’s basically executed on Ethereum virtual machine. The Ethereum network is composed of computer networks which is called nodes. Each node runs on the Ethereum software. The EVM runs inside each of these Ethereum instances. The role of the EVM is to run smart contracts. The EVM is a state machine in input there is a state of the external blockchain in output the state has been updated after a transaction has been applied. The state of the blockchain is a mapping of accounts identified by the address to four fields the non-integer that is incremented for each transaction .The EVM can be executed only in two modes read-only mode and write mode only....

Smart Contracts

The blocks of code represents any type of contracts then this is called as Smart Contracts . It is a computer protocol intended to digitally facilitate , verify, or enforce the negotiation or performance of a contract. Smart contracts allow the performance of credible transactions without  third parties . These transactions are trackable and irreversible. In simple words, Smart Contracts are plan of codes which you run on a theorem network but basically they are build for contracts ....

Conclusion

In the Solidity Tutorial article, we have provided an introduction to Solidity and various resources associated with it. It covers concepts like operators, control flow, data types, variables, etc. After completing this tutorial, you will have the necessary knowledge to write your own Solidity programs and be able to become a skilled Solidity developer....

FAQs on Solidity

Q1. Is Solidity programming language easy to learn?...