Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- web3.eth.getBalance(myAccount, web3.eth.defaultBlock,
- function(error,result){
- if(error) {
- console.error("Error while retrieving the balance for address["+myAccount+"]: "+err);
- } else {
- var balance = web3.fromWei(result.toNumber());
- console.debug("Balance for address["+myAccount+"]: "+balance);
- }
- }
- );
- # testrpc -m "Insert your unlock words here" -u 0 -u 1
Add Comment
Please, Sign In to add comment