<
 
 
 
 
×
>
hide You are viewing an archived web page, collected at the request of Ethereum Foundation using Archive-It. This page was captured on 05:05:56 May 01, 2021 , and is part of the Community collection. The information on this web page may be out of date. See All versions of this archived page. Loading media information

ethjs-query throwing error eth.getBalance('0x407d73d8a49eeb85d32cf465507dd71d507100c1',cd)

sriharikapusriharikapu Kula LampurMember Posts: 4
>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:
Sign In or Register to comment.