Skip to content
MR
HTML
Tailwind
PYTHON
JAVA
Solidity
PHP
Lua
F#
Android
MYSQL
MONGODB
Examples
Examples
Solidity Get Started
Install Solidity
Solidity Tutorial
Solidity Introduction
Solidity Syntax
Solidity Contract
Solidity Comments
Solidity Variables
Special Variables
Solidity state variable
Solidity variable Scope
Solidity Strings
Solidity Arrays
Solidity Operator
Solidity If Else
Solidity Loops
Solidity Structs
Solidity Mappings
Solidity Conversions
Solidity Ether Units
Solidity Style Guide
Solidity Functions
Function Modifiers
View Function
Pure Function
Fallback Function
Solidity Polymorphism
Mathematical Functions
Cryptographic Functions
Withdrawal Pattern
Access-control
Solidity Contracts
Solidity Inheritance
Solidity Constructors
Solidity Abstract Contracts
Solidity Interfaces
Solidity Libraries
Solidity Assembly
Solidity Events
Solidity Error Handling
Search
Solidity Introduction
What is Solidity used for?
Is Solidity easy to learn?
What is Smart Contracts?
What is Ethereum?
Is Solidity similar to Python?
Read More
Install Solidity
Method 1 – npm / Node.js
Method 2 Docker Image
Method 3 Binary Packages Installation
Method 4 Snap
Install Node.js
Read More
Solidity Syntax
Solidity Syntax
Solidity Pragma
Solidity Contract
Solidity Reserved Keywords
Read More
Write Smart Contract
Write Smart Contract
Output
Output:
Example Explanation
Read More
Solidity Comments
Solidity Comments
Single-line Comments
Multi-line Comments
Example Explanation
Example Explanation
Read More
State Variables In Solidity
State Variable
Solidity Local Variable
Solidity Global Variables
Solidity Variabler Name
Read More
Solidity Variable Scope
Solidity Variable Scope
Example 1 Explanation
Example 2 Explanation
Read More
Solidity Operators
Solidity Operators
What is an Operator?
Solidity Operator Arithmetic
Solidity Operator Comparison
Solidity Operator Logical
Read More
Solidity Loops
Solidity Loops Types
Solidity For Loop
While Loop In Solidity
Do-while loop In Solidity
Solidity Loop Control
Read More
Solidity If Else Statements
Solidity if statement
Solidity If Else statement
Solidity if-else if Statement
Syntax
Syntax
Read More
Solidity Strings
Solidity Strings
Solidity Escape Characters
Bytes to String Conversion
Example Explanation
Conclusion
Read More
Solidity Variables
What is Variable?
Solidity Variables
Solidity Variable Types
Solidity Variable Address
Solidity Integers Variable
Read More
Solidity Special Variables
Conclusion
Read More
Solidity Arrays - A Comprehensive Overview and Examples
Solidity Array Types
Declare Array
Initialize Arrays
Creating Dynamic Memory Arrays
Accessing Array Elements
Read More
Solidity Structs
Define Struct
Access Struct and Its Variable
Conclusion
Read More
Solidity Mappings
Considerations
Conclusion
Read More
Solidity Conversions
Solidity Conversions
Solidity Conversions Implicit
Explicit Conversion
Conclusion
Read More
Solidity Ether Units
Solidity Ether
Solidity Time
Example Explanation
Example Explanation
Conclusion
Read More
Solidity Style Guide
Solidity Code Layout
Function Declaration
Mappings
Variable declaration
String Declaration
Read More
Solidity Functions
Solidity Functions
Declare Solidity Function
Call Function
Solidity Function Parameters
The return Statement
Read More
Solidity Function Modifiers
What are Solidity Function Modifiers?
How Solidity Function Modifiers Works?
How to create Function Modifiers?
Syntax
Example Explanation
Read More
Solidity View Functions
Solidity View Function: What is it?
Solidity view Function Benefits
Lower Transaction Costs
Increase Contract Security
Easy Contract Integration
Read More
Solidity Pure Functions
What are Solidity Pure Functions?
Benefits
Conclusion
Read More
Solidity Fallback Function
What Is Solidity Fallback Function?
Solidity Fallback Function Properties
How to Use Fallback Function?
Conclusion
Read More
Solidity Polymorphism
Solidity Polymorphism - Function
Contract Polymorphism
Example Explanation
Conclusion
Read More
Solidity Mathematical Functions
Basic Arithmetic Operators
Built-In Mathematical Functions
Mr Examples Math Library Code
Conclusion
Read More
Solidity Cryptographic Functions
What is Hashing in Solidity?
Digital Signatures
Conclusion
Read More
Solidity Withdrawal Pattern
Solidity Withdrawal Patterns
Example Explanation
Example Explanation
Conclusion
Read More
Solidity Access Control
Solidity Access Control / Restricted Access
Conclusion
Example Explanation
Read More
Solidity Contracts
Solidity Contracts
Visibility Quantifiers
Public Quantifiers
Private Quantifiers
Internal Quantifiers
Read More
Solidity Inheritance
What is Solidity Inheritance?
Solidity Inheritance Types
Single Inheritance
Multiple Inheritance
Hierarchical - Multi-level Inheritance
Read More
Solidity Constructors
What are Constructors in Solidity?
How do Constructors work in Solidity?
Solidity Constructor Creation
Use Constructor with Argument
Solidity Constructor Inheritance
Read More
Abstract Contracts
Abstract Contracts
Importance of Abstract Contract
Conclusion
Read More
Solidity Interfaces
Solidity Interface
Benefits of Using interfaces
Example Explanation
Conclusion
Read More
Solidity Libraries
Solidity Libraries - What are they?
Using For
Syntax
Conclusion
Read More
Solidity Assembly
Assembly or Assembler
Solidity Assembly
Inline Assembly
Standalone Assembly
Solidity Assembly Benefits
Read More
Solidity Events
Solidity Events - what are they?
Create An Event
Index in events
Syntax
Example Explanation
Read More
Solidity Error Handling
Solidity Error Handling
Require Statements
Assert Statement
Revert Statement
Solidity Error Handling Benefits
Read More