aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/mist/assets/ext/ethereum.js/example/node-app.js
blob: 8c2fc0ba341bf5370c58016accd4e2add901f369 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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);