gen wallet manages the local wallet store used to sign Grid activations. Wallets live under ~/.gen/wallets/: keystore.json holds the wallet records and config.toml tracks the active wallet. New wallets are encrypted with a password by default; leaving the password blank, or passing --plaintext, stores secret material unencrypted.
This page covers wallet identity and key management only. For balance queries, transfers, and faucet bootstrap, see gen wallet transfers. For RPC connection settings (--rpc-url, headers), see CLI configuration.
Common options
These options work on everygen wallet subcommand:
--json,-j: emit a single JSON envelope ({ ok, command, timestamp, result | error }) instead of human output. Required for scripting.--plaintext: on commands that store new secret material (create,import seed,import mnemonic,import private-key), skip password encryption and write the wallet in plaintext. Unsafe; use only for disposable local automation.--wallet <NAME>: on commands that take an optional positionalNAME, this is the named-flag form of the same argument.
- explicit
NAMEargument or--wallet <NAME> - active wallet recorded in
~/.gen/wallets/config.toml - error if neither is set
0x-prefixed.
gen wallet init
Interactive onboarding flow. Walks through choosing seed create/import, mnemonic create/import, or private-key import; prompts for an optional name; prompts for an encryption password; and sets the resulting wallet as active.
gen wallet create
Create a new wallet from fresh CSPRNG entropy. Defaults to a 32-byte seed; pass --mnemonic to generate a BIP-39 phrase instead.
--mnemonic: generate a BIP-39 recovery phrase instead of a raw seed.--12-word: with--mnemonic, produce a 12-word phrase instead of the default 24-word phrase.--plaintext: store the wallet without password encryption.
Address: (grd@... 1-part account locator), the public key, and the recovery material (seed or mnemonic) once. Record the recovery material immediately; the store does not retain it.
gen wallet import
Import a wallet from existing key material. Each flavor is its own subcommand.
gen wallet import seed
Import from a 32-byte seed (64 hex characters, optionally 0x-prefixed).
--seed-file <PATH>: read the seed from a file instead of prompting.--derivation-path <PATH>: custom BIP-44 path, e.g.m/44'/218'/0'/0/7.
gen wallet import mnemonic
Import from a BIP-39 recovery phrase.
--mnemonic-file <PATH>: read the phrase from a file instead of prompting.--derivation-path <PATH>: custom BIP-44 path.
gen wallet import private-key
Import from a raw private key (hex, optionally 0x-prefixed).
--private-key-file <PATH>: read the private key from a file instead of prompting.
gen wallet import encrypted
Import a portable encrypted wallet bundle previously produced by gen wallet export encrypted.
gen wallet list
Show all stored wallets as a table.
NAME, ACTIVE, STORAGE, SOURCE, ADDRESS. With --json, returns an array of records with the same fields.
gen wallet show
Show metadata for one wallet. With no argument, shows the active wallet.
--public-key-only: print only the public key (0x-prefixed hex).--account-address-only: print only thegrd@...account locator. Useful for piping into--toflags.
Address and Public key, or just the requested field. JSON mode returns a result object with name, account, public_key_hex, storage, and source.
gen wallet set-active
Set which wallet is used by default for wallet-backed commands.
~/.gen/wallets/config.toml.
gen wallet rename
Rename a stored wallet. If the renamed wallet was active, it stays active under the new name.
gen wallet remove
Delete a wallet from the local store. If the removed wallet was active, the active wallet is cleared.
gen wallet export
Export wallet material. Two flavors: raw private key, or a portable encrypted bundle.
gen wallet export private-key
Print the wallet’s private key to stdout as 0x-prefixed hex. Requires explicit --unsafe acknowledgement.
0x-prefixed hex string on stdout. This is the only command in the wallet surface that prints the private key; treat the output as a secret.
gen wallet export encrypted
Write a portable encrypted wallet bundle to a file. Secret material never touches stdout.
gen wallet import encrypted.
See also
- gen wallet transfers:
balance,balances,transfer, andfaucet. - CLI configuration: RPC URL, headers, and the persisted client config.
- Quickstart: install the CLI and create your first wallet.

