mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
103 lines
2.4 KiB
Plaintext
103 lines
2.4 KiB
Plaintext
---
|
|||
|
|
title: snrd init
|
||
|
|
description: Initialize validators's and node's configuration files.
|
||
|
|
---
|
||
|
|
|
||
|
|
# snrd init
|
||
|
|
|
||
|
|
Initialize validators's and node's configuration files.
|
||
|
|
|
||
|
|
## Usage
|
||
|
|
|
||
|
|
```shell
|
||
|
|
snrd init [moniker] [flags]
|
||
|
|
```
|
||
|
|
|
||
|
|
## Flags
|
||
|
|
|
||
|
|
<ParamField path="chain-id" type="string">
|
||
|
|
genesis file chain-id, if left blank will be randomly created
|
||
|
|
</ParamField>
|
||
|
|
|
||
|
|
<ParamField path="default-denom" type="string">
|
||
|
|
genesis file default denomination, if left blank default value is 'stake'
|
||
|
|
</ParamField>
|
||
|
|
|
||
|
|
<ParamField path="help" type="string">
|
||
|
|
for init
|
||
|
|
</ParamField>
|
||
|
|
|
||
|
|
<ParamField path="home" type="string" default="/Users/prad/.sonr">
|
||
|
|
node's home directory
|
||
|
|
</ParamField>
|
||
|
|
|
||
|
|
<ParamField path="initial-height" type="integer" default="1">
|
||
|
|
specify the initial block height at genesis
|
||
|
|
</ParamField>
|
||
|
|
|
||
|
|
<ParamField path="overwrite" type="string">
|
||
|
|
the genesis.json file
|
||
|
|
</ParamField>
|
||
|
|
|
||
|
|
<ParamField path="recover" type="string">
|
||
|
|
seed phrase to recover existing key instead of creating
|
||
|
|
</ParamField>
|
||
|
|
|
||
|
|
## Global Flags
|
||
|
|
|
||
|
|
<ParamField path="broadcast-mode" type="string" default="sync">
|
||
|
|
Transaction broadcasting mode (sync|async)
|
||
|
|
</ParamField>
|
||
|
|
|
||
|
|
<ParamField path="fees" type="string">
|
||
|
|
Fees to pay along with transaction; eg: 10aatom
|
||
|
|
</ParamField>
|
||
|
|
|
||
|
|
<ParamField path="from" type="string">
|
||
|
|
Name or address of private key with which to sign
|
||
|
|
</ParamField>
|
||
|
|
|
||
|
|
<ParamField path="gas-adjustment" type="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
|
||
|
|
</ParamField>
|
||
|
|
|
||
|
|
<ParamField path="gas-prices" type="string">
|
||
|
|
Gas prices to determine the transaction fee (e.g. 10aatom)
|
||
|
|
</ParamField>
|
||
|
|
|
||
|
|
<ParamField path="keyring-backend" type="string" default="os">
|
||
|
|
Select keyring's backend
|
||
|
|
</ParamField>
|
||
|
|
|
||
|
|
<ParamField path="log_format" type="string" default="plain">
|
||
|
|
The logging format (json|plain)
|
||
|
|
</ParamField>
|
||
|
|
|
||
|
|
<ParamField path="log_level" type="string" default="info">
|
||
|
|
The logging level (trace|debug|info|warn|error|fatal|panic|disabled or '*:<level>,<key>:<level>')
|
||
|
|
</ParamField>
|
||
|
|
|
||
|
|
<ParamField path="log_no_color" type="string">
|
||
|
|
colored logs
|
||
|
|
</ParamField>
|
||
|
|
|
||
|
|
<ParamField path="node" type="string" default="tcp://localhost:26657">
|
||
|
|
<host>:<port> to tendermint rpc interface for this chain
|
||
|
|
</ParamField>
|
||
|
|
|
||
|
|
<ParamField path="trace" type="string">
|
||
|
|
out full stack trace on errors
|
||
|
|
</ParamField>
|
||
|
|
|
||
|
|
## Examples
|
||
|
|
|
||
|
|
### Basic usage
|
||
|
|
|
||
|
|
```shell
|
||
|
|
snrd init
|
||
|
|
```
|
||
|
|
|
||
|
|
## See Also
|
||
|
|
|
||
|
|
- [snrd](./snrd.mdx) - Parent command
|