add-genesis-account
Add a genesis account to genesis.json. The provided account must specify the account address or key name and a list of initial coins. If a key name is given, the address will be looked up in the local Keybase. The list of initial tokens must contain valid denominations. Accounts may optionally be supplied with vesting parameters.
Overview
The add-genesis-account command allows you to add an account with an initial balance to the genesis file. This is typically used during blockchain setup to configure initial token distributions and vesting schedules.
babylond add-genesis-account [address_or_key_name] [coin][,[coin]] [flags]
Arguments
| Argument | Description |
|---|---|
address_or_key_name | The account address (e.g., babylon1...) or key name from your keyring |
coin | Token amount and denomination (e.g., 1000000ubbn). Multiple coins can be specified separated by commas |
Flags
Account Configuration
| Flag | Type | Description |
|---|---|---|
--vesting-amount | string | Amount of coins for vesting accounts |
--vesting-start-time | int | Schedule start time (unix epoch) for vesting accounts |
--vesting-end-time | int | Schedule end time (unix epoch) for vesting accounts |
Network & Query Options
| Flag | Type | Default | Description |
|---|---|---|---|
--grpc-addr | string | The gRPC endpoint to use for this chain | |
--grpc-insecure | Allow gRPC over insecure channels, if not the server must use TLS | ||
--height | int | Use a specific height to query state at (this can error if the node is pruning state) | |
--node | string | tcp://localhost:26657 | <host>:<port> to CometBFT RPC interface for this chain |