Skip to content

Category Archives: Solidity

Problem: Create a smart contract named MyContract having a state variable as owner. Create a constructor to fetch the address of the owner from msg… Read More
A Variable is basically a placeholder for the data which can be manipulated at runtime. Variables allow users to retrieve and change the stored information. … Read More
Abstract contracts are contracts that have at least one function without its implementation. An instance of an abstract cannot be created. Abstract contracts are used… Read More
A constructor is a special method in any object-oriented programming language which gets called whenever an object of a class is initialized. It is totally… Read More
Solidity is a statically typed language, which implies that the type of each of the variables should be specified. Data types allow the compiler to… Read More
Libraries in solidity are similar to contracts that contain reusable codes. A library has functions that can be called by other contracts. Deploying a common… Read More
Interfaces are the same as abstract contracts created by using an interface keyword, also known as a pure abstract contract. Interfaces do not have any… Read More
Solidity Contracts are like a class in any other object-oriented programming language. They firmly contain data as state variables and functions which can modify these… Read More
Solidity’s code is encapsulated in contracts which means a contract in Solidity is a collection of code (its functions) and data (its state) that resides… Read More
Enums are the way of creating user-defined data types, it is usually used to provide names for integral constants which makes the contract better for… Read More
Encapsulation is fundamental and one of the most important concepts of object-oriented programming languages. It refers to the mechanism of manipulation of the scope of… Read More
The view functions are read-only function, which ensures that state variables cannot be modified after calling them. If the statements which modify state variables, emitting… Read More
Remix IDE is generally used to compile and run Solidity smart contracts. Below are the steps for the compilation, execution, and debugging of the smart… Read More
A function is basically a group of code that can be reused anywhere in the program, which generally saves the excessive use of memory and… Read More
In any programming language, operators play a vital role i.e. they create a foundation for the programming. Similarly, the functionality of Solidity is also incomplete… Read More

Start Your Coding Journey Now!