mirror of
https://github.com/sonr-io/sonr.git
synced 2026-09-16 23:16:25 +00:00
62 lines
2.6 KiB
Plaintext
62 lines
2.6 KiB
Plaintext
---
|
|
title: snrd genesis collect-gentxs
|
|
description: Collect genesis txs and output a genesis.json file
|
|
---
|
|
|
|
Collect genesis txs and output a genesis.json file. This command iterates over all genesis transactions in the gentx directory and merges them into the genesis.json file.
|
|
|
|
## Usage
|
|
|
|
```shell
|
|
snrd genesis collect-gentxs [flags]
|
|
```
|
|
|
|
## Flags
|
|
|
|
<TypeTable
|
|
type={{
|
|
"gentx-dir": { type: "string", description: "Override default \"gentx\" directory from which collect and execute genesis transactions; default [--home]/config/gentx/" },
|
|
"help": { type: "boolean", description: "Help for collect-gentxs" },
|
|
"home": { type: "string", default: "~/.sonr", description: "The application home directory" },
|
|
}}
|
|
/>
|
|
|
|
## Global Flags
|
|
|
|
<TypeTable
|
|
type={{
|
|
"broadcast-mode": { type: "string", default: "sync", description: "Transaction broadcasting mode (sync|async)" },
|
|
"chain-id": { type: "string", description: "Specify Chain ID for sending Tx" },
|
|
"fees": { type: "string", description: "Fees to pay along with transaction (e.g., 10aatom)" },
|
|
"from": { type: "string", description: "Name or address of private key with which to sign" },
|
|
"gas-adjustment": { type: "float", default: "1", description: "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": { type: "string", description: "Gas prices to determine the transaction fee (e.g., 10aatom)" },
|
|
"keyring-backend": { type: "string", default: "os", description: "Select keyring's backend" },
|
|
"log_format": { type: "string", default: "plain", description: "The logging format (json|plain)" },
|
|
"log_level": { type: "string", default: "info", description: "The logging level (trace|debug|info|warn|error|fatal|panic|disabled or '*:<level>,<key>:<level>')" },
|
|
"log_no_color": { type: "boolean", description: "Disable colored logs" },
|
|
"node": { type: "string", default: "tcp://localhost:26657", description: "<host>:<port> to tendermint rpc interface for this chain" },
|
|
"trace": { type: "boolean", description: "Print out full stack trace on errors" },
|
|
}}
|
|
/>
|
|
|
|
## Examples
|
|
|
|
### Collect genesis transactions
|
|
|
|
```shell
|
|
snrd genesis collect-gentxs
|
|
```
|
|
|
|
### Collect from custom directory
|
|
|
|
```shell
|
|
snrd genesis collect-gentxs --gentx-dir ./custom-gentx/
|
|
```
|
|
|
|
## See Also
|
|
|
|
- [snrd genesis](./snrd_genesis) - Genesis-related subcommands
|
|
- [snrd genesis gentx](./snrd_genesis_gentx) - Generate a genesis tx carrying a self delegation
|
|
- [snrd genesis add-genesis-account](./snrd_genesis_add-genesis-account) - Add a genesis account to genesis.json
|