How to make fake wallet and run smart contracts locally without gas cost in 10 simple steps

in #blockchain5 years ago (edited)

First of all you need to install 2 things:-
1-Meta Mask Extension(from the following link)(to manage your account)

https://metamask.io/

2- ganache-cli (to generate fake accounts)

Using npm:

npm install -g ganache-cli

Using yarn:

yarn global add ganache-cli

3- Then browse to your project directories and open in terminal.
Then write the following command:

ganache-cli

You should see:

4- Open your favorite browser and double click extension

Create account on Meta Mask:

5- After creating account, login and you should view you 0 ETH balance.

6- Now Select Private network tab and press local-host( Main Etherum Network by default)

7- Double click on your account picture and press import account.

8- From your terminal select private key from ganache:

9- Then copy private key to your Meta Mask account after pressing import:-

10- Then click Import and well done you have 100 ETH in your account, Now you can start deployments from your PC without any gas cost.

To deploy your First Full Stack Dapp wait from my next post please follow me.If you have any question ask me.