i5possible / ethers-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ethers-example

This is an example of a project using Ethers to interact with the Ethereum blockchain.

We integrate the Ethers with MetaMask and trying to connect/disconnect to the wallet and change the account. We are able to get the active address and get the balance.

We used ganache-cli to create a test Ethereum blockchain to test. You could install it using npm i -g ganache-cli && ganache-cli. See MetaMask for more information.

Run

Start a test network using ganache-cli.

Run npm install && npm run start to start this project.

Connect the wallet using Localhost:8545 at MetaMask. Restore the account to the wallet.

Known issues

Failed when we are trying to transfer to another account.

About


Languages

Language:JavaScript 66.2%Language:HTML 21.1%Language:CSS 12.8%