bitcoind.app
CommandsGuidesContact ↗
Home/Wallet/dumpprivkey
Wallet

dumpprivkey

Reveals the private key corresponding to 'address'. Only for legacy wallets.

Parameters

addressstringREQUIRED
The bitcoin address for the private key

Returns

stringThe private key

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"dumpprivkey","params":["address"]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

"5HueCGU8rMjxEXxiPuD5BDku4MkFqeZyd4dZ1jvhTVqvbTLvyTJ"
← Previous
createwallet
Next →
getbalance

More Wallet Commands

abandontransactioncreatewalletgetbalancegetnewaddressgettransactiongetwalletinfo

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