dumpprivkey

Then the importprivkey can be used with this output Note: This command is only compatible with legacy wallets.

Argument #1-address

Type: string, Required

Description: The bitcoin address for the private key

Result

Type: string (hex)

Description: The private key