Skip to content

Instantly share code, notes, and snippets.

@muellerberndt
Last active January 9, 2019 03:30
Show Gist options
  • Save muellerberndt/0764905d698200d76f7d454ea42ed79f to your computer and use it in GitHub Desktop.
Save muellerberndt/0764905d698200d76f7d454ea42ed79f to your computer and use it in GitHub Desktop.
Clear a go-ethereum wallet
gasPrice = web3.toWei(1.5, "gwei");
eth.sendTransaction({from: sender, to: receiver, gas: 21000, gasPrice: gasPrice, value: eth.getBalance(sender) - (gasPrice * 21000)})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment