Data Structure and Control Structure in Solidity
Knoldus Blog » Solidity
by Ayushi Dwivedi
1y ago
Reading Time: 3 minutes Hello Reader, Do you know what are data structures? If not then here is what data structures mean. A data structure is a particular way of organising data in a computer memory so that it can be used effectively. Solidity provides three types of data structures: Structs Arrays Mappings One by one let us look at each data structure. Structs: Solidity provides a way to define new The post Data Structure and Control Structure in Solidity appeared first on Knoldus Blogs ..read more
Visit website
Do you know Ethereum, Smart contracts with Solidity?
Knoldus Blog » Solidity
by Tanishka Garg
1y ago
Reading Time: 2 minutes Solidity is an object-oriented programming language for writing smart contracts on various blockchain platforms, most notably Ethereum. Ethereum Ethereum is an open-source, blockchain-based software platform. It has its own cryptocurrency called Ether. It enables the creation of smart contracts and decentralized applications, known as dapps. In addition, Ethereum is also a programming language that is executed on EVM. In simple words, Ethereum is “codify, decentralize, secure, and trade The post Do you know Ethereum, Smart contracts with Solidity? appeare ..read more
Visit website
Errors and Revert Statements in Solidity
Knoldus Blog » Solidity
by Ayushi Dwivedi
1y ago
Reading Time: 3 minutes Hello Reader! We have already read about many topics on Solidity. Here I am back with one more important topic that is “Errors and Revert Statements in Solidity”. Starting from Solidity v0.8.4, there is a convenient and gas-efficient way to explain to users why an operation failed through the use of custom errors. Errors should be used together with the revert statement. Which causes all changes in the The post Errors and Revert Statements in Solidity appeared first on Knoldus Blogs ..read more
Visit website
Contracts in Ethereum using Solidity
Knoldus Blog » Solidity
by Ankit Mogha
1y ago
Reading Time: 2 minutes The Contracts in the sense of Solidity is a collection of code and data. That resides at a specific address on the Ethereum blockchain. Contracts in Solidity are similar to classes in object-oriented languages. They contain persistent data in state variables, and functions that can modify these variables. Creating Contracts Contracts can be create from outside via Ethereum transactions or from within Solidity contracts. Lets The post Contracts in Ethereum using Solidity appeared first on Knoldus Blogs ..read more
Visit website
Error handling in Solidity is very useful
Knoldus Blog » Solidity
by Aman Verma
1y ago
Reading Time: 3 minutes Hello guys, here is another blog on Solidity. Check out my previous blog on Value types in Solidity. In this blog, we will see how to do error handling in Solidity. Solidity uses state-reverting exceptions to handle errors. Such an exception undoes all changes made to the state in the current call and all its sub-calls and reports the error to the caller. When exceptions The post Error handling in Solidity is very useful appeared first on Knoldus Blogs ..read more
Visit website
Expressions and Control Structures in Solidity
Knoldus Blog » Solidity
by Ayushi Dwivedi
1y ago
Reading Time: 3 minutes Hey Readers! Welcome back to the world of Solidity. In this blog we will see what are the Expressions and Control Structures in Solidity. Expressions and Control Structures in Solidity is a vast concept that we will see today. Control Structures Most of the control structures known from curly-braces languages are available in Solidity: There are if, else, while, do, for, break, continue, return, with The post Expressions and Control Structures in Solidity appeared first on Knoldus Blogs ..read more
Visit website
Structure of a Contract in Solidity
Knoldus Blog » Solidity
by Ayushi Dwivedi
1y ago
Reading Time: 3 minutes Smart Contracts for Ethereum are primarily written using Solidity. They are the basic unit of deployment and also used in execution for EVMs. Contracts in Solidity are similar to classes in object-oriented languages. Here we will learn about structure of contract. Each contract can contain declarations of State Variables, Functions, Function Modifiers, Events, Errors, Struct Types and Enum Types. Furthermore, contracts can inherit from other contracts. Libraries and interfaces are special type of The post Structure of a Contract i ..read more
Visit website
Value Types In Solidity
Knoldus Blog » Solidity
by Aman Verma
1y ago
Reading Time: 3 minutes Solidity is an object-oriented, high-level language for creating smart contracts. Smart contracts are programs that decide the behaviour of accounts within the Ethereum state. Solidity is a statically typed language. It supports inheritance, libraries and complex user-defined types among other features. With Solidity, you can create contracts for uses such as voting, crowdfunding, blind auctions, and multi-signature wallets. There are various data types in solidity The post Value Types In Solidity appeared first on Knoldus Blogs ..read more
Visit website
Why Solidity is used to Develop Smart Contracts?
Knoldus Blog » Solidity
by Ayushi Dwivedi
1y ago
Reading Time: 3 minutes Solidity was first proposed and developed in year 2014 by Gavin Woodand since then it has come a long way. Then Ethereum’s Solidity team led by Christian Reitwiessner developed it later. It is a high-level , object-oriented language used for implementing smart contracts. A smart contract is a self-executing contract. It has the terms of the agreement between buyer and seller. The code and the agreements The post Why Solidity is used to Develop Smart Contracts? appeared first on Knoldus Blogs ..read more
Visit website

Follow Knoldus Blog » Solidity on FeedSpot

Continue with Google
Continue with Apple
OR