snrd genesis add-genesis-account

Add a genesis account to genesis.json. The provided account must specify

Usage

snrd genesis add-genesis-account [address_or_key_name] [coin][,[coin]] [flags]

Flags

append
string
the coins to an account already in the genesis.json file
grpc-addr
string
the gRPC endpoint to use for this chain
grpc-insecure
string
gRPC over insecure channels, if not the server must use TLS
height
integer
Use a specific height to query state at (this can error if the node is pruning state)
help
string
for add-genesis-account
home
string
default:"/Users/prad/.sonr"
The application home directory
keyring-backend
string
default:"os"
Select keyring’s backend (os|file|kwallet|pass|test)
module-name
string
module account name
node
string
default:"tcp://localhost:26657"
<host>:<port> to CometBFT RPC interface for this chain
output
string
default:"text"
Output format (text|json)
vesting-amount
string
amount of coins for vesting accounts
vesting-end-time
integer
schedule end time (unix epoch) for vesting accounts
vesting-start-time
integer
schedule start time (unix epoch) for vesting accounts

Global Flags

broadcast-mode
string
default:"sync"
Transaction broadcasting mode (sync|async)
chain-id
string
Specify Chain ID for sending Tx
fees
string
Fees to pay along with transaction; eg: 10aatom
from
string
Name or address of private key with which to sign
gas-adjustment
float
default:"1"
adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored
gas-prices
string
Gas prices to determine the transaction fee (e.g. 10aatom)
log_format
string
default:"plain"
The logging format (json|plain)
log_level
string
default:"info"
The logging level (trace|debug|info|warn|error|fatal|panic|disabled or ’*:<level>,<key>:<level>’)
log_no_color
string
colored logs
trace
string
out full stack trace on errors

Examples

Add account with initial coins

snrd genesis add-genesis-account alice 1000000snr

See Also