mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-04 18:31:41 +00:00
@@ -0,0 +1,132 @@
|
||||
---
|
||||
title: snrd
|
||||
description: The Sonr blockchain daemon (server) command
|
||||
---
|
||||
|
||||
# snrd
|
||||
|
||||
The main command for running and interacting with the Sonr blockchain node.
|
||||
|
||||
## Usage
|
||||
|
||||
```shell
|
||||
snrd [command]
|
||||
```
|
||||
|
||||
## Available Commands
|
||||
|
||||
| Command | Description |
|
||||
|---------|-------------|
|
||||
| `auth` | User authentication with Passkeys |
|
||||
| `comet` | CometBFT subcommands |
|
||||
| `config` | Utilities for managing application configuration |
|
||||
| `debug` | Tool for helping with debugging your application |
|
||||
| `export` | Export state to JSON |
|
||||
| `genesis` | Application's genesis-related subcommands |
|
||||
| `gov` | Governance utilities |
|
||||
| `help` | Help about any command |
|
||||
| `index-eth-tx` | Index historical eth txs |
|
||||
| `init` | Initialize private validator, p2p, genesis, and application configuration files |
|
||||
| `keys` | Manage your application's keys |
|
||||
| `prune` | Prune app history states by keeping the recent heights and deleting old heights |
|
||||
| `query` | Querying subcommands |
|
||||
| `rollback` | Rollback Cosmos SDK and CometBFT state by one height |
|
||||
| `snapshots` | Manage local snapshots |
|
||||
| `start` | Run the full node |
|
||||
| `status` | Query remote node for status |
|
||||
| `tx` | Transactions subcommands |
|
||||
| `version` | Print the application binary version information |
|
||||
| `wallet` | Wallet operations |
|
||||
|
||||
## Flags
|
||||
|
||||
<ParamField path="broadcast-mode" type="string" default="sync">
|
||||
Transaction broadcasting mode (sync|async)
|
||||
</ParamField>
|
||||
|
||||
<ParamField path="chain-id" type="string">
|
||||
Specify Chain ID for sending Tx
|
||||
</ParamField>
|
||||
|
||||
<ParamField path="fees" type="string">
|
||||
Fees to pay along with transaction (e.g., 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="help" type="boolean">
|
||||
Help for snrd
|
||||
</ParamField>
|
||||
|
||||
<ParamField path="home" type="string" default="~/.sonr">
|
||||
Directory for config and data
|
||||
</ParamField>
|
||||
|
||||
<ParamField path="keyring-backend" type="string" default="os">
|
||||
Select keyring's backend (os|file|test)
|
||||
</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="boolean">
|
||||
Disable 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="boolean">
|
||||
Print out full stack trace on errors
|
||||
</ParamField>
|
||||
|
||||
## Examples
|
||||
|
||||
### Start a node
|
||||
|
||||
```shell
|
||||
snrd start
|
||||
```
|
||||
|
||||
### Query node status
|
||||
|
||||
```shell
|
||||
snrd status
|
||||
```
|
||||
|
||||
### Initialize a new node
|
||||
|
||||
```shell
|
||||
snrd init my-node --chain-id sonrtest_1-1
|
||||
```
|
||||
|
||||
### Get help for any command
|
||||
|
||||
```shell
|
||||
snrd [command] --help
|
||||
```
|
||||
|
||||
## See Also
|
||||
|
||||
- [snrd auth](./snrd_auth.mdx) - User authentication with Passkeys
|
||||
- [snrd genesis](./snrd_genesis.mdx) - Genesis-related subcommands
|
||||
- [snrd init](./snrd_init.mdx) - Initialize node configuration
|
||||
- [snrd keys](./snrd_keys.mdx) - Manage application keys
|
||||
- [snrd query](./snrd_query.mdx) - Query blockchain state
|
||||
- [snrd tx](./snrd_tx.mdx) - Submit transactions
|
||||
Reference in New Issue
Block a user