Created
February 17, 2017 15:48
-
-
Save ianmonkuk/8bc1b40ad14fe98ce5314ce36c933a41 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<script type="text/javascript" src="./app.js"></script> | |
<script> | |
window.onload = function() { | |
console.log( "Account" + web3.eth.accounts[2] ); | |
MetaCoin.deployed().then(function(instance) { | |
return instance.getBalance.call(web3.eth.accounts[2]); | |
}).then( function(balance) { | |
document.body.innerHTML = document.body.innerHTML + " balance " + balance; | |
}); | |
}; | |
</script> | |
</head> | |
<body> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment