70a2714570be401db0f54b35e711225f8a5df5de
Smart Contract Front End
This project will connect local blockchain, will call Metamask Google Chrome Exntension to fund the Smart Contract.
Import
https://docs.ethers.org/v5/getting-started/
https://github.com/ethers-io/ethers.js/releases
esm - support module
umd - follow UMD pattern (Universal Module Definition)
Test localhost hardhat node
yarn hardhat node-> get private keyyarn hardhat deploy-> get smart contract address- Ensure ABI updated -> ./artifacts/contracts/FundMe.sol/FundMe.json -> Only abi object
- Ensure Metamask Added localhost network
- Setting -> Networks -> Add a network
- RPC URL from VS code: http://127.0.0.1:8545/
- Default Hardhat node Chain ID from VS code: 31337
- Currency Symbol ETH (Or Any)
- Metamark add account via private key
- Connect With the added account
Description
Learning project: vanilla JS + ethers.js dApp frontend for the FundMe smart contract - MetaMask wallet, fund/withdraw/balance, Chainlink price feed, local Hardhat node.
Readme
415 KiB
Languages
JavaScript
92%
HTML
8%