Skip to content

createAddress

katz edited this page Mar 26, 2021 · 4 revisions

The createAddress method creates an additional address in your wallet.

Request Format

JSON-RPC

{  
   "method":"createAddress"
}

Request Details:

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

Response Format:

JSON-RPC

{
    "jsonrpc": "2.0",
    "result": {
        "address": "ccx7L59nUL2jWiyGwfrj......fV9ZZvkAu8j2efKjZzA"
    }
}

Response Details:

Argument Description Format
address Created address string

Possible Errors:

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