I get this error when I try dumpprivkey command "Error: Please enter the wallet passphrase with walletpassphrase first. (code -13)" Thank you
You encrypt 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.