Skip to content

Instantly share code, notes, and snippets.

@mcveat
Created August 1, 2017 22:36
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mcveat/4e55372d1568063d6902e72a4c1eb29d to your computer and use it in GitHub Desktop.
create-accounts.js
bob = personal.newAccount("bobs password")
john = personal.newAccount("johns password")
miner.setEtherbase(bob)
miner.start(1)
admin.sleepBlocks(2) // halts script execution until 2 blocks are mined
miner.stop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment