*NOTICE: Cosmos is the official document and much of the same content.
Please refer to cosmos official document for more details. https://hub.cosmos.network


Join the mainnet

#Setting Up a New Node

These instructions are for setting up a brand new full node from scratch.
First, initialize the node and create the necessary config files:

DOWNLOAD COGE GAIAD
gaiad init 'your_custom_moniker'
#Note
Monikers can contain only ASCII characters. Using Unicode characters will render your node unreachable.

You can edit this moniker later, in the ~/.gaiad/config/config.toml file:

gaiad init 'your_custom_moniker'

You can edit the ~/.gaiad/config/gaiad.toml file in order to enable the anti spam mechanism and reject incoming transactions with less than the minimum gas prices:

# This is a TOML config file.
# For more information, see https://github.com/toml-lang/toml

##### main base config options #####

# The minimum gas prices a validator is willing to accept for processing a
# transaction. A transaction's fees must meet the minimum of any denomination
# specified in this config (e.g. 10uatom).

minimum-gas-prices = ""

Your full node has been initialized!

#Genesis & Seeds

1.Copy the Genesis File

Fetch the testnet's genesis.json file into gaiad's config directory.

mkdir -p $HOME/.gaiad/config
curl https://cogecoin.com/assets/json/genesis.txt > $HOME/.gaiad/config/genesis.json

To verify the correctness of the configuration run:

gaiad start

2.Add Seed Nodes

Your node needs to know how to find peers.
You'll need to add healthy seed nodes to $HOME/.gaiad/config/config.toml.

seeds = "05d8a90ea21bda64702c3f6c2abad959f445b356@125.141.133.153:26656,
a04dab66f0286c3354a67a3d262db31a8c9293ee@125.141.133.150:26656,
cd27ffa398115083c3adc6b0c56882e481190873@125.141.133.152:26656,
f9e772e67005579be17c99d64ce5e7b42d6af8c3@125.141.133.151:26656"

#A Note on Gas and Fees

#Note
On Cogecoin Hub mainnet, the accepted denom is ucoge, where 1coge = 1.000.000ucoge

Transactions on the Cosmos Hub network need to include a transaction fee in order to be processed.
This fee pays for the gas required to run the transaction. The formula is the following:

fees = ceil(gas * gasPrices)

The gas is dependent on the transaction. Different transaction require different amount of gas.
The gas amount for a transaction is calculated as it is being processed, but there is a way to estimate it beforehand by using the auto value for the gas flag.
Of course, this only gives an estimate. You can adjust this estimate with the flag --gas-adjustment (default 1.0) if you want to be sure you provide enough gas for the transaction.

The gasPrice is the price of each unit of gas. Each validator sets a min-gas-price value, and will only include transactions that have a gasPrice greater than their min-gas-price.

The transaction fees are the product of gas and gasPrice. As a user, you have to input 2 out of 3.
The higher the gasPrice/fees, the higher the chance that your transaction will get included in a block.

#Run a Full Node

Start the full node with this command:

gaiad start

Check that everything is running smoothly:

gaiacli status

View the status of the network with the Cogecoin Explorer.
Go to the Cogecoin Explorer

##REFERRENCE COSMOS DOCUMENTPAGE LINK##

Upgrade to Validator Node

#Run a Validator on the Cogecoin Hub Mainnet

Before setting up your validator node, make sure you've already gone through the Full Node Setup guide.

#What is a Validator?

Validators are responsible for committing new blocks to the blockchain through voting.
A validator's stake is slashed if they become unavailable or sign blocks at the same height.
Please read about Sentry Node Architecture to protect your node from DDOS attacks and to ensure high-availability.

#Warning
If you want to become a validator for the Hub's mainnet, you should research security.

You may want to skip the next section if you have already set up a full-node.

#Create Your Validator

Your cosmosvalconspub can be used to create a new validator by staking tokens. You can find your validator pubkey by running:

gaiad tendermint show-validator

To create your validator, just use the following command:

#Note
Don't use more ucoge than you have!
gaiacli tx staking create-validator \
--amount=1000000uatom \
--pubkey=$(gaiad tendermint show-validator) \
--moniker="choose a moniker" \
--chain-id=#chain_id# \
--commission-rate="0.10" \
--commission-max-rate="0.20" \
--commission-max-change-rate="0.01" \
--min-self-delegation="1" \
--gas="auto" \
--gas-prices="0.025ucoge" \
--from=#key_name#
#Note
When specifying commission parameters, the commission-max-change-rate is used to measure % point change over the commission-rate. E.g. 1% to 2% is a 100% rate increase, but only 1 percentage point.
#Note
Min-self-delegation is a stritly positive integer that represents the minimum amount of self-delegated voting power your validator must always have. A min-self-delegation of 1 means your validator will never have a self-delegation lower than 1atom, or 1000000ucoge

You can confirm that you are in the validator set by using a third party explorer.

##REFERRENCE COSMOS DOCUMENTPAGE LINK##