I get this error when I try dumpprivkey command "Error: Please enter the wallet passphrase with walletpassphrase first. (code -13)" Thank you
You encrypted your wallet with a passphrase, to dump the private key you have to unlock it first.
walletpassphrase "your-passphrase" timeout
Arguments:
1. passphrase (string, required) The wallet passphrase
2. timeout (numeric, required) The time to keep the decryption key in seconds; capped at 100000000 (~3 years
After doing that you should be able to dump the keys using dumpprivkey on the BGL Core console.
Thank you all! It worked after I unlocked the wallet.
After dumprivkey command, those keys can be later used if I'll need to restore the backup.dat file?