SlideShare a Scribd company logo
INTRODUCTION TO
SOLIDITY
101blockchains.com
What Is
Solidity?
Solidity is a type of object-
oriented programming language.
This programing language is
developed specifically for smart
contracts.
This type of language is widely
used in creating smart contracts
features in blockchain platforms.
It’s influenced by C++, JavaScript
and Python. Solidity also uses
Ethereum Virtual Machine to
function properly.
Concepts You Should Know to
Understand Solidity
Ethereum is an open-source blockchain platform
that offers smart contract facilities. Solidity was
first introduced as a new type of programing
language for the Ethereum platform.
Ether is the primary token for the platform. This
platform is dedicated to developers for helping
them develop and deploy decentralized
applications.
Ethereum
Concepts You Should Know to
Understand Solidity
Smart contracts are a type of automated digital
contract. Here, parties within the contract will set
up specific rules and based on that rules, the
contracts will get executed.
Developers use the Solidity programming language
to develop smart contracts. Using Solidity, you can
program the contracts to do any type of task.
Smart Contracts
Concepts You Should Know to
Understand Solidity
Ethereum Virtual Machine is a crucial part of
understanding Solidity. EVM offers a runtime
environment for smart contracts. Using EVM, smart
contracts can execute their core objectives with
higher security.
It’s also very effective in preventing DOS or Denial-of-
Service attacks. EVM comes with a specific set of
codes or instructions to run specific tasks within the
execution environment.
Ethereum Virtual Machine
{ }
Js
( )
</>
Different Methods of Setting Up
Solidity Compiler Environment
Remix
Node.js/ npm
Docker Image
Binary Packages
Remix: Remix IDE is an application that provides plugins and a development
environment for smart contracts. Users can use this application online without
installing any software for the environment.
Node.js/npm: This is the easiest way to set up the environment. Here, you will install a
solidity compiler called solc-js. However, solc-js offer limited functionalities for
accessing the compiler.
Docker Image: Docker image offers simple steps in setting up the environment. Docker
images offer a template to build a container for running the Solidity compiler.
Binary Packages: Binary packages are archive files that will have all directories and files
for installing the Solidity compiler on your device.
Pragma: In Solidity, a pragma language will specify how the
compiler will process any type of input. Typically, the first line
of code in Solidity based smart contracts contains the pragma.
Contract: uintstoredData component within the code will
denote the Solidity contract. This part will contain all the data
and code needed for locating a particular address within the
blockchain.
File Importing: Solidity offers similar support for file import
systems like JavaScript.
Understanding the Solidity Syntax
Alias
Auto
Unchecked
Sizeof
Copyof
Define
Override
Switch
Developers have to learn about reserved keywords for Solidity to fully
understand the logic behind each contract. Some of these keywords are:
Reserved Keywords
Variables are only locations that are reserved for storing
values. Thus, users can reserve any amount of memory for
a certain variable.
Solidity comes with a vast list of value types, such as
Boolean, double floating-point, integers, character, etc.
The operating system will be responsible for allocating
the memory and selecting the data to store for a
particular variable.
Value Types in Solidity
Unsigned and signed fixed-point numbers varying in sizes
8 bits to 256 bits Unsigned integer
8 bits to 256 bits Signed integer
Boolean
Signed fixed-point number
Unsigned fixed-point number
Data Types
State Variable: Users can locate the state variables
within the contract storage where values are
permanently stored.
Local Variable: Users can find the value of any local
variables within the defining function. This value is
not permanently stored.
Global Variables: Global variables help in fetching
data or information from the blockchain platform
and any associated transaction processes.
HTML
JS
CSS
JAV A
P HP
C++
</>
Variables in Solidity
Solidity Use Cases
Financial Services
Upgrading Contracts
Data Storage
Trade Finance
Digital Identity
Financial
Services
Using Solidity, it’s possible to
offer smart contracts facilities to
financial service providers. It can
reduce errors within contracts
and help to make the process
transparent.
Solidity based smart contracts
can also streamline cross-border
payments, insurance claims,
national bonds, mortgages, etc.
Upgrading
Contracts
Solidity offers the option to
create contracts that can be
upgradeable.
As blockchain is immutable, once
a contract is established, it can’t
be altered. However, Solidity
allows contracts to interact with
one another and call a contract
to perform a specific logic.
Trade
Finance
Solidity smart contracts can help
to streamline the issuing of trade
finance documentation that
takes up a lot of resources and
time.
It can help to reduce the risks of
error while maintaining a fast
execution time.
Data
Storage
Smart contracts based on Solidity
can act as data storage for
valuable information or
documents.
Here, Solidity can define the file
type and separately store those
data. When needed, this type of
contract can be called by other
contracts for using the stored
data.
Digital
Identity
Solidity based smart contracts
can help to solve issues related to
identity thefts and data
monopoly.
These contracts are a good
option for storing confidential
information, as it allows the user
to have full control over the data.
Top Solidity Issues
Reentrancy
Clearing Mappings
Unexpected Ether
Default Visibilities
Timestamp Manipulation
Unchecked External Call
Costly Loops and Gas Limit
Arithmetic Precision
Relying On tx.origin
Overflow and Underflow
Learn More About
Solidity
Ethereum Development
Fundamentals course
https://academy.101blockchains.com/courses/
ethereum-development-fundamentals


The Complete Ethereum
Technology Course
https://academy.101blockchains.com/courses/et
hereum-technology-course
101 Blockchains Certifications
Certified Enterprise
Blockchain Professional
Certified Enterprise
Blockchain Architect
Certified Blockchain
Security Expert
https://academy.101blockchains.com/cour
ses/certified-enterprise-blockchain-
architect
https://academy.101blockchains.com/cours
es/certified-blockchain-security-expert
https://academy.101blockchains.com/
courses/blockchain-expert-
certification
Why You Must Go With 101 Blockchains
Certification Courses?
High-Quality Research Information
First-class Training Content


Interactive Exercises
Flexible Learning Using Modular
Approach
Access to Bonus Training Materials
Various Training Strategies for Faster
Learning
Tangible Proof of Course Completion
Weekly Hands-on Assignments
Professional Instructors
Premium Support
Free Resources
Enterprise Blockchains Fundamentals - Free Course
Blockchain Webinars
Blockchain Conferences
Access Free Resources Now!
Blockchain Glossary
Blockchain Flash Cards
Blockchain Presentations
Blockchain Infographics
Trusted By 30,000+ Professionals!
Read real stories on Trustpilot and G2Crowd.
500+ reviews
The presentation is not intended to provide any investment advice and should not be
taken as such. Claims made in this presentation do not constitute investment advice
and should not be taken as such. Do your own research!
While the information contained in this document and presentation has been
obtained from sources believed to be reliable, 101 Blockchains disclaims all
warranties as to the completeness or accuracy.
Although 101 Blockchains research and training may address business, financial,
investment and legal issues, 101 Blockchains does not provide any business, financial,
legal or investment advice and this training should not be construed or used as such.
101 Blockchains shall not be responsible for any loss sustained by any person who
relies on this presentation.
Disclaimer
Thank You
© 2021 101 Blockchains. All rights reserved. This document may not be distributed, transmitted or reproduced in any form or by any means without
101 Blockchains’ prior written permission. While the information contained in this document has been obtained from sources believed to be reliable,
101 Blockchains disclaims all warranties as to the completeness or accuracy. Although 101 Blockchains research may address business, financial,
investment and legal issues, 101 Blockchains does not provide any business, financial, legal or investment advice and this document should not be
construed or used as such. 101 Blockchains shall not be responsible for any loss sustained by any person who relies on this publication.

More Related Content

PPTX
Introduction to Solidity and Smart Contract Development (9).pptx
PPTX
solidity programming.pptx
PDF
Examples of Smart Contracts
PDF
Public Vs. Private Keys
PPTX
System software
PDF
Ethereum in a nutshell
PDF
Blockchain Fundamentals - Top Rated for Beginners
Introduction to Solidity and Smart Contract Development (9).pptx
solidity programming.pptx
Examples of Smart Contracts
Public Vs. Private Keys
System software
Ethereum in a nutshell
Blockchain Fundamentals - Top Rated for Beginners

What's hot (20)

