figured it out. learned much more than I anticipated, alot about bitcoin.conf

but then the python code to specify the network you want is simple:

import bitcoin

from bitcoin.rpc import RawProxy

bitcoin.SelectParams("regtest")

# Create a connection to local Bitcoin Core node (regtest)

p = RawProxy()

info = p.getblockchaininfo()

print(info["blocks"])

Reply to this note

Please Login to reply.

Discussion

No replies yet.