This content originally appeared on DEV Community and was authored by Mrhili Mohamed Amine
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.
This content originally appeared on DEV Community and was authored by Mrhili Mohamed Amine

Mrhili Mohamed Amine | Sciencx (2022-06-14T22:36:31+00:00) Create fake blockchaine to test youre smart-contract. Retrieved from https://www.scien.cx/2022/06/14/create-fake-blockchaine-to-test-youre-smart-contract/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.