Skip to main content

importwallet

importwallet "filename"

Imports keys from a wallet dump file (see dumpwallet). Requires a new wallet backup to include imported keys.

# Dump the wallet
yerbas-cli dumpwallet "test"

# Import the wallet
yerbas-cli importwallet "test"

Arguments

ArgumentTypeDescription
"filename"(string)The wallet file
Arguments:
1. "filename" (string, required) The wallet file

Output

ResultTypeDescription
.........
Result:
{
...
}

Examples

curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importwallet", "params": ["test"] }' -H 'content-type: text/plain;' http://127.0.0.1:9998/