SlideShare a Scribd company logo
1 of 26
Download to read offline
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

What's hot

Ethereum in a nutshell
Ethereum in a nutshellEthereum in a nutshell
Ethereum in a nutshellDaniel Chan
 
How To Build A Career In Blockchain
How To Build A Career In BlockchainHow To Build A Career In Blockchain
How To Build A Career In Blockchain101 Blockchains
 
Ethereum (Blockchain Network)
Ethereum (Blockchain Network)Ethereum (Blockchain Network)
Ethereum (Blockchain Network)Qais Ammari
 
Ethereum Solidity Fundamentals
Ethereum Solidity FundamentalsEthereum Solidity Fundamentals
Ethereum Solidity FundamentalsEno Bassey
 
Ethereum Tutorial - Ethereum Explained | What is Ethereum? | Ethereum Explain...
Ethereum Tutorial - Ethereum Explained | What is Ethereum? | Ethereum Explain...Ethereum Tutorial - Ethereum Explained | What is Ethereum? | Ethereum Explain...
Ethereum Tutorial - Ethereum Explained | What is Ethereum? | Ethereum Explain...Simplilearn
 
Solidity Simple Tutorial EN
Solidity Simple Tutorial ENSolidity Simple Tutorial EN
Solidity Simple Tutorial ENNicholas Lin
 
Understanding Proof of Work (PoW) and Proof of Stake (PoS) Algorithms
Understanding Proof of Work (PoW) and Proof of Stake (PoS) AlgorithmsUnderstanding Proof of Work (PoW) and Proof of Stake (PoS) Algorithms
Understanding Proof of Work (PoW) and Proof of Stake (PoS) AlgorithmsGautam Anand
 
Smart Contract & Ethereum
Smart Contract & EthereumSmart Contract & Ethereum
Smart Contract & EthereumAkshay Singh
 
What is DeFi ? | Decentralized Finance
What is DeFi ? | Decentralized Finance What is DeFi ? | Decentralized Finance
What is DeFi ? | Decentralized Finance zaarahary
 
Blockchain
BlockchainBlockchain
BlockchainSai Nath
 
20180711 Metamask
20180711 Metamask 20180711 Metamask
20180711 Metamask Hu Kenneth
 
Introduction to Solidity and Smart Contract Development (9).pptx
Introduction to Solidity and Smart Contract Development (9).pptxIntroduction to Solidity and Smart Contract Development (9).pptx
Introduction to Solidity and Smart Contract Development (9).pptxGene Leybzon
 
Creating Smart Contract
Creating Smart ContractCreating Smart Contract
Creating Smart ContractDeepak Aryal
 

What's hot (20)

Ethereum-Cryptocurrency (All about Ethereum)
Ethereum-Cryptocurrency (All about Ethereum) Ethereum-Cryptocurrency (All about Ethereum)
Ethereum-Cryptocurrency (All about Ethereum)
 
Hyperledger Fabric
Hyperledger FabricHyperledger Fabric
Hyperledger Fabric
 
Ethereum in a nutshell
Ethereum in a nutshellEthereum in a nutshell
Ethereum in a nutshell
 
All About Ethereum
All About EthereumAll About Ethereum
All About Ethereum
 
How To Build A Career In Blockchain
How To Build A Career In BlockchainHow To Build A Career In Blockchain
How To Build A Career In Blockchain
 
Ethereum (Blockchain Network)
Ethereum (Blockchain Network)Ethereum (Blockchain Network)
Ethereum (Blockchain Network)
 
Ethereum Solidity Fundamentals
Ethereum Solidity FundamentalsEthereum Solidity Fundamentals
Ethereum Solidity Fundamentals
 
Ethereum Tutorial - Ethereum Explained | What is Ethereum? | Ethereum Explain...
Ethereum Tutorial - Ethereum Explained | What is Ethereum? | Ethereum Explain...Ethereum Tutorial - Ethereum Explained | What is Ethereum? | Ethereum Explain...
Ethereum Tutorial - Ethereum Explained | What is Ethereum? | Ethereum Explain...
 
