Heavily based on python-bitcoinrpc and Savoir but replacing the httplib with requests.
git clone https://github.com/chainstack/bitcoincliAfter cloning this repository, run:
python setup.py developUse the Bitcoin API documentacion and make calls to the wrapper.
Remember to replace the RPC variables with your Bitcoin node access credentials.
frombitcoincliimportBitcoinhost="nd-123-456-789.p2pify.com"port="80"username="user-name"password="pass-word-pass-word-pass-word"bitcoin=Bitcoin(username, password, host, port)
info=bitcoin.getblockchaininfo()
print(info)