go-ethereum/cmd/mist/assets/ext/ethereum.js/example/node-app.js
obscuren 73dcbf7ba2 Add 'cmd/mist/assets/ext/ethereum.js/' from commit '63d9c070ef7637a3d570a5a45ea931c1680ebc02'
git-subtree-dir: cmd/mist/assets/ext/ethereum.js
git-subtree-mainline: f80fe9776335312615ce3b1a565e4f48e171ab0d
git-subtree-split: 63d9c070ef7637a3d570a5a45ea931c1680ebc02
2015-01-28 23:33:24 +01:00

13 lines
263 B
JavaScript

#!/usr/bin/env node
var web3 = require("../index.js");
web3.setProvider(new web3.providers.HttpSyncProvider('http://localhost:8080'));
var coinbase = web3.eth.coinbase;
console.log(coinbase);
var balance = web3.eth.balanceAt(coinbase);
console.log(balance);