Solidity Simple Tutorial EN
Solidity Simple Tutorial ENSolidity Simple Tutorial EN
Solidity Simple Tutorial EN
 
Understanding Proof of Work (PoW) and Proof of Stake (PoS) Algorithms
Understanding Proof of Work (PoW) and Proof of Stake (PoS) AlgorithmsUnderstanding Proof of Work (PoW) and Proof of Stake (PoS) Algorithms
Understanding Proof of Work (PoW) and Proof of Stake (PoS) Algorithms
 
Ethereum
EthereumEthereum
Ethereum
 
Smart Contract & Ethereum
Smart Contract & EthereumSmart Contract & Ethereum
Smart Contract & Ethereum
 
What is DeFi ? | Decentralized Finance
What is DeFi ? | Decentralized Finance What is DeFi ? | Decentralized Finance
What is DeFi ? | Decentralized Finance
 
Blockchain
BlockchainBlockchain
Blockchain
 
20180711 Metamask
20180711 Metamask 20180711 Metamask
20180711 Metamask
 
Introduction to Solidity and Smart Contract Development (9).pptx
Introduction to Solidity and Smart Contract Development (9).pptxIntroduction to Solidity and Smart Contract Development (9).pptx
Introduction to Solidity and Smart Contract Development (9).pptx
 
Creating Smart Contract
Creating Smart ContractCreating Smart Contract
Creating Smart Contract
 
Smart contracts
Smart contractsSmart contracts
Smart contracts
 
Exploring ethereum
Exploring ethereumExploring ethereum
Exploring ethereum
 
Blockchain
BlockchainBlockchain
Blockchain
 

Similar to Introduction to Solidity Programming Language

Ethereum smart contract development company
Ethereum smart contract development companyEthereum smart contract development company
Ethereum smart contract development companyDevelopcoins
 
Top 8 blockchain based smart contract platforms
Top 8 blockchain based smart contract platformsTop 8 blockchain based smart contract platforms
Top 8 blockchain based smart contract platformsBlockchain Council
 
Defi smart contract development company
Defi smart contract development companyDefi smart contract development company
Defi smart contract development companyBrugusoftwaresolutions
 
Smart contract development top considerations
Smart contract development   top considerationsSmart contract development   top considerations
Smart contract development top considerationsDevelopcoins
 
What is Solidity basic concepts_.pdf
What is Solidity basic concepts_.pdfWhat is Solidity basic concepts_.pdf
What is Solidity basic concepts_.pdf101 Blockchains
 
Do Smart Contract Matter To Become A Blockchain Developer
Do Smart Contract Matter To Become A Blockchain Developer Do Smart Contract Matter To Become A Blockchain Developer
Do Smart Contract Matter To Become A Blockchain Developer Blockchain Council
 
Hyperledger development &amp; smart contract development
Hyperledger development &amp; smart contract developmentHyperledger development &amp; smart contract development
Hyperledger development &amp; smart contract developmentgavraskaranand
 
Top 10 Of The Best Tools For Blockchain Development
Top 10 Of The Best Tools For Blockchain DevelopmentTop 10 Of The Best Tools For Blockchain Development
Top 10 Of The Best Tools For Blockchain DevelopmentBlockchain Council
 
The best smart contract platforms in 2021
The best smart contract platforms in 2021The best smart contract platforms in 2021
The best smart contract platforms in 2021OliviaJune1
 
Blockcchain development services | codezeros
Blockcchain development services | codezerosBlockcchain development services | codezeros
Blockcchain development services | codezerosCodezeros
 
Encode Educate session 2 - Learn to code using Concordium
Encode Educate session 2 - Learn to code using ConcordiumEncode Educate session 2 - Learn to code using Concordium
Encode Educate session 2 - Learn to code using ConcordiumVanessa Lošić
 
