Smart Contract to Store a Sentence on ETH

The following article is based on Adam’s CharmingData channel and GitHub repository. β™₯️ In this tutorial, we will create, test, and deploy a smart contract called SimpleStorage. This contract will allow your users to create their own sentence and store it on the blockchain. It will also allow users to retrieve the last sentence stored … Read more

Solidity Function Constructors – A Helpful Simplified Guide with Video

In this article, we’ll learn about function constructors, a Solidity language feature enabling us to execute a function during smart contract creation. It’s part of our long-standing tradition to make this (and other) articles a faithful companion or a supplement to the official Solidity documentation. We’ll base this article on the original Solidity programming language … Read more

Solidity Function Overloading

In this article, we’ll learn about function overloading πŸŽ›οΈπŸ”πŸ‘·β€β™‚οΈπŸ’»πŸš€, a useful and interesting feature in the Solidity programming language. It’s part of our long-standing tradition to make this (and other) articles a faithful companion or a supplement to the official Solidity documentation. We’ll base this article on the original Solidity programming language content. Overview Function … Read more

Solidity’s Fallback Function – A Simple Guide

In this article, we will focus on the second topic of the interesting pair, the fallback function, as a follow-up on the receive ether function discussed in the previous article. It’s part of our long-standing tradition to make this (and other) articles a faithful companion, or a supplement to the official Solidity documentation. Overview The … Read more

Solidity Receive Ether Function

In this article, we will focus on an important topic, the receive Ether function in Solidity. This function allows us to receive the currency and is the first of the two possible approaches for receiving currency. The other approach is the fallback function, and we’ll briefly introduce it here to become aware of the wider … Read more

Solidity Function Visibility Made Easy

Solidity has many useful features that enable us, smart contract developers, to make safe, secure, and functional smart contracts. We have discussed other interesting Solidity features, and this time, we’ll focus on one very important feature of Solidity called function visibility. It determines who can call a function and who can access its variables. In … Read more

Solidity Error Handling with Assert, Require, and Revert Functions

In this article, we’ll get a closer look at four main mechanisms for error handling in Solidity: functions assert, require, revert, and another approach based on exceptions. These mechanisms will help us tremendously in achieving stable and secure smart contracts, so this is the right moment to introduce them and lay the ground for a … Read more

Solidity Checked and Unchecked Expressions

In this article, we’ll learn about checked and unchecked expressions and when to use each of them. It’s part of our long-standing tradition to make this (and other) articles a faithful companion or a supplement to the official Solidity documentation for this article’s topic. We should consider whether an expression should be checked or unchecked … Read more

Solidity Scoping – A Helpful Guide with Video

As promised in the previous article, we’ll get more closely familiar with the concept of scoping next. We’ll explain what scoping is, why it exists, and how it helps us in programming. It’s part of our long-standing tradition to make this (and other) articles a faithful companion, or a supplement to the official Solidity documentation. … Read more

I Created a React Decentralized App to Sell eBooks – Here’s How (4/4)

We completed a transaction in the last part, but the transaction data had yet to be seen. In this part, we will drive the smart contract data to the user interface. The user’s data and the transaction time will be displayed on the user interface. This is part 4 of our four-tutorial series on creating … Read more