npm i ethers
npm i dotdev
node app.js
- Case 1: Get balance
- Case 2: Get latestBlock
- Case 3: Send transaction
Run server
npx http-server
- Enter this url (http://192.168.1.103:8080/web/interactWithContract.html)
- click button "Send NFT" => console will got error because no more NFT balance
- click button "check Balance" => console will show '1n'
node node .\interactContract.js