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.
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.
Failed when we are trying to transfer to another account.