Load Wallet

Load Wallet

Loads another wallet from file. If wallet is already loaded, it won't reload it but just return it's primary address.

Method: loadWallet

Input parameters:

ParameterTypeRequiredDescription
fileStringYesFilename of the wallet file.
passwordStringYesPassword of the provided wallet.

Errors:

ErrorDescription
RPC_WALLET_ERRORAn error occurred. File doesn't exist, is incorrect or incorrect password is used.
RPC_INTERNAL_ERRORAn unknown error occurred in the node. Please check the node log for details.

Output:

  • a JSON object with the wallet bytes encoded as a hexadecimal string.

Example:

GET http://localhost:8081/loadWallet

{
  "result": "4iMKArchGjmLsZFsj2tYrBgPjjypvEwquB2pnbEvYAyihSeEi1FN5XBsWru2iKDXK",
  "error": null,
  "id": null
}