Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Web3 = require('web3');
- web3 = new Web3('localhost:8545');
- web3.eth.accounts.create(); //this gave me the address and the private key for the first account
- web3.eth.accounts.create("aaabbbb"); //this gave me the address and the private key for the 2nd account
- 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