jex on Nostr: figured it out. learned much more than I anticipated, alot about bitcoin.conf but ...
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"])
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"])