<!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; | |
}); | |
MetaCoin.deployed().then(function(instance) { | |
return instance.getOriginAddress.call(); | |
}).then( function(originAddress) { | |
document.body.innerHTML = document.body.innerHTML + "<br>Origin Address " + originAddress; | |
}); | |
}; | |
</script> | |
</head> | |
<body> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment