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

This is part 3 of our four-tutorial series on creating a decentralized web app to sell ebooks: πŸ‘‡ We will connect the front end with the smart contract in this part of the series. The interaction with the smart contract will be done using ether.js. Move to the app.js file inside the source folder. We … Read more

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

This is part 2 of our four-tutorial series on creating a decentralized web app to sell ebooks: πŸ‘‡ In the previous part, we built the smart contract and deployed it on the hardhat node for testing. Now it’s time to deploy the contract on the testnet. But before that, let’s install the react app first. … Read more

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

Welcome to another project of a decentralized dapp with React and ether.js. This is part 1 of our four-tutorial series on creating a decentralized web app to sell ebooks: πŸ‘‡ Project Scenario We will build an ebook stall from which anyone can buy an ebook on a monthly subscription basis. The buyer will submit his … Read more

Solidity Assignments for Arrays and Structs

In this article, we’ll continue on the topic of the assignments, which we started in the previous article while talking about tuples. This article’s topic will focus on possible challenges when dealing with arrays and structs and the right approaches to resolve them. It’s part of our long-standing tradition to make this (and other) articles … Read more

Breaking Down Solidity Expression Trees and Tuple Assignments

In this article, we’ll start familiarizing ourselves with the order of evaluating expressions in Solidity. Plus, you’ll learn about multiple assignments (tuple assignments). Let’s go! πŸ’ͺ 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. Order of Evaluation of Expressions Some … Read more

Spice Up Your Solidity with Salted Contract Creations & create2

Salted contract creation uses cryptographic “salt” to add an additional layer of security to a smart contract. Salt is a random string added to the contract code to make it harder for an attacker to reverse engineer the code and gain access to the contract. This makes the contract more secure and helps protect the … Read more

Smart Contracts – Discover How To Create Them Directly and Indirectly!

In this article, we’ll take a closer look at how contracts are created, both directly, i.e. while being implicitly deployed on the blockchain, and indirectly, i.e. when their creation is triggered by another contract. It’s part of our long-standing tradition to make this (and other) articles a faithful companion, or a supplement to the official … Read more

Learn to Build Smart Contracts in React with web3.js: Here’s How! (2/2)

Welcome to the second part of the series. In the first part, we have seen how web3.js helped the react frontend to connect to the smart contract. πŸ‘‰ Recommended Tutorial: Learn to Build Smart Contracts in React with web3.js: Here’s How! (1/2) We explored the power of the “web3.eth” attribute to call the data from … Read more

Learn to Build Smart Contracts in React with web3.js: Here’s How! (1/2)

A question often asked by newbie learners while developing the smart contract is, “How to connect my frontend code with the smart contract?”. The answer should be web3.js till day. web3.js has a collection of libraries that allows you to interact with a local or remote Ethereum node. Consider it an interface connecting the front … Read more

How to Sell Coupons on ETH? Integrate Frontend with Smart Contract (4/4)

How to Sell Coupons on ETH? Creating your own sample dApp in four parts: Welcome to the last part of the series. πŸ›‘ Note: This is just a training “fun” dApp that shows you how to use React, Truffle, and Solidity. It is not a real dApp with real functionality! Imaginary Scenario: Finxter academy has … Read more

How to Sell Coupons on ETH? Web3.js and Connect Frontend with Metamask (3/4)

How to Sell Coupons on ETH? Creating your own sample dApp in four parts: Welcome to the front-end journey for the Finxter coupon Dapp. πŸ›‘ Note: This is just a training “fun” dApp that shows you how to use React, Truffle, and Solidity. It is not a real dApp with real functionality! Imaginary Scenario: Finxter … Read more