Smart Contracts

Error handling in Solidity is very useful

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 Continue Reading

Structure of a Contract in Solidity

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 Continue Reading

Value Types In Solidity

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 Continue Reading

Do you know Ethereum, Smart contracts with Solidity?

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 Continue Reading

DAML Fundamentals: Optional Data Type

Reading Time: 3 minutes DAML is a powerful open sourced language created to write distributed applications quickly, concisely and correctly. On this site, we have got blogs for you that help you in getting started with DAML. Just type DAML is the search box and hit enter 😉 DAML provides different data types to build the ledgers. You can get a quick overview of some of these types by Continue Reading