Skip to content

getSpendKeys

AxVultis edited this page Nov 12, 2022 · 4 revisions

The getSpendKeys method returns your private and public spend keys.

Request Format

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 9,
  "method": "getSpendKeys",
  "params": {
    "address": "ccx7DgrFtjo5wRXewAXscxYuL9aJtN1qVUnyLtDjje6PYjtPCYXihJVK174vDU5hw2eXjGwyiC8JfT3vPaUSmg9g1utGPJA7es"
  }
}

Request Details:

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

Response Format

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 9,
  "result": {
    "privateSpendKey": "6591766b9df33a34787adf53773f1024f869b930da72bb271c18415f08bedc0a",
    "publicSpendKey": "15a13d1c7e1d8639f4b306356dbebb264cb6ab7354a6294202b34b165cbdc1ee"
  }
}

Response Details:

Argument Description Format
spendSecretKey Private spend key string
spendPublicKey Public spend key string
Clone this wiki locally