import

Add a new key to sui.keystore

Add a new key to sui.keystore using either the input mnemonic phrase or a private key (from the Wallet), the key scheme flag {ed25519 | secp256k1 | secp256r1} and an optional derivation path. The default derivation paths are m/44'/784'/0'/0'/0' for ed25519, m/54'/784'/0'/0/0 for secp256k1, and m/74'/784'/0'/0/0 for secp256r1. This command supports mnemonic phrases of word lengths 12, 15, 18, 21, and 24.

Usage

movement sui keytool import [OPTIONS] <INPUT_STRING> <KEY_SCHEME> [DERIVATION_PATH]

Arguments

  • <INPUT_STRING> The input mnemonic phrase or private key.

  • <KEY_SCHEME> The key scheme flag. Valid options are: ed25519, secp256k1, secp256r1.

  • [DERIVATION_PATH] An optional derivation path. Defaults to m/44'/784'/0'/0'/0' for ed25519, m/54'/784'/0'/0/0 for secp256k1, and m/74'/784'/0'/0/0 for secp256r1.

Options

  • --json Return command outputs in JSON format.

  • -h, --help Print help.

  • -V, --version Print version.

Last updated