dumpprivkey

Exports the private key of the specified address.

📘

Before you can invoke this method, wallet must be open first.

Parameters

Object NameRequiredTypeDetail
ADDRESSStringThe addresses to export the private key.
"params": [
    "NSk8xEBm3FNAFDueUf21cMugkWidJn5N1n"
]

Result

The private key of the given address.

Example

Request

curl <your-endpoint> \
   -X POST \
   -H "Content-Type: application/json" \
   -d '{"jsonrpc": "2.0", "method": "dumpprivkey", "params":["NSk8xEBm3FNAFDueUf21cMugkWidJn5N1n"],"id": 1}'

Return

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "QZA2VMgxdftok4ejoGFNNqvieEjxw9QWuBy8G6pSzezNyNg66a8k"
}
Language
Click Try It! to start a request and see the response here!