---
title: snrd genesis collect-gentxs
description: Collect genesis txs and output a genesis.json file
---
# snrd genesis collect-gentxs
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
Override default "gentx" directory from which collect and execute genesis transactions; default [--home]/config/gentx/
Help for collect-gentxs
The application home directory
## Global Flags
Transaction broadcasting mode (sync|async)
Specify Chain ID for sending Tx
Fees to pay along with transaction (e.g., 10aatom)
Name or address of private key with which to sign
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 to determine the transaction fee (e.g., 10aatom)
Select keyring's backend
The logging format (json|plain)
The logging level (trace|debug|info|warn|error|fatal|panic|disabled or '*:<level>,<key>:<level>')
Disable colored logs
<host>:<port> to tendermint rpc interface for this chain
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.mdx) - Genesis-related subcommands
- [snrd genesis gentx](./snrd_genesis_gentx.mdx) - Generate a genesis tx carrying a self delegation
- [snrd genesis add-genesis-account](./snrd_genesis_add-genesis-account.mdx) - Add a genesis account to genesis.json