PPTX
Blockchain Consensus Protocols
PDF
Blockchain Security and Privacy
PDF
Programming smart contracts in solidity
PPTX
Learning Solidity
PPTX
What is A Smart Contract? | Smart Contracts Tutorial | Smart Contracts in Blo...
PPT
Secure shell ppt
PDF
Ethereum-Cryptocurrency (All about Ethereum)
PPTX
Write smart contract with solidity on Ethereum
PPTX
Blockchain 101 by imran bashir
PDF
Blockchain: The New Technology and Its Applications for Libraries
PPTX
Blockchain Introduction Presentation
PPTX
Solidity
PDF
Introduction to Blockchain
PPTX
Blockchain 2.0
PPTX
Blockchain 101
PDF
An Introduction to Blockchain Technology
PDF
Decentralization in blockchain
PPTX
Blockchain Technology
PPTX
Smart Contract & Ethereum
Blockchain Consensus Protocols
Blockchain Security and Privacy
Programming smart contracts in solidity
Learning Solidity
What is A Smart Contract? | Smart Contracts Tutorial | Smart Contracts in Blo...
Secure shell ppt
Ethereum-Cryptocurrency (All about Ethereum)
Write smart contract with solidity on Ethereum
Blockchain 101 by imran bashir
Blockchain: The New Technology and Its Applications for Libraries
Blockchain Introduction Presentation
Solidity
Introduction to Blockchain
Blockchain 2.0
Blockchain 101
An Introduction to Blockchain Technology
Decentralization in blockchain
Blockchain Technology
Smart Contract & Ethereum
Ad

Similar to Introduction To Solidity (20)

PPTX
Ethereum smart contract development company
PPTX
Top 8 blockchain based smart contract platforms
PDF
Defi smart contract development company
PDF
Smart contract development top considerations
PPTX
How to design, code, deploy and execute a smart contract
PDF
What is Solidity basic concepts_.pdf
PPTX
Do Smart Contract Matter To Become A Blockchain Developer
PDF
Hyperledger development &amp; smart contract development
PPTX
Top 10 Of The Best Tools For Blockchain Development
PPTX
The best smart contract platforms in 2021
PPTX
Blockcchain development services | codezeros
PPTX
Top 8 Key Features of Crypto Launchpads to Watch in 2025?
PDF
Encode Educate session 2 - Learn to code using Concordium
PPTX
Smart contracts
PPTX
CCS339 Unit V BLOCKCHAIN APPLICATIONS .pptx
PPTX
Block chain application is explained in detail
PDF
DWeb and Civil Society: An Introduction For Makers
PPTX
Hyperledger fabric
PDF
Introduction To The New Era of DeFi Blockchains.pdf
PDF
Interesting Facts About Ethereum Smart contract Development
Ethereum smart contract development company
Top 8 blockchain based smart contract platforms
Defi smart contract development company
Smart contract development top considerations
How to design, code, deploy and execute a smart contract
What is Solidity basic concepts_.pdf
Do Smart Contract Matter To Become A Blockchain Developer
Hyperledger development &amp; smart contract development
Top 10 Of The Best Tools For Blockchain Development
The best smart contract platforms in 2021
Blockcchain development services | codezeros
Top 8 Key Features of Crypto Launchpads to Watch in 2025?
Encode Educate session 2 - Learn to code using Concordium
Smart contracts
CCS339 Unit V BLOCKCHAIN APPLICATIONS .pptx
Block chain application is explained in detail
DWeb and Civil Society: An Introduction For Makers
Hyperledger fabric
Introduction To The New Era of DeFi Blockchains.pdf
Interesting Facts About Ethereum Smart contract Development
Ad

More from 101 Blockchains (20)

PDF
Web3 Fundamentals
PDF
FinTech Guide for Beginner's
PDF
Web 3.0 - A Detailed Guide
PDF
Frequently Asked Questions About Metaverse
PDF
NFTs and Their Role in The Metaverse
PDF
Is Metaverse The Next Big Thing?
PDF
5 Best Metaverse Games to Play
PDF
Top 5 Metaverse Tokens To Watch
PDF
An Introduction To Metaverse
PDF
Disadvantages of Blockchain
PDF
Crypto Wallet Types Explained
PDF
Top 5 DeFi Applications
PDF
PoW vs. PoS - Key Differences
PDF
How NFT Works
PDF
An Ultimate Guide to NFT Applications
PDF
Know Everything About Business Model Innovation
PDF
How to Kickstart Career in DeFi?
PDF
How To Start A Career In The NFT Space?
PDF
What Is Bitcoin And How Does It Work?
PDF
How To Mint An NFT?
Web3 Fundamentals
FinTech Guide for Beginner's
Web 3.0 - A Detailed Guide
Frequently Asked Questions About Metaverse
NFTs and Their Role in The Metaverse
Is Metaverse The Next Big Thing?
5 Best Metaverse Games to Play
Top 5 Metaverse Tokens To Watch
An Introduction To Metaverse
Disadvantages of Blockchain
Crypto Wallet Types Explained
Top 5 DeFi Applications
PoW vs. PoS - Key Differences
How NFT Works
An Ultimate Guide to NFT Applications
Know Everything About Business Model Innovation
How to Kickstart Career in DeFi?
How To Start A Career In The NFT Space?
What Is Bitcoin And How Does It Work?
How To Mint An NFT?