DWeb and Civil Society: An Introduction For Makers
DWeb and Civil Society: An Introduction For MakersDWeb and Civil Society: An Introduction For Makers
DWeb and Civil Society: An Introduction For MakersTechSoup
 
Introduction To The New Era of DeFi Blockchains.pdf
Introduction To The New Era of DeFi Blockchains.pdfIntroduction To The New Era of DeFi Blockchains.pdf
Introduction To The New Era of DeFi Blockchains.pdfLaura Miller
 
Interesting Facts About Ethereum Smart contract Development
Interesting Facts About Ethereum Smart contract DevelopmentInteresting Facts About Ethereum Smart contract Development
Interesting Facts About Ethereum Smart contract DevelopmentDevelopcoins
 
Etherparty Pitch Dek
Etherparty Pitch DekEtherparty Pitch Dek
Etherparty Pitch Dekcraze3
 
The Road Ahead: Strategic Overview on the Ethos Bedrock Enterprise-grade Bloc...
The Road Ahead: Strategic Overview on the Ethos Bedrock Enterprise-grade Bloc...The Road Ahead: Strategic Overview on the Ethos Bedrock Enterprise-grade Bloc...
The Road Ahead: Strategic Overview on the Ethos Bedrock Enterprise-grade Bloc...Shingo Lavine
 
Top 5 blockchain platforms for digital marketing
Top 5 blockchain platforms for digital marketingTop 5 blockchain platforms for digital marketing
Top 5 blockchain platforms for digital marketingBlockchain Council
 

Similar to Introduction to Solidity Programming Language (20)

Ethereum smart contract development company
Ethereum smart contract development companyEthereum smart contract development company
Ethereum smart contract development company
 
Top 8 blockchain based smart contract platforms
Top 8 blockchain based smart contract platformsTop 8 blockchain based smart contract platforms
Top 8 blockchain based smart contract platforms
 
Defi smart contract development company
Defi smart contract development companyDefi smart contract development company
Defi smart contract development company
 
Smart contract development top considerations
Smart contract development   top considerationsSmart contract development   top considerations
Smart contract development top considerations
 
How to design, code, deploy and execute a smart contract
How to design, code, deploy and execute a smart contractHow to design, code, deploy and execute a smart contract
How to design, code, deploy and execute a smart contract
 
What is Solidity basic concepts_.pdf
What is Solidity basic concepts_.pdfWhat is Solidity basic concepts_.pdf
What is Solidity basic concepts_.pdf
 
Do Smart Contract Matter To Become A Blockchain Developer
Do Smart Contract Matter To Become A Blockchain Developer Do Smart Contract Matter To Become A Blockchain Developer
Do Smart Contract Matter To Become A Blockchain Developer
 
Hyperledger development &amp; smart contract development
Hyperledger development &amp; smart contract developmentHyperledger development &amp; smart contract development
Hyperledger development &amp; smart contract development
 
Top 10 Of The Best Tools For Blockchain Development
Top 10 Of The Best Tools For Blockchain DevelopmentTop 10 Of The Best Tools For Blockchain Development
Top 10 Of The Best Tools For Blockchain Development
 
The best smart contract platforms in 2021
The best smart contract platforms in 2021The best smart contract platforms in 2021
The best smart contract platforms in 2021
 
Blockcchain development services | codezeros
Blockcchain development services | codezerosBlockcchain development services | codezeros
Blockcchain development services | codezeros
 
Encode Educate session 2 - Learn to code using Concordium
Encode Educate session 2 - Learn to code using ConcordiumEncode Educate session 2 - Learn to code using Concordium
Encode Educate session 2 - Learn to code using Concordium
 
Smart contracts
Smart contractsSmart contracts
Smart contracts
 
DWeb and Civil Society: An Introduction For Makers
DWeb and Civil Society: An Introduction For MakersDWeb and Civil Society: An Introduction For Makers
DWeb and Civil Society: An Introduction For Makers
 
Hyperledger fabric
Hyperledger fabricHyperledger fabric
Hyperledger fabric
 
Introduction To The New Era of DeFi Blockchains.pdf
Introduction To The New Era of DeFi Blockchains.pdfIntroduction To The New Era of DeFi Blockchains.pdf
Introduction To The New Era of DeFi Blockchains.pdf
 
Interesting Facts About Ethereum Smart contract Development
Interesting Facts About Ethereum Smart contract DevelopmentInteresting Facts About Ethereum Smart contract Development
Interesting Facts About Ethereum Smart contract Development
 
Etherparty Pitch Dek
Etherparty Pitch DekEtherparty Pitch Dek
Etherparty Pitch Dek
 
The Road Ahead: Strategic Overview on the Ethos Bedrock Enterprise-grade Bloc...
The Road Ahead: Strategic Overview on the Ethos Bedrock Enterprise-grade Bloc...The Road Ahead: Strategic Overview on the Ethos Bedrock Enterprise-grade Bloc...
The Road Ahead: Strategic Overview on the Ethos Bedrock Enterprise-grade Bloc...
 
Top 5 blockchain platforms for digital marketing
Top 5 blockchain platforms for digital marketingTop 5 blockchain platforms for digital marketing
Top 5 blockchain platforms for digital marketing
 

More from 101 Blockchains

FinTech Guide for Beginner's
FinTech Guide for Beginner'sFinTech Guide for Beginner's
FinTech Guide for Beginner's101 Blockchains
 
Web 3.0 - A Detailed Guide
Web 3.0 - A Detailed GuideWeb 3.0 - A Detailed Guide
Web 3.0 - A Detailed Guide101 Blockchains
 
Frequently Asked Questions About Metaverse
Frequently Asked Questions About MetaverseFrequently Asked Questions About Metaverse
Frequently Asked Questions About Metaverse101 Blockchains
 
NFTs and Their Role in The Metaverse
NFTs and Their Role in The MetaverseNFTs and Their Role in The Metaverse
NFTs and Their Role in The Metaverse101 Blockchains
 
Is Metaverse The Next Big Thing?
Is Metaverse The Next Big Thing?Is Metaverse The Next Big Thing?
Is Metaverse The Next Big Thing?101 Blockchains
 
5 Best Metaverse Games to Play
5 Best Metaverse Games to Play5 Best Metaverse Games to Play
5 Best Metaverse Games to Play101 Blockchains
 
Top 5 Metaverse Tokens To Watch
Top 5 Metaverse Tokens To WatchTop 5 Metaverse Tokens To Watch
Top 5 Metaverse Tokens To Watch101 Blockchains
 
An Introduction To Metaverse
An Introduction To MetaverseAn Introduction To Metaverse
An Introduction To Metaverse101 Blockchains
 
Disadvantages of Blockchain
Disadvantages of BlockchainDisadvantages of Blockchain
Disadvantages of Blockchain101 Blockchains
 
Crypto Wallet Types Explained
Crypto Wallet Types ExplainedCrypto Wallet Types Explained
Crypto Wallet Types Explained101 Blockchains
 
Examples of Smart Contracts
Examples of Smart ContractsExamples of Smart Contracts
Examples of Smart Contracts101 Blockchains
 
PoW vs. PoS - Key Differences
PoW vs. PoS - Key DifferencesPoW vs. PoS - Key Differences
PoW vs. PoS - Key Differences101 Blockchains
 
An Ultimate Guide to NFT Applications
An Ultimate Guide to NFT ApplicationsAn Ultimate Guide to NFT Applications
An Ultimate Guide to NFT Applications101 Blockchains
 
Know Everything About Business Model Innovation
Know Everything About Business Model InnovationKnow Everything About Business Model Innovation
Know Everything About Business Model Innovation101 Blockchains
 
How to Kickstart Career in DeFi?
How to Kickstart Career in DeFi?How to Kickstart Career in DeFi?
How to Kickstart Career in DeFi?101 Blockchains
 
How To Start A Career In The NFT Space?
How To Start A Career In The NFT Space?How To Start A Career In The NFT Space?
How To Start A Career In The NFT Space?101 Blockchains
 

More from 101 Blockchains (20)

Web3 Fundamentals
Web3 FundamentalsWeb3 Fundamentals
Web3 Fundamentals
 
FinTech Guide for Beginner's
FinTech Guide for Beginner'sFinTech Guide for Beginner's
FinTech Guide for Beginner's
 
Web 3.0 - A Detailed Guide
Web 3.0 - A Detailed GuideWeb 3.0 - A Detailed Guide
Web 3.0 - A Detailed Guide
 
Frequently Asked Questions About Metaverse
Frequently Asked Questions About MetaverseFrequently Asked Questions About Metaverse
Frequently Asked Questions About Metaverse
 
NFTs and Their Role in The Metaverse
NFTs and Their Role in The MetaverseNFTs and Their Role in The Metaverse
NFTs and Their Role in The Metaverse
 
Is Metaverse The Next Big Thing?
Is Metaverse The Next Big Thing?Is Metaverse The Next Big Thing?
Is Metaverse The Next Big Thing?
 
5 Best Metaverse Games to Play
5 Best Metaverse Games to Play5 Best Metaverse Games to Play
5 Best Metaverse Games to Play
 
Top 5 Metaverse Tokens To Watch
Top 5 Metaverse Tokens To WatchTop 5 Metaverse Tokens To Watch
Top 5 Metaverse Tokens To Watch
 
An Introduction To Metaverse
An Introduction To MetaverseAn Introduction To Metaverse
An Introduction To Metaverse
 
Disadvantages of Blockchain
Disadvantages of BlockchainDisadvantages of Blockchain
Disadvantages of Blockchain
 
Crypto Wallet Types Explained
Crypto Wallet Types ExplainedCrypto Wallet Types Explained
Crypto Wallet Types Explained
 
Examples of Smart Contracts
Examples of Smart ContractsExamples of Smart Contracts
Examples of Smart Contracts
 
Public Vs. Private Keys
Public Vs. Private KeysPublic Vs. Private Keys
Public Vs. Private Keys
 
Top 5 DeFi Applications
Top 5 DeFi ApplicationsTop 5 DeFi Applications
Top 5 DeFi Applications
 
PoW vs. PoS - Key Differences
PoW vs. PoS - Key DifferencesPoW vs. PoS - Key Differences
PoW vs. PoS - Key Differences
 
How NFT Works
How NFT WorksHow NFT Works
How NFT Works
 
An Ultimate Guide to NFT Applications
An Ultimate Guide to NFT ApplicationsAn Ultimate Guide to NFT Applications
An Ultimate Guide to NFT Applications
 
Know Everything About Business Model Innovation
Know Everything About Business Model InnovationKnow Everything About Business Model Innovation
Know Everything About Business Model Innovation
 
How to Kickstart Career in DeFi?
How to Kickstart Career in DeFi?How to Kickstart Career in DeFi?
How to Kickstart Career in DeFi?
 
How To Start A Career In The NFT Space?
How To Start A Career In The NFT Space?How To Start A Career In The NFT Space?
How To Start A Career In The NFT Space?
 

Recently uploaded

04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
The Evolution of Money: Digital Transformation and CBDCs in Central Banking
The Evolution of Money: Digital Transformation and CBDCs in Central BankingThe Evolution of Money: Digital Transformation and CBDCs in Central Banking
The Evolution of Money: Digital Transformation and CBDCs in Central BankingSelcen Ozturkcan
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 

Recently uploaded (20)

04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
The Evolution of Money: Digital Transformation and CBDCs in Central Banking
The Evolution of Money: Digital Transformation and CBDCs in Central BankingThe Evolution of Money: Digital Transformation and CBDCs in Central Banking
The Evolution of Money: Digital Transformation and CBDCs in Central Banking
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 

Introduction to Solidity Programming Language

  • 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.