Ganache is a piece of software that allows us to create a local blockchain that we can use to test deploying and interacting with smart contracts.
- Download the latest version of Ganache
Ganache | Truffle Suite
- Make the Ganache binary executable
sudo chmod u+x ~/Downloads/ganache-2.5.4-linux-x86_64.AppImage
- Run Ganache
~/Downloads/ganache-2.5.4-linux-x86_64.AppImage
- Set up the workspace
- Click "New Workspace"
- Give it a name
- Click Accounts & Keys and set the number of accounts and balances you want to test with - 100 eth / 10 accounts is fine
- Click "Autogenerate HD Mnemonic", leave "Lock accounts" off
- Note Server Hostname and Port number on "Server" tab
- Click "Save Workspace"
- Note a few of the public/private key pairs for the accounts to use later on (click on the key icon to the right of each address)
Once this step has been completed click here to move on to the next step: 3. Metamask
Back to Home