Recently uploaded (20)

DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Electronic commerce courselecture one. Pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Spectroscopy.pptx food analysis technology
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
Cloud computing and distributed systems.
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Machine learning based COVID-19 study performance prediction
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Empathic Computing: Creating Shared Understanding
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
The AUB Centre for AI in Media Proposal.docx
Spectral efficient network and resource selection model in 5G networks
Electronic commerce courselecture one. Pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Network Security Unit 5.pdf for BCA BBA.
Unlocking AI with Model Context Protocol (MCP)
Encapsulation_ Review paper, used for researhc scholars
Reach Out and Touch Someone: Haptics and Empathic Computing
Spectroscopy.pptx food analysis technology
Chapter 3 Spatial Domain Image Processing.pdf
Understanding_Digital_Forensics_Presentation.pptx
Programs and apps: productivity, graphics, security and other tools
Cloud computing and distributed systems.
sap open course for s4hana steps from ECC to s4
Machine learning based COVID-19 study performance prediction
The Rise and Fall of 3GPP – Time for a Sabbatical?
Empathic Computing: Creating Shared Understanding
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
20250228 LYD VKU AI Blended-Learning.pptx

Introduction To Solidity

  • 2. What Is Solidity? Solidity is a type of object- oriented programming language. This programing language is developed specifically for smart contracts. This type of language is widely used in creating smart contracts features in blockchain platforms. It’s influenced by C++, JavaScript and Python. Solidity also uses Ethereum Virtual Machine to function properly.
  • 3. Concepts You Should Know to Understand Solidity Ethereum is an open-source blockchain platform that offers smart contract facilities. Solidity was first introduced as a new type of programing language for the Ethereum platform. Ether is the primary token for the platform. This platform is dedicated to developers for helping them develop and deploy decentralized applications. Ethereum
  • 4. Concepts You Should Know to Understand Solidity Smart contracts are a type of automated digital contract. Here, parties within the contract will set up specific rules and based on that rules, the contracts will get executed. Developers use the Solidity programming language to develop smart contracts. Using Solidity, you can program the contracts to do any type of task. Smart Contracts
  • 5. Concepts You Should Know to Understand Solidity Ethereum Virtual Machine is a crucial part of understanding Solidity. EVM offers a runtime environment for smart contracts. Using EVM, smart contracts can execute their core objectives with higher security. It’s also very effective in preventing DOS or Denial-of- Service attacks. EVM comes with a specific set of codes or instructions to run specific tasks within the execution environment. Ethereum Virtual Machine { } Js ( ) </>
  • 6. Different Methods of Setting Up Solidity Compiler Environment Remix Node.js/ npm Docker Image Binary Packages
  • 7. Remix: Remix IDE is an application that provides plugins and a development environment for smart contracts. Users can use this application online without installing any software for the environment. Node.js/npm: This is the easiest way to set up the environment. Here, you will install a solidity compiler called solc-js. However, solc-js offer limited functionalities for accessing the compiler. Docker Image: Docker image offers simple steps in setting up the environment. Docker images offer a template to build a container for running the Solidity compiler. Binary Packages: Binary packages are archive files that will have all directories and files for installing the Solidity compiler on your device.
  • 8. Pragma: In Solidity, a pragma language will specify how the compiler will process any type of input. Typically, the first line of code in Solidity based smart contracts contains the pragma. Contract: uintstoredData component within the code will denote the Solidity contract. This part will contain all the data and code needed for locating a particular address within the blockchain. File Importing: Solidity offers similar support for file import systems like JavaScript. Understanding the Solidity Syntax
  • 9. Alias Auto Unchecked Sizeof Copyof Define Override Switch Developers have to learn about reserved keywords for Solidity to fully understand the logic behind each contract. Some of these keywords are: Reserved Keywords
  • 10. Variables are only locations that are reserved for storing values. Thus, users can reserve any amount of memory for a certain variable. Solidity comes with a vast list of value types, such as Boolean, double floating-point, integers, character, etc. The operating system will be responsible for allocating the memory and selecting the data to store for a particular variable. Value Types in Solidity
  • 11. Unsigned and signed fixed-point numbers varying in sizes 8 bits to 256 bits Unsigned integer 8 bits to 256 bits Signed integer Boolean Signed fixed-point number Unsigned fixed-point number Data Types
  • 12. State Variable: Users can locate the state variables within the contract storage where values are permanently stored. Local Variable: Users can find the value of any local variables within the defining function. This value is not permanently stored. Global Variables: Global variables help in fetching data or information from the blockchain platform and any associated transaction processes. HTML JS CSS JAV A P HP C++ </> Variables in Solidity
  • 13. Solidity Use Cases Financial Services Upgrading Contracts Data Storage Trade Finance Digital Identity
  • 14. Financial Services Using Solidity, it’s possible to offer smart contracts facilities to financial service providers. It can reduce errors within contracts and help to make the process transparent. Solidity based smart contracts can also streamline cross-border payments, insurance claims, national bonds, mortgages, etc.
  • 15. Upgrading Contracts Solidity offers the option to create contracts that can be upgradeable. As blockchain is immutable, once a contract is established, it can’t be altered. However, Solidity allows contracts to interact with one another and call a contract to perform a specific logic.
  • 16. Trade Finance Solidity smart contracts can help to streamline the issuing of trade finance documentation that takes up a lot of resources and time. It can help to reduce the risks of error while maintaining a fast execution time.
  • 17. Data Storage Smart contracts based on Solidity can act as data storage for valuable information or documents. Here, Solidity can define the file type and separately store those data. When needed, this type of contract can be called by other contracts for using the stored data.
  • 18. Digital Identity Solidity based smart contracts can help to solve issues related to identity thefts and data monopoly. These contracts are a good option for storing confidential information, as it allows the user to have full control over the data.
  • 19. Top Solidity Issues Reentrancy Clearing Mappings Unexpected Ether Default Visibilities Timestamp Manipulation Unchecked External Call Costly Loops and Gas Limit Arithmetic Precision Relying On tx.origin Overflow and Underflow
  • 20. Learn More About Solidity Ethereum Development Fundamentals course https://academy.101blockchains.com/courses/ ethereum-development-fundamentals The Complete Ethereum Technology Course https://academy.101blockchains.com/courses/et hereum-technology-course
  • 21. 101 Blockchains Certifications Certified Enterprise Blockchain Professional Certified Enterprise Blockchain Architect Certified Blockchain Security Expert https://academy.101blockchains.com/cour ses/certified-enterprise-blockchain- architect https://academy.101blockchains.com/cours es/certified-blockchain-security-expert https://academy.101blockchains.com/ courses/blockchain-expert- certification
  • 22. Why You Must Go With 101 Blockchains Certification Courses? High-Quality Research Information First-class Training Content Interactive Exercises Flexible Learning Using Modular Approach Access to Bonus Training Materials Various Training Strategies for Faster Learning Tangible Proof of Course Completion Weekly Hands-on Assignments Professional Instructors Premium Support
  • 23. Free Resources Enterprise Blockchains Fundamentals - Free Course Blockchain Webinars Blockchain Conferences Access Free Resources Now! Blockchain Glossary Blockchain Flash Cards Blockchain Presentations Blockchain Infographics
  • 24. Trusted By 30,000+ Professionals! Read real stories on Trustpilot and G2Crowd. 500+ reviews
  • 25. The presentation is not intended to provide any investment advice and should not be taken as such. Claims made in this presentation do not constitute investment advice and should not be taken as such. Do your own research! While the information contained in this document and presentation has been obtained from sources believed to be reliable, 101 Blockchains disclaims all warranties as to the completeness or accuracy. Although 101 Blockchains research and training may address business, financial, investment and legal issues, 101 Blockchains does not provide any business, financial, legal or investment advice and this training should not be construed or used as such. 101 Blockchains shall not be responsible for any loss sustained by any person who relies on this presentation. Disclaimer
  • 26. Thank You © 2021 101 Blockchains. All rights reserved. This document may not be distributed, transmitted or reproduced in any form or by any means without 101 Blockchains’ prior written permission. While the information contained in this document has been obtained from sources believed to be reliable, 101 Blockchains disclaims all warranties as to the completeness or accuracy. Although 101 Blockchains research may address business, financial, investment and legal issues, 101 Blockchains does not provide any business, financial, legal or investment advice and this document should not be construed or used as such. 101 Blockchains shall not be responsible for any loss sustained by any person who relies on this publication.