Skip to content

createAddress

AxVultis edited this page Nov 12, 2022 · 4 revisions

The createAddress method creates an additional address in your wallet.

Request Format

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "createAddress"
}

Request Details:

Argument Mandatory Description Format
privateSpendKey No Private spend key. If privateSpendKey a wallet address is created with that key, effectively importing a wallet. string
publicSpendKey No Public spend key. If publicSpendKey was specified, RPC Wallet creates view address string

Response Format

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "address": "ccx7Sh1w3q9jmrzw3XkKPRBa4ZB8mxp5rH4Rm4cWJgDYNNahMKoEuYxgTfHaWbAYRPdUhEXXEeKeEG7okKGHA8CZ3onHF7W6gc"
  }
}

Response Details:

Argument Description Format
address Created address string

Possible Errors

  • Parse error - Incorrect formatting, JSON, or quotation marks used.
Clone this wiki locally