crypto-rpc-simple-cli You will need python 3 and python-bitcoinrpc to be able to run this bit of code pip install python-bitcoinrpc