Friday, June 21, 2024
HomeBitcoinpython - RPC hook up with Umbrel

python – RPC hook up with Umbrel


I’ve an Umbrel Node on my RaspberryPi4. It’s related to the identical router as my Pc, however someway I can not hook up with it utilizing python (bitcoinrpc).

My Code

rpc_user = "umbrel"
rpc_pass = "password"
rpc_host = "192.168.1.122"
rpc_port = "8332"
rpc_connection = f"http://{rpc_user}:{rpc_pass}@{rpc_host}:{rpc_port}"
print(rpc_connection)
rpc_client = AuthServiceProxy(rpc_connection, timeout=240)

This all the time leads to the identical error

Traceback (most up-to-date name final):
  File "/media/donbolli/code/python/bitcoin/crawler/take a look at.py", line 10, in <module>
    rpc_client = AuthServiceProxy(rpc_connection, timeout=240)
  File "/media/donbolli/code/python/bitcoin/venv/lib/python3.10/site-packages/bitcoinrpc/authproxy.py", line 87, in __init__
    if self.__url.port is None:
  File "/usr/lib/python3.10/urllib/parse.py", line 185, in port
    increase ValueError(f"Port couldn't be solid to integer worth as {port!r}")
ValueError: Port couldn't be solid to integer worth as 'password'

What am I lacking? What is completed fallacious?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments