Electrum load_wallet by json-rpcs doesn’t settle for “pockets” parameter – CoinNewsTrend

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


Evidently the “pockets” parameter will not be acknowledged by the “load_wallet” methodology within the context of the JSON-RPC name you’re making.

One answer may very well 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 could possibly 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 could possibly attempt utilizing the “load_wallet_file” methodology as an alternative 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":"check","methodology":"load_wallet_file","params":["/electrum/testnet/wallets/orders001"]

Notice that the pockets path is handed as an array ingredient within the “params” discipline, not as a separate “pockets” parameter.



Supply hyperlink