Accounts
XYZ Chain uses standard account types with thexyz address prefix.
Address Formats
| Type | Prefix | Example |
|---|---|---|
| Account | xyz1 | xyz1abc123def456ghi789jkl012mno345pqr678stu |
| Validator | xyzvaloper1 | xyzvaloper1abc123def456ghi789jkl012mno345pqr678stu |
| Consensus | xyzvalcons1 | xyzvalcons1abc123def456ghi789jkl012mno345pqr678stu |
Account Derivation
XYZ Chain uses the following HD path for key derivation:| Level | Value | Meaning |
|---|---|---|
| Purpose | 44’ | BIP44 standard |
| Coin Type | 118’ | XYZ Chain |
| Account | 0’ | First account |
| Change | 0 | External chain |
| Index | 0 | First address |
The coin type
118 ensures compatibility with wallets like Keplr.Key Generation
Generate New Key
Import Existing Key
List Keys
Export Key
Test Accounts
The local development network (xyz localnet) includes pre-funded test accounts:
| Name | Balance | Mnemonic |
|---|---|---|
alice | 1,000,000 XYZ | abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about |
bob | 500,000 XYZ | Standard test mnemonic |
Keyring Backends
The CLI supports multiple storage backends for private keys:OS Backend (Recommended)
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):Account Operations
Check Balance
View Transaction History
Using xyzd
For advanced operations, use the chain daemon:Account Types
Standard Account
Regular user accounts created withxyz keys generate.
Module Account
System accounts owned by chain modules (not user-controlled):| Module | Address | Permissions |
|---|---|---|
fee_collector | xyz1... | None (receives fees) |
distribution | xyz1... | None (holds rewards) |
bonded_tokens_pool | xyz1... | Burner, Staking |
not_bonded_tokens_pool | xyz1... | Burner, Staking |
gov | xyz1... | Burner |
wasm | xyz1... | Burner |
Contract Account
Accounts created when instantiating WASM contracts:Security Best Practices
Backup your mnemonic
Backup your mnemonic
- Write it on paper (not digital)
- Store in multiple secure locations
- Consider metal backup for fire/water resistance
- Never share with anyone
Use hardware wallets
Use hardware wallets
For significant holdings, use Ledger or similar hardware wallets with XYZ Chain support.
Verify addresses
Verify addresses
Always double-check the first and last 4-6 characters of addresses before sending.
Use test accounts for development
Use test accounts for development
Keep real funds on separate keys from development/testing activities.