Friday, November 22, 2024

bitcoind – Issues with a number of wallets on RPC in bitcoin-core

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 hook up 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 working 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__
    elevate JSONRPCException(response['error'])
bitcoinrpc.authproxy.JSONRPCException: -18: Requested pockets doesn't exist or is just not 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 data from that pockets!

And I’ve created my pockets utilizing: bitcoin-cli -testnet createwallet testingwallet

Any assistance on this is able to actually be appreciated!

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles