Skip to content
This repository has been archived by the owner on Oct 27, 2023. It is now read-only.

Latest commit

 

History

History
64 lines (40 loc) · 1.93 KB

GANACHE.md

File metadata and controls

64 lines (40 loc) · 1.93 KB

1. GANACHE

Ganache is a personal blockchain for rapid Ethereum and Corda distributed application development. Ganache can be used for the entire development cycle. enabling you to develop, deploy, and test your dApps in a safe and deterministic environment.

Read more about in doc.

2. CONFIGURING GANACHE WORKSPACE.

Complete the Ganache Quick Start before move on.

2.1 STARTING GANACHE

  1. After installed ganache, create a new ethereum workspace.

  1. On the server tab, change the port number to 8545.
    this step is important to run the deploy script successfully.

  1. On Ganache Home, choose one wallet and copy the private key.


2.2 IMPORT ACCOUNT AND NETWORK TO METAMASK

  1. Go to Metamask, click on Import account and fill in the Private Key.


  1. Then click on Add network and fill in with ganache info.


3. UPDATE ENV FILE.

Don't forget to update your .ENV file with ganache info.

# .env

# Create a new infura provider (or anyother web3 provider) and add the id here
NEXT_PUBLIC_WEB3_CONNECTION=HTTP://localhost:8545

# MetaMask Network Configs
NEXT_PUBLIC_NATIVE_TOKEN_NAME=ETH
NEXT_PUBLIC_NEEDS_CHAIN_ID=1337
NEXT_PUBLIC_NEEDS_CHAIN_NAME=localhost
NEXT_PUBLIC_BLOCKSCAN_LINK=