Import View Only Account

Create a view-only account by importing the private key from an existing account. Note: a single wallet cannot have both the regular and view-only versions of an account.

Required ParamPurposeRequirements

view_private_key

The view private key of this account

spend_public_key

The spend public key of this account

Optional ParamPurposeRequirements

name

A label for this account.

A label can have duplicates, but it is not recommended.

first_block_index

The block from which to start scanning the ledger.

All subaddresses below this index will be created.

next_subaddress_index

The next known unused subaddress index for the account.

Example

{
    "method": "import_view_only_account",
    "params": {
        "view_private_key": "0a20952e7ea32b80f5249c8fa470913dd67b1f722e12f516d0aff8a64f95faf6cb07",
        "spend_public_key": "0a20e22bcedd966ac737cbe53445dc983433072b771440e7c9f2619f775db2cc0448",
        "name": "Alice",
        "first_block_index": "1769454",
        "next_subaddress_index": "2"
    },
    "jsonrpc": "2.0",
    "id": 1
}

Last updated