On a tutorial in Youtube it uses pybitcointools. Upon searching it's github repository, I have found that it was not maintained anymore. Are there any alternative to this library which can get wallet balance?

Thank you.


1 Answer 1


Assuming you have a Bitcoin node to execute RPC calls against (i.e. you're running bitcoind with the RPC turned on), you can do this rather simply with pyjsonrpc:

#!/usr/bin/env python
from pyjsonrpc import ServiceProxy

bitcoin = ServiceProxy("")  # this is your bitcoind node and RPC port
bitcoin.username = 'testuser'  # rpcuser
bitcoin.password = 'testpass'  # rpcpassword
  • Thank you @Motoma. I am not aware if I have run any local RPC node unless pybitcointools is running it on the background. My intent is to have a personalized payment gateway and be able to track balances of multiple wallet addresses.
    – CodeJammer
    Commented Sep 27, 2018 at 23:20
  • @CodeJammer In that case, you'll need to run a local Bitcoin node in addition to the script above. Doing that is probably beyond the scope of this question, but Bitcoin Core or Bcoin are two such options for running a local node.
    – Motoma
    Commented Sep 28, 2018 at 12:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.