Guest User

Untitled

a guest
Nov 22nd, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. Using web3 detected from external source. If you find that your accounts don't appear or you have 0 MetaCoin, ensure you've configured that source properly. If using MetaMask, see the following link. Feel free to delete this warning. :) http://truffleframework.com/tutorials/truffle-and-metamask
  2.  
  3. web3.eth.getBalance(myAccount, web3.eth.defaultBlock,
  4. function(error,result){
  5. if(error) {
  6. console.error("Error while retrieving the balance for address["+myAccount+"]: "+err);
  7. } else {
  8. var balance = web3.fromWei(result.toNumber());
  9. console.debug("Balance for address["+myAccount+"]: "+balance);
  10.  
  11. }
  12. }
  13. );
  14.  
  15. # testrpc -m "Insert your unlock words here" -u 0 -u 1
Add Comment
Please, Sign In to add comment