Create fake blockchaine to test youre smart-contract

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 th…


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


Print Share Comment Cite Upload Translate Updates
APA

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/

MLA
" » Create fake blockchaine to test youre smart-contract." Mrhili Mohamed Amine | Sciencx - Tuesday June 14, 2022, https://www.scien.cx/2022/06/14/create-fake-blockchaine-to-test-youre-smart-contract/
HARVARD
Mrhili Mohamed Amine | Sciencx Tuesday June 14, 2022 » Create fake blockchaine to test youre smart-contract., viewed ,<https://www.scien.cx/2022/06/14/create-fake-blockchaine-to-test-youre-smart-contract/>
VANCOUVER
Mrhili Mohamed Amine | Sciencx - » Create fake blockchaine to test youre smart-contract. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/06/14/create-fake-blockchaine-to-test-youre-smart-contract/
CHICAGO
" » Create fake blockchaine to test youre smart-contract." Mrhili Mohamed Amine | Sciencx - Accessed . https://www.scien.cx/2022/06/14/create-fake-blockchaine-to-test-youre-smart-contract/
IEEE
" » Create fake blockchaine to test youre smart-contract." Mrhili Mohamed Amine | Sciencx [Online]. Available: https://www.scien.cx/2022/06/14/create-fake-blockchaine-to-test-youre-smart-contract/. [Accessed: ]
rf:citation
» Create fake blockchaine to test youre smart-contract | Mrhili Mohamed Amine | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.