Skip to content

BipRaider/marketplace-eth-next

Repository files navigation

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