Skip to content

getSpendKeys

katz edited this page Aug 17, 2020 · 4 revisions

getSpendKeys method returns your private and public spend keys.

Request Format:

JSON-RPC

{
  "params": {
    "address": "ccx7DgrFtjo5wRXewAXscxYuL9aJtN1qVUnyLtDjje6PYjtPCYXihJVK174vDU5hw2eXjGwyiC8JfT3vPaUSmg9g1utGPJA7es"
  },
  "method": "getSpendKeys"
}

Request Details:

Argument Mandatory Description Format
address Yes Valid address that exists in this container string

Response Details:

Argument Description Format
spendSecretKey Private spend key string
spendPublicKey Public spend key string

Response Format:

JSON-RPC

{
    "jsonrpc": "2.0",
    "result": {
        "privateSpendKey": "6591766b9df33a34787adf53773f1024f869b930da72bb271c18415f08bedc0a",
        "publicSpendKey": "15a13d1c7e1d8639f4b306356dbebb264cb6ab7354a6294202b34b165cbdc1ee"
    }
}
Clone this wiki locally