Hands-On Smart Contract Development with Solidity and Ethereum by David H. Hoover & Randall Kanna & Kevin Solorio

Hands-On Smart Contract Development with Solidity and Ethereum by David H. Hoover & Randall Kanna & Kevin Solorio

Author:David H. Hoover & Randall Kanna & Kevin Solorio [David H. Hoover]
Language: eng
Format: epub
Publisher: O'Reilly Media, Inc.
Published: 2019-12-24T16:00:00+00:00


$ truffle -v

This should show that you are using version 5.0.31 and list the available commands.

With Truffle installed, the last thing we need to do is add Ganache.

Ganache

Ganache is your very own blockchain. In many regards it is very much like the ethereum client we downloaded earlier. It provides tools for creating accounts and runs a JSON RPC API server for you to connect and read/write to the blockchain. The main difference, it doesn’t actually connect to the ethereum network, in fact older versions would destroy all data when you shutdown so you had a clean slate when starting up again.

The full version of Ganache comes with a GUI that provides controls to update configuration settings, and explore blocks, transactions and logs. You can also install a cli only version of Ganache through npm, but for now we will go ahead and install the full version.

Go to the Ganache page and there will be a button to download the version for your OS as seen in Figure 3-1 below



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.