My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Easy smart contract testing by FORKING the Ethereum Blockchain

Julien Klepatch's photo
Julien Klepatch
·Nov 11, 2019

Did you know that you could fork any Ethereum network with Ganache CLI?

This is a secret feature that nobody knows about, but is very powerful nonetheless.

In this video I will show you how to fork mainnet + unlock real mainnet accounts with Ganache CLI, so that you can easily test your Ethereum smart contracts.

In the example I we will transfer some Dai, using an unlocked account from mainnet (i.e WITHOUT knowing its private key).

Full playlist on Ganache CLI here