--- title: snrd genesis gentx description: Generate a genesis transaction that creates a validator with a self-delegation, --- # snrd genesis gentx Generate a genesis transaction that creates a validator with a self-delegation, ## Usage ```shell snrd genesis gentx [key_name] [amount] [flags] ``` ## Flags The account number of the signing account (offline mode only) Amount of coins to bond aux signer data instead of sending a tx Transaction broadcasting mode (sync|async) The network chain ID The maximum commission change rate percentage (per day) The maximum commission rate percentage The initial commission rate percentage The validator's (optional) details the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) Fee granter grants fees for the transaction Fee payer pays fees for the transaction instead of deducting from the signer Fees to pay along with transaction; eg: 10uatom Name or address of private key with which to sign gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically. Note: "auto" option doesn't always report accurate results. Set a valid coin value to adjust the result. Can be used instead of "fees". 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 in decimal format to determine the transaction fee (e.g. 0.1uatom) an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) for gentx The application home directory The (optional) identity signature (ex. UPort or Keybase) The node's public P2P IP Select keyring's backend (os|file|kwallet|pass|test|memory) The client Keyring directory; if omitted, the default 'home' directory will be used a connected Ledger device The minimum self delegation required on the validator The validator's (optional) moniker <host>:<port> to CometBFT rpc interface for this chain The node's NodeID Note to add a description to the transaction (previously --memo) mode (does not allow any online functionality) Write the genesis transaction JSON document to the given file instead of the default location The node's public P2P port The validator's Protobuf JSON encoded public key The validator's (optional) security contact email The sequence number of the signing account (offline mode only) Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature Set a block timeout height to prevent the tx from being committed past a certain height Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator The validator's (optional) website tx broadcasting prompt confirmation ## Global Flags The logging format (json|plain) The logging level (trace|debug|info|warn|error|fatal|panic|disabled or '*:<level>,<key>:<level>') colored logs out full stack trace on errors ## Examples ### Generate genesis transaction ```shell snrd genesis gentx alice 1000000snr --chain-id sonrtest_1-1 ``` ## See Also - [snrd genesis](./snrd_genesis.mdx) - Parent command