Skip to main content

importelectrumwallet

importelectrumwallet "filename" index

Imports keys from an Electrum wallet export file (.csv or .json)

# Import the wallet
yerbas-cli importelectrumwallet "test.csv"
yerbas-cli importelectrumwallet "test.json"

Arguments

ArgumentTypeDescription
"filename"(string)The Electrum wallet export file, should be in csv or json format
index(numeric)Rescan the wallet for transactions starting from this block index
Arguments:
1. "filename" (string, required) The Electrum wallet export file, should be in csv or json format
2. index (numeric, optional, default=0) Rescan the wallet for transactions starting from this block index

Output

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

Examples

# Import using the json rpc call
curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importelectrumwallet", "params": ["test.csv"] }' -H 'content-type: text/plain;' http://127.0.0.1:9998/
curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importelectrumwallet", "params": ["test.json"] }' -H 'content-type: text/plain;' http://127.0.0.1:9998/