What is Nostr?
jex
npub1ru9…35qe
2024-01-24 16:44:59
in reply to nevent1q…ts5v

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"])
Author Public Key
npub1ru9hzql8n8nqkakcfxljd9kjtqsywfse6kcy2w78s89n77qqs3msgl35qe