Bitcoin

bitcoin core – Connect to RPC with .cookie file using python-bitcoinrpc?

That syntax makes sense. Look at this.

Equivalently, you can:

rpc_connection = AuthServiceProxy('http://<LINE_FROM_COOKIE_FILE>@127.0.0.1:8332')

yes:

rpc_connection = AuthServiceProxy('http://__cookie__:02a4a6120f20bbf2630b39bf28e30683f4a6325c6831c9819ff64d2c5a466582@127.0.0.1:8332')

The 64 hexadecimal digits after ‘:’ are the “password” (cookie contents).

Related Articles

Back to top button