snrd keys add

Derive a new private key and encrypt to disk.

Usage

snrd keys add <name> [flags]

Flags

account
integer
Account number for HD derivation (less than equal 2147483647)
coin-type
integer
default:"60"
coin type number for HD derivation
dry-run
string
action, but don’t add key to local keystore
hd-path
string
Manual HD Path derivation (overrides BIP44 config)
help
string
for add
index
integer
Address index number for HD derivation (less than equal 2147483647)
interactive
string
prompt user for BIP39 passphrase and mnemonic
key-type
string
default:"eth_secp256k1"
Key signing algorithm to generate keys for
ledger
string
a local reference to a private key on a Ledger device
multisig
string
List of key names stored in keyring to construct a public legacy multisig key
multisig-threshold
integer
default:"1"
K out of N required signatures. For use in conjunction with —multisig
no-backup
string
print out seed phrase (if others are watching the terminal)
nosort
string
passed to —multisig are taken in the order they’re supplied
pubkey
string
Parse a public key in JSON format and saves key info to <name> file.
pubkey-base64
string
Parse a public key in base64 format and saves key info.
recover
string
seed phrase to recover existing key instead of creating
source
string
Import mnemonic from a file (only usable when recover or interactive is passed)

Global Flags

broadcast-mode
string
default:"sync"
Transaction broadcasting mode (sync|async)
chain-id
string
Specify Chain ID for sending Tx
fees
string
Fees to pay along with transaction; eg: 10aatom
from
string
Name or address of private key with which to sign
gas-adjustment
float
default:"1"
adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored
gas-prices
string
Gas prices to determine the transaction fee (e.g. 10aatom)
home
string
default:"/Users/prad/.sonr"
The application home directory
keyring-backend
string
default:"os"
Select keyring’s backend (os|file|test)
keyring-dir
string
The client Keyring directory; if omitted, the default ‘home’ directory will be used
log_format
string
default:"plain"
The logging format (json|plain)
log_level
string
default:"info"
The logging level (trace|debug|info|warn|error|fatal|panic|disabled or ’*:<level>,<key>:<level>’)
log_no_color
string
colored logs
node
string
default:"tcp://localhost:26657"
<host>:<port> to tendermint rpc interface for this chain
output
string
default:"text"
Output format (text|json)
trace
string
out full stack trace on errors

Examples

Add new key

snrd keys add alice

See Also