Skip to main content

snrd genesis gentx

Generate a genesis transaction that creates a validator with a self-delegation,

Usage

snrd genesis gentx [key_name] [amount] [flags]

Flags

account-number
string
The account number of the signing account (offline mode only)
amount
string
Amount of coins to bond
aux
string
aux signer data instead of sending a tx
broadcast-mode
string
default:"sync"
Transaction broadcasting mode (sync|async)
chain-id
string
The network chain ID
commission-max-change-rate
string
The maximum commission change rate percentage (per day)
commission-max-rate
string
The maximum commission rate percentage
commission-rate
string
The initial commission rate percentage
details
string
The validator’s (optional) details
dry-run
string
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
string
Fee granter grants fees for the transaction
fee-payer
string
Fee payer pays fees for the transaction instead of deducting from the signer
fees
string
Fees to pay along with transaction; eg: 10uatom
from
string
Name or address of private key with which to sign
gas
string
default:"200000"
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”.
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 in decimal format to determine the transaction fee (e.g. 0.1uatom)
generate-only
string
an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name)
help
string
for gentx
home
string
default:"/Users/prad/.sonr"
The application home directory
identity
string
The (optional) identity signature (ex. UPort or Keybase)
ip
string
default:"192.168.1.203"
The node’s public P2P IP
keyring-backend
string
default:"os"
Select keyring’s backend (os|file|kwallet|pass|test|memory)
keyring-dir
string
The client Keyring directory; if omitted, the default ‘home’ directory will be used
ledger
string
a connected Ledger device
min-self-delegation
string
The minimum self delegation required on the validator
moniker
string
The validator’s (optional) moniker
node
string
default:"tcp://localhost:26657"
<host>:<port> to CometBFT rpc interface for this chain
node-id
string
The node’s NodeID
note
string
Note to add a description to the transaction (previously —memo)
offline
string
mode (does not allow any online functionality)
output-document
string
Write the genesis transaction JSON document to the given file instead of the default location
p2p-port
string
default:"26656"
The node’s public P2P port
pubkey
string
The validator’s Protobuf JSON encoded public key
security-contact
string
The validator’s (optional) security contact email
sequence
string
The sequence number of the signing account (offline mode only)
sign-mode
string
Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature
timeout-height
string
Set a block timeout height to prevent the tx from being committed past a certain height
tip
string
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
website
string
The validator’s (optional) website
yes
string
tx broadcasting prompt confirmation

Global Flags

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

Generate genesis transaction

snrd genesis gentx alice 1000000snr --chain-id sonrtest_1-1

See Also

I