>const BN = require('bn.js');
undefined
>const HttpProvider = require('ethjs-provider-http');
undefined
>const Eth = require('ethjs-query');
undefined
>const eth = new Eth(new HttpProvider('
http://localhost:8545'));
undefined
>eth.getBalance('0x407d73d8a49eeb85d32cf465507dd71d507100c1', cb);
(node:7003) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): Error: [ethjs-rpc] error with payload {"id":3396214233204,"jsonrpc":"2.0","params":["0x407d73d8a49eeb85d32cf465507dd71d507100c1","0x1"],"method":"eth_getBalance"} Error: [ethjs-provider-http] Invalid JSON RPC response from provider
host:
http://localhost:8545 response: ""
responseURL: undefined
status: 0
statusText:
(node:7003) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 5): Error: [ethjs-rpc] error with payload {"id":3396214233204,"jsonrpc":"2.0","params":["0x407d73d8a49eeb85d32cf465507dd71d507100c1","0x1"],"method":"eth_getBalance"} Error: [ethjs-provider-http] Invalid JSON RPC response from provider
host:
http://localhost:8545 response: ""
responseURL: undefined
status: 0
statusText: