I Created a Counter Smart Contract with Ether.js — Here’s How

One of the presiding JavaScript libraries for interacting with the Ethereum blockchain is ether.js. The ether.js library, only 88 KB compressed in size, is remarkably smaller than the web3.js library. Because of that, web apps load more quickly if you use the ether.js API. This constantly improving library has already been popular among developers for … 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

How to Sell Coupons on ETH? A Sample Solidity dApp with React and Truffle (1/4)

How to Sell Coupons on ETH? Creating your own sample dApp in four parts: Blockchain has bagged decent accolades recently for its transparency of the transactions made throughout the supply chain. By taking inspiration from that, we decided to make an imaginary Web3 dapp for the finxter academy. πŸ›‘ Note: This is just a training … Read more

Solidity Omitted Function Parameter Names

Expressions and Control Structures in Solidity Smart Contracts In this article, we’ll talk about omitted function parameter names, i.e. what they are, when and why we should use them, and how they make our programming life more interesting. It’s part of our long-standing tradition to make this (and other) articles a faithful companion, or a … Read more