To create a fake blockchain wich you can test youre smartcontract written with Solidity you need Ganach software or a Ganache CLI.
Ganache is the latest version of TestRPC: a fast and customizable blockchain emulator. It allows you to make calls to the blockchain without the overheads of running an actual Ethereum node.
Usage
Transactions are “mined” instantly.
No transaction cost.
Accounts can be re-cycled, reset and instantiated with a fixed amount of Ether (no need for faucets or mining).
Gas price and mining speed can be modified.
A convenient GUI gives you an overview of your testchain events.
To install ganache software visite this website : https://trufflesuite.com/ganache/
To get ganache-cli you need Node.js first
Installation
Install it here: https://nodejs.org/
Ganache can be installed via NPM:
npm install -g ganache-cli
Using Ganache CLI
Command Line
$ ganache-cli <options>
Note
If you have trouble using npm please try pnpm it save me alot.
I have a post discussing pnpm here: https://dev.to/mrhili/what-is-pnpm-2l87.
Top comments (0)