Retrive Keys from Wallet
List Public Keys in Wallet
To list all public keys in your wallet, you can execute the following command:
List Public Keys in Wallet
cline wallet keys
This command will list all public keys in your wallet.
Example Output
[
"INE5mJtUvzvZ8...",
"INE5mJtUvzvZ8...",
...
]
List All Keypairs in Wallet
To list all keypairs in your wallet, you can execute the following command:
List All Keypairs in Wallet
cline wallet private_keys
This command will list all keypairs in your wallet.
Example Output
Key pairs:
{
"public_key": "INE5mJtUvzvZ8...",
"private_key": "5JtUvzvZ8..."
},
{
"public_key": "INE5mJtUvzvZ8...",
"private_key": "5JtUvzvZ8..."
},
...
]
Retrieve Specific Private Key
To retrieve the private key of a specific public key in your wallet, you can execute the following command:
Retrieve Private Key
cline wallet get_private_key <public_key>
Example Command
- Input
cline wallet get_private_key INE8kNRVxYtpsXBTkaBwpAu2aPedivgu2ZqZpN59kxWTS7Rvnxazz
--password PW5Ji9WsBvcSaGy924pyhUieZAhpGhigY3PMzvUDB9ncrSuqFWFQo - Output
Matching key pairs:
[
"INE8kNRVxYtpsXBTkaBwpAu2aPedivgu2ZqZpN59kxWTS7Rvnxazz",
"5KPpEdY5hte6ZzDb5hvCHHrHcnLFecc94bWLdqHwziux6TZQDsX"
]
Important
If --password
flag is not provided, you will be prompted to enter the wallet password.
Also wallet must be unlocked to retrieve private key.