Skip to main content

Accounts

XYZ Chain uses standard account types with the xyz address prefix.

Address Formats

Account Derivation

XYZ Chain uses the following HD path for key derivation:
The coin type 118 ensures compatibility with wallets like Keplr.

Key Generation

Generate New Key

Output:

Import Existing Key

Or interactively:

List Keys

Output:

Export Key

This exports an armored ASCII format that can be imported into other wallets.

Test Accounts

The local development network (xyz localnet) includes pre-funded test accounts:
Never use test mnemonics for real funds. These are well-known phrases used only for development.

Keyring Backends

The CLI supports multiple storage backends for private keys: Uses the operating system’s secure keychain:
  • macOS: Keychain
  • Windows: Credential Manager
  • Linux: Secret Service (GNOME Keyring, KWallet)

File Backend

Stores keys in an encrypted file at ~/.xyz/keyring-file/:
File backend requires a passphrase for each operation.

Test Backend

Stores keys unencrypted (development only):
Never use test backend for real funds. Keys are stored in plain text.

Account Operations

Check Balance

View Transaction History

Using xyzd

For advanced operations, use the chain daemon:

Account Types

Standard Account

Regular user accounts created with xyz keys generate.

Module Account

System accounts owned by chain modules (not user-controlled):

Contract Account

Accounts created when instantiating WASM contracts:

Security Best Practices

  • Write it on paper (not digital)
  • Store in multiple secure locations
  • Consider metal backup for fire/water resistance
  • Never share with anyone
For significant holdings, use Ledger or similar hardware wallets with XYZ Chain support.
Always double-check the first and last 4-6 characters of addresses before sending.
Keep real funds on separate keys from development/testing activities.