I used to run BitcoinCore on my PC, and with the BitcoinLib library I could connect to it and query for blocks, transactions, etc. In Umbrel I installed a nice app: BTC RPC Explorer, it is easy to use if you enter the information interactively. Is it also possible to use it to query Umbrel from Python? If not, is there another way to do this?
Edit: I am trying
user = 'umbrel'
pwd = 'fdG........_Kw='
host = 'xx2....5frwad.onion'
port = '8332'
bdc = BitcoindClient(
base_url=f"https://{user}:{pwd}@{host}:{port}"
)
and getting the error
for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno 11001] getaddrinfo failed.
Also tried building the connection string as
base_url=f"btcrpc://{user}:{pwd}@{host}:{port}"
with the same result.