show_priv_key
The show_priv_key
method returns the private key of the specified coin
in a format compatible with coin
wallets.
The output can be used for the importprivkey
method (UTXO coins) or as a private key for MyEtherWallet (ETH/ERC20).
Structure | Type | Description |
---|---|---|
coin | string | the name of the coin of the private key to show |
Structure | Type | Description |
---|---|---|
coin | string | the name of the coin |
priv_key | string | the private key of the coin |
This method is deprecated in favor of the v2.0 get_private_keys
method. The new method offers several advantages:
- No requirement to activate coins prior to private key export
- Support for Hierarchical Deterministic (HD) derivation paths with configurable account and address indices
- Batch export capabilities for multiple coins
- Enhanced protocol support including ZHTLC coins with viewing keys
POST
show_priv_key{
"userpass": "RPC_UserP@SSW0RD",
"method": "show_priv_key",
"coin": "HELLOWORLD"
}
{
"coin": "HELLOWORLD",
"priv_key": "UvCjJf4dKSs2vFGVtCnUTAhR5FTZGdg43DDRa9s7s5DV1sSDX14g"
}
{
"coin": "ETH",
"priv_key": "0xb8c774f071de08c7fd8f62b97f1a5726f6ce9f1bcf141b70b86689254ed6714e"
}