question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remote Node get_balance throw Exception

See original GitHub issue

NetworkAPI.connect_to_node(user='use', password='password', host='ip_here') print(NetworkAPI.get_balance('addr_here'))

ERROR: Traceback (most recent call last): File "/tst.py", line 5, in <module> print(NetworkAPI.get_balance('addr_here')) File "/venv/lib/python3.8/site-packages/bit/network/services.py", line 501, in get_balance return api_call(address) File "/venv/lib/python3.8/site-packages/bit/network/services.py", line 37, in get_balance b = Decimal(self.getreceivedbyaddress(address, 0)) File "/venv/lib/python3.8/site-packages/bit/network/services.py", line 114, in __call__ raise BitcoinNodeException("Error in RPC call: " + str(responseJSON["error"])) bit.exceptions.BitcoinNodeException: Error in RPC call: {'code': -4, 'message': 'Address not found in wallet'}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
ghostcommented, Jun 23, 2020

Looks like it: https://github.com/ofek/bit/blob/991d7f17bea00b718de0c5950a4637ef98fc16e3/docs/source/guide/remotenode.rst#adding-an-address-to-the-internal-wallet-of-a-node

Seems like the docs on https://ofek.dev/bit/ are out of date. @ofek, is there any way you could update those? I don’t see the Remote Node page.

0reactions
ghostcommented, Jun 30, 2020

Mind if I close this out? Or feel free to close it yourself if you feel it’s ready.

Read more comments on GitHub >

github_iconTop Results From Across the Web

web3.eth — web3.js 1.0.0 documentation - Read the Docs
Incorrect checksum addresses will throw an error when passed into functions. If you want to circumvent the checksum check you can make an...
Read more >
How to Throw Exceptions in Node.js - Rollbar
Node.js Throw Exception; How do you protect your application against exceptions? Wrapping Up; Track, Analyze and Manage Errors With Rollbar.
Read more >
Invalid JSON RPC response: undefined, when running web3 ...
I had the same issue, and just found the solution. This response happens when testrpc is not running, as stated by @Abhishek in...
Read more >
The Complete Guide to Full Stack Ethereum and EVM ...
Any idea why getBalance in App.js would throw. Error: call revert exception (method="balanceOf(address)", errorSignature=null, ...
Read more >
create/import an HD wallet from xpubkey [watch only prupose ...
My purpose is to use getBalance() to track this HD wallet total ... the m/ I get throw new Error('cannot derive child of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found