Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Web3 = require('web3');
- window.addEventListener('load', function() {
- window.web3 = new Web3(web3.currentProvider)
- var ETH_CLIENT = window.web3
- web3.eth.getAccounts(function(error, accounts) {
- if (error) {
- console.log(error);
- }
- console.log('account0 ='+accounts[0]);
- console.log('account1 = '+accounts[1]);
- });
- })
Add Comment
Please, Sign In to add comment