2014-11-05 19:46:01 +02:00
|
|
|
#!/usr/bin/env node
|
|
|
|
|
|
|
|
var web3 = require("../index.js");
|
|
|
|
|
2015-01-27 01:54:21 +02:00
|
|
|
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);
|
2014-11-05 19:46:01 +02:00
|
|
|
|