To create a pretend blockchain wich you may take a look at youre smartcontract written with Solidity you want Ganach software program or a Ganache CLI.
Ganache is the most recent model of TestRPC: a quick and customizable blockchain emulator. It permits you to make calls to the blockchain with out the overheads of working an precise Ethereum node.
Transactions are “mined” immediately.
No transaction price.
Accounts may be re-cycled, reset and instantiated with a hard and fast quantity of Ether (no want for taps or mining).
Gasoline worth and mining velocity may be modified.
A handy GUI provides you an summary of your testchain occasions.
To put in ganache software program visite this web site : https://trufflesuite.com/ganache/
To get ganache-cli you want Node.js first
Set up it right here: https://nodejs.org/
Ganache may be put in through NPM:
npm set up -g ganache-cli
Utilizing Ganache CLI
Command Line
$ ganache-cli <choices>
You probably have bother utilizing npm please attempt pnpm it save me alot.
I’ve a put up discussing pnpm right here: https://dev.to/mrhili/what-is-pnpm-2l87.