Wednesday, July 3, 2024

Electrum load_wallet by way of json-rpcs doesn’t settle for “pockets” parameter

Evidently the “pockets” parameter shouldn’t be acknowledged by the “load_wallet” technique within the context of the JSON-RPC name you’re making.

One answer could possibly be to go the pockets path as a command-line argument when beginning the JSON-RPC server. For instance, if you’re utilizing Electrum, you can begin the server with the next command:

electrum --testnet --rpcuser=<username> --rpcpassword=<password> --rpchost=localhost --rpcport=8000 /electrum/testnet/wallets/orders001

This command begins the Electrum server in testnet mode and specifies the pockets path because the final argument.

As soon as the server is operating, you can also make JSON-RPC requests to it with out together with the “pockets” parameter within the payload. The server ought to robotically load the pockets specified within the command-line argument.

Alternatively, you can attempt utilizing the “load_wallet_file” technique as a substitute of “load_wallet”. In keeping with the Electrum documentation, “load_wallet_file” takes a single argument, which is the trail to the pockets file. Right here is an instance payload:

{"jsonrpc":"2.0","id":"take a look at","technique":"load_wallet_file","params":["/electrum/testnet/wallets/orders001"]}

Be aware that the pockets path is handed as an array aspect within the “params” area, not as a separate “pockets” parameter.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles