Skip to content

Instantly share code, notes, and snippets.

@drcode
drcode / balance.html
Created February 4, 2015 04:05
Version of balance.html for use with latest go-ethereum
<html>
<head>
<script type="text/javascript" src="bignumber.min.js"></script>
<script type="text/javascript" src="ethereum.js"></script>
<script type="text/javascript">
var web3 = require('web3');
web3.setProvider(new web3.providers.HttpSyncProvider('http://localhost:8080'));
var coinbase = web3.eth.coinbase;