A blockchain security practice site https://ethernaut.openzeppelin.com/
Enter Game
- Connect Metamask wallet
- Open developer tools console
- Get test ether from a Faucet
- Start the level instance
contract
will have the contract information required
Commands
player
: View your own player wallet addressawait getBalance(player)
: view your own balanceethernaut
: View sites main smart contractcontract
: View games main smart contractweb3.eth.getAccounts()
: View all accounts (player is one of them)contract.sendTransaction({value : web3.utils.toWei('0.00001', 'ether')})
: send transaction to smart contractcontract.<ABINAME>.sendTransaction({value : web3.utils.toWei('0.00001', 'ether')})
: send to a ABI