// blog

284 articles on Ethereum, Solidity, and blockchain development.

Which version of web3 should you use?

TLDR: web3-beta 1.0.0-beta.55 npm install web3@1.0.0-beta.35 If you have worked with web3 before, you might have noticed a few.... glitches to say the least. The most annoying thin…

Call vs transaction API in Ethereum

In Ethereum, there are 2 APIs to interact with a smart contract: Calls (eth_call) Transactions (eth_sendTransactions) In Solidity (the language for writing Ethereum smart contracts…

Truffle framework cheatsheet

The documentation of the Truffle framework is pretty good, but it can be a bit overwhelming for a beginner. This cheatsheet is a condensed version giving you the bare minimum you n…

Rock paper scissors Solidity tutorial

You know Rock paper scissors right? If you don't, that's a simple game where in each round 2 players make one of 3 moves: rock paper scissors Paper beats rock, scissors beat paper…

Fomo3D Tutorial

Have you heard of Fomo3D ? This is a famous lottery Dapp on Ethereum where the last player to invest in a round win the jackpot! By the way, don't freak out if you visit the page o…

Lottery in Solidity

This video is a tutorial to build a lottery smart contract in Solidity. The rules are simples. In each round of the lottery, anybody can send Ether to the smart contract. When enou…

Event organization smart contract

In this video, I will teach you how to build a smart contract to organize events.There will be 2 types of users: event organizers customers Event organizers will be able to organiz…

Loan state machine in Solidity

In this video we will create a loan smart contract with Solidity. There will be 2 kind of parties interacting with the smart contract: investors borrowers The investor will send Et…

Etherdelta smart contract walkthrough

In this article, I will walk you through the code of the Etherdelta smart contract: ERC20 token transfers, orders creation, and trades settlement. The smart contract is written in…

Basic testing workflow with Truffle - Part 2

In this video, we will go through the whole process of test-driven-development (TDD) for Solidity smart contracts: writing the tests in Truffle running the failing tests with truff…

Basic testing workflow with Truffle - Part I

In this video, I will show you what is the basic workflow when you test Solidity smart contracts with the Truffle framework. We are going to learn: files / test folder organization…

Install Truffle 5.0

Before we can continue in our course on Solidity smart contract testing , we need to install Truffle 5.0, so that we can benefit from all the new fancy features like support for ES…

Truffle testing framework - Introduction

In this video, I am going to introduce the testing features of the Truffle framework. You will learn: which language are supported for tests the folder organization…

Unit vs integration tests for smart contracts

Before you rush into testing your Solidity smart contracts, it's important to understand the difference between unit tests and integration tests. In this video I am going to explai…

Test driven development for Solidity

Do you write tests for your Solidity smart contracts? Congrats if you do, and if don't it's time to start! If you do, do you write your Solidity smart contract first, and only afte…

DAO - Part V

We will finally finish our DAO smart contract! So far we can vote for investment proposals, but after the voting time is over we need to actually execute the investment proposal, b…

DAO - Part IV

In this video, we are going to allow investors of the DAO to: create investment proposals vote on each investment proposal We will manipulate Solidity mappings a lot, including nes…

DAO - Part III

In this video, we are going to allow investors to cash out on their investment, in 2 ways: By redeeming their shares against Ether from the smart contract By selling their shares t…

DAO - Part II

In this video, we start to build the DAO smart contract, and implement the following features: Collect investor money in Ether Keep track of investor money in shares…

DAO - Part I

In this new series of videos, we are going to build a DAO (Decentralized Autonomous Organization) smart contract. The DAO was a revolutionary kind of investment fund implemented as…

Remix debugger - Advanced

In this video I will show you some advanced features of the Remix Debugger like: stepping over functions breakpoints These features allow you to quickly find the place of the Solid…

Remix debugger - Introduction

he Remix debugger is a powerful that allows you to debug your Solidity code. Usually, if you are stuck and don't know how to fix a buggy Solidity smart contract, the Remix debugger…

Debugging with events

Do you like often use console.log() statement to debug your Javascript code? Convenient, uh? How about Solidity smart contracts, can we do the same? Well, yes and no. In this video…

Debugging with require and revert

In Solidity, require and revert statements are used to check some pre-conditions before executing the main part of a function. However, these Solidity constructs can also be used t…

Inspect storage with calls & return statements

In Solidity, you can return some values from functions, like in other programming languages. Its also possible to use these return statements to inspect some variables and do some…