var img = document.createElement('img'); img.src = "https://terradocs.matomo.cloud//piwik.php?idsite=1&rec=1&url=https://docs.terra.money" + location.pathname; img.style = "border:0"; img.alt = "tracker"; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(img,s);
Skip to main content

terrad add-genesis-account

Add a genesis account to genesis.json.

Synopsis

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.

You can access the genesis.json file in Terrad's config folder.

Terrad
Copy

_1
code ~/.terra/config/genesis.json

For more information on Terrad configuration, visit the Full node general configuration page.

Example

terrad
Copy

_1
terrad add-genesis-account acc1 '200000000uluna'

In the command above, acc1 refers to the account name set by the keys command.

Options

Terradsh
Copy

_9
--height int Use a specific height to query state at (this can error if the node is pruning state)
_9
-h, --help help for add-genesis-account
_9
--home string The application home directory (default "/Users/.terra")
_9
--keyring-backend string Select keyring's backend (os|file|kwallet|pass|test) (default "os")
_9
--node string <host>:<port> to Tendermint RPC interface for this chain (default "tcp://localhost:26657")
_9
-o, --output string Output format (text|json) (default "text")
_9
--vesting-amount string amount of coins for vesting accounts
_9
--vesting-end-time int schedule end time (unix epoch) for vesting accounts
_9
--vesting-start-time int schedule start time (unix epoch) for vesting accounts

See also