snrd

The main command for running and interacting with the Sonr blockchain node.

Usage

snrd [command]

Available Commands

CommandDescription
authUser authentication with Passkeys
cometCometBFT subcommands
configUtilities for managing application configuration
debugTool for helping with debugging your application
exportExport state to JSON
genesisApplication’s genesis-related subcommands
govGovernance utilities
helpHelp about any command
index-eth-txIndex historical eth txs
initInitialize private validator, p2p, genesis, and application configuration files
keysManage your application’s keys
prunePrune app history states by keeping the recent heights and deleting old heights
queryQuerying subcommands
rollbackRollback Cosmos SDK and CometBFT state by one height
snapshotsManage local snapshots
startRun the full node
statusQuery remote node for status
txTransactions subcommands
versionPrint the application binary version information
walletWallet operations

Flags

broadcast-mode
string
default:"sync"
Transaction broadcasting mode (sync|async)
chain-id
string
Specify Chain ID for sending Tx
fees
string
Fees to pay along with transaction (e.g., 10aatom)
from
string
Name or address of private key with which to sign
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 to determine the transaction fee (e.g., 10aatom)
help
boolean
Help for snrd
home
string
default:"~/.sonr"
Directory for config and data
keyring-backend
string
default:"os"
Select keyring’s backend (os|file|test)
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
boolean
Disable colored logs
node
string
default:"tcp://localhost:26657"
<host>:<port> to tendermint rpc interface for this chain
trace
boolean
Print out full stack trace on errors

Examples

Start a node

snrd start

Query node status

snrd status

Initialize a new node

snrd init my-node --chain-id sonrtest_1-1

Get help for any command

snrd [command] --help

See Also