C
C
calcium2021-08-05 21:51:30
Python
calcium, 2021-08-05 21:51:30

How to send rpc command through python?

How to send rpc command via rpc accesses (ip, port, rpcuser, rpcpassword) in python?
Tried to use bitcoinrpc but connection fails. The command itself needs to be sent to get the wallet address. I checked all addresses and passwords, I do not deny that I can be wildly stupid.

from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException
rpc_connection = AuthServiceProxy(f"http://{rpc_user}:{rpc_password}@{ip_addr}:{port}")

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question