Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. Web3 = require('web3');
  2. web3 = new Web3('localhost:8545');
  3. web3.eth.accounts.create(); //this gave me the address and the private key for the first account
  4. web3.eth.accounts.create("aaabbbb"); //this gave me the address and the private key for the 2nd account
  5. web3.eth.getAccounts(console.log); //the list this gives doesn't have the two accounts I created by the above steps
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement