Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 823 Bytes

README.md

File metadata and controls

49 lines (33 loc) · 823 Bytes

Getting Started

First, run the development server:

npm run dev

Some commands for working with the console

  • 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")