Stratos-chain 'stchaind' Commands

This document describes a summarized list of `stchaind` commands for Stratos Chain.

Overview

Hardware and Software Requirements

Unlike other projects, Stratos does not require expensive GPUs and high wattage power supplies, but if the node wants to obtain revenue, it needs to provide enough bandwidth and storage capacity to ensure the traffic on the node can reach the reward requirements. We recommend the following to run your node:

* CPU i5 4 cores
* 16GB memory
* 2TB hard disk
* 100M bandwidth

Software(tested version):

* Ubuntu 18.04+
* Go 1.16+ linux/amd64 (optional, if compile the binary with source code)

Get Connected to Stratos Chain Testnet

Please refer to stratos-chain-testnet to

Directory Structure

After the node has caught up to the latest block, your Stratos-chain Wallet has been created and fed with an amount of tokens, the $HOME directory should include the following directories and files.

By default, the two binary executable files stchaincli and stchaind as well as two directories .stchaincl and .stchaind have been saved or created in the $HOME folder. If you are not sure what is your$HOMEfolder, in terminal, use 'echo $HOME' to check. In the following instruction, we suppose you have entered the $HOMEfolder

.stchaincli contains the folder keyring-test-cosmos, which holds the wallet info and wallet address

.stchaind contains config and data folders.

In config folder:

  • addrbook.json stores peer addresses.

  • app.toml contains the default settings required for app.

  • config.toml contains various options pertaining to the stratos-chain configurations.

  • genesis.json defines the initial state upon genesis of stratos-chain.

  • node_key.json contains the node private key and should thus be kept secret.

  • priv_validator_key.json contains the validator address, public key and private key, and should thus be kept secret.

In data folder:

  • All *.db folders are Tendermint databases

  • Tendermint uses a write ahead log (WAL) for consensus

  • priv_validator_state.jsonholds the validator's state

'stchaind' Commands

Global Flags

Each command has its specific flags as well as several global flags. The specific flags will be explained along with each command, while the global flags are summarized as the following that can be used for all stchaind commands.

--chain-id the current chain-id may change when updating in testing phase . When it is applied, user needs to point out current chain-id which can be found on this page, right next to the search bar at the top of the page.

--home is the directory containing a node's configurations and data. By default, node's account info is saved or created under $HOME/.stchaind. In this case, user does not need to add --home flag in the commands. Otherwise, user has to use this flag to specify the path to the node's root directory(default '$HOME') explicitly if not using the default directory. In the following instruction, we suppose the node's configurations and data have been installed or created under $HOME/.stchaind and skip the --home flag. User can add it where applicable.

debug

Tool for helping with debugging your application.

pubkey

Decode a pubkey from hex, base64, or bech32.

pubkey command:

Example::

addr

Convert an address between hex encoding and bech32.

addr command:

Example:

raw-bytes

Convert raw-bytes to hex.

raw-bytes command:

Example:

export

Export state to JSON.

export command:

Example:

version

Print the app version.

version command:

Example:

start

Run the full node application with Tendermint in or out of process. By default, the application will run with Tendermint in process.

start command:

Example:

init

Initialize validator's and node's configuration files.

init command:

Example:

tendermint

Tendermint subcommands

show-node-id

Show this node's ID.

show-node-id command:

Example:

show-validator

Show this node's tendermint validator info.

show-validator command:

Example:

show-address

Shows this node's tendermint validator consensus address.

show-address command:

Example:

-version

Print protocols' and libraries' version numbers against which this app has been compiled.

version command:

Example:

Last updated