title | type |
---|---|
Load Wallet |
core |
Loads another wallet from file. If wallet is already loaded, it won't reload it but just return it's primary address.
Parameter | Type | Required | Description |
---|---|---|---|
file | String | Yes | Filename of the wallet file. |
password | String | Yes | Password of the provided wallet. |
Error | Description |
---|---|
RPC_WALLET_ERROR | An error occurred. File doesn't exist, is incorrect or incorrect password is used. |
RPC_INTERNAL_ERROR | An unknown error occurred in the node. Please check the node log for details. |
- a JSON object with the wallet bytes encoded as a hexadecimal string.
GET http://localhost:8081/loadWallet
{
"result": "4iMKArchGjmLsZFsj2tYrBgPjjypvEwquB2pnbEvYAyihSeEi1FN5XBsWru2iKDXK",
"error": null,
"id": null
}