post https://api.infstones.com/neo/mainnet/
Exports the private key of the specified address.
Before you can invoke this method, wallet must be open first.
Parameters
Object Name | Required | Type | Detail |
---|---|---|---|
ADDRESS | ✅ | String | The 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"
}