Import Account

Import an existing account from the secret entropy.

Parameters

Required ParamPurposeRequirements

mnemonic

The secret mnemonic to recover the account.

The mnemonic must be 24 words.

key_derivation_version

The version number of the key derivation used to derive an account key from this mnemonic. The current version is 2.

Optional ParamPurposeRequirements

name

A label for this account.

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

next_subaddress_index

The next known unused subaddress index for the account.

first_block_index

The block from which to start scanning the ledger.

fog_report_url

fog_report_id

fog_authority_spki

Example

{
  "method": "import_account",
  "params": {
    "mnemonic": "sheriff odor square mistake huge skate mouse shoot purity weapon proof stuff correct concert blanket neck own shift clay mistake air viable stick group",
    "key_derivation_version": "2",
    "name": "Bob"
    "next_subaddress_index": 2,
    "first_block_index": "3500"
  },
  "jsonrpc": "2.0",
  "id": 1
}

Last updated