mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-25 21:07:17 +00:00
13 lines
263 B
JavaScript
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);
|
|
|