Electrum load_wallet through json-rpcs does not accept “wallet” parameter

on

|

views

and

comments


It seems that the “wallet” parameter is not recognized by the “load_wallet” method in the context of the JSON-RPC call you are making.

One solution could be to pass the wallet path as a command-line argument when starting the JSON-RPC server. For example, if you are using Electrum, you could start the server with the following command:

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

This command starts the Electrum server in testnet mode and specifies the wallet path as the last argument.

Once the server is running, you can make JSON-RPC requests to it without including the “wallet” parameter in the payload. The server should automatically load the wallet specified in the command-line argument.

Alternatively, you could try using the “load_wallet_file” method instead of “load_wallet”. According to the Electrum documentation, “load_wallet_file” takes a single argument, which is the path to the wallet file. Here is an example payload:

{"jsonrpc":"2.0","id":"test","method":"load_wallet_file","params":["/electrum/testnet/wallets/orders001"]}

Note that the wallet path is passed as an array element in the “params” field, not as a separate “wallet” parameter.

Share this
Tags

Must-read

The Great Bitcoin Crash of 2024

Bitcoin Crash The cryptocurrency world faced the hell of early 2024 when the most popular Bitcoin crashed by over 80% in a matter of weeks,...

Bitcoin Gambling: A comprehensive guide in 2024

Bitcoin Gambling With online currencies rapidly gaining traditional acceptance, the intriguing convergence of the crypto-trek and gambling industries is taking place. Cryptocurrency gambling, which started...

The Rise of Bitcoin Extractor: A comprehensive guide 2024

Bitcoin Extractor  Crypto mining is resources-thirsty with investors in mining hardware and those investing in the resources needed as the main beneficiaries. In this sense,...

Recent articles

More like this