I’ve been taking part in round a bit with Bitcoin Core (model 23.0), extra particularly connecting to totally different wallets in Bitcoin Core by RPC in Python. I’ve discovered this library and tried to connect with my pockets(s) utilizing this code:
from bitcoinrpc.authproxy import AuthServiceProxy
conn = AuthServiceProxy("http://myusername:[email protected]:18332/pockets/testingwallet")
print(conn.getwalletinfo())
However when operating this i get this stacktrace:
Traceback (most up-to-date name final):
File "/dwelling/kebab/Desktop/pron/testing.py", line 24, in <module>
print(a.getwalletinfo())
File "/dwelling/kebab/.native/lib/python3.8/site-packages/bitcoinrpc/authproxy.py", line 141, in __call__
increase JSONRPCException(response['error'])
bitcoinrpc.authproxy.JSONRPCException: -18: Requested pockets doesn't exist or just isn't loaded
Although what I’ve seen is that if i load the pockets utilizing bitcoin-cli -testnet loadwallet testingwallet
. Then i can run RPC instructions however solely get information from that pockets!
And I’ve created my pockets utilizing: bitcoin-cli -testnet createwallet testingwallet
Any assistance on this may actually be appreciated!