Version
Show / Hide Table of Contents

dumpprivkey Method

Exports the private key of the specified address.

Before you can invoke this method you must:

  • Open the wallet in NEO-CLI.

  • Install the plugin RpcWallet .

Parameters

address: To export the addresses of the private key, the address is required as a standard address.

Example

Request body:

{
  "jsonrpc": "2.0",
  "method": "dumpprivkey",
  "params": ["ASMGHQPzZqxFB2yKmzvfv82jtKVnjhp1ES"],
  "id": 1
}

Response body:

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "L3FdgAisCmV******************************9XM65cvjYQ1"
}

Response Description:

Returns the private key of the standard address.