- This is a Next.js project bootstrapped with.
create-next-app
.- infura
First, run the development server:
npm run dev
- Running console for goerli network
npm run truffle-con-goerli
- Get all account from wallet
const acc = await web3.eth.getAccounts()
- Check balance
await web3.eth.getBalance(acc[0])
- Get contract
const inst = await CourseMarketplace.deployed()
- Get the ether from the contract into the owner wallet
- 1 eth === 1000000000000000000 gwai
- withdraw work with gwai
inst.withdraw("7500000000000000")