Running a Validator | Cosmos Hub (2024)

tip

We suggest you try out joining a public testnet first. Information on how to join the most recent testnet can be found here.

Before setting up a validator node, make sure to have completed the Joining Mainnet guide.

If you plan to use a KMS (key management system), you should go through these steps first: Using a KMS.

What is a Validator?

Validators are responsible for committing new blocks to the blockchain through an automated voting process. A validator's stake is slashed if they become unavailable or sign blocks at the same height. Because there is a chance of slashing, we suggest you read about Sentry Node Architecture to protect your node from DDOS attacks and to ensure high-availability.

danger

If you want to become a validator for the Hub's mainnet, you should learn more about security.

The following instructions assume you have already set up a full-node and are synchronised to the latest blockheight.

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:

gaiad 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" \
--gas="auto" \
--gas-prices="0.0025uatom" \
--from=<key_name>

tip

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.

It's possible that you won't have enough ATOM to be part of the active set of validators in the beginning. Users are able to delegate to inactive validators (those outside of the active set) using the Keplr web app. You can confirm that you are in the validator set by using a third party explorer like Mintscan.

Edit Validator Description

You can edit your validator's public description. This info is to identify your validator, and will be relied on by delegators to decide which validators to stake to. Make sure to provide input for every flag below. If a flag is not included in the command the field will default to empty (--moniker defaults to the machine name) if the field has never been set or remain the same if it has been set in the past.

The <key_name> specifies which validator you are editing. If you choose to not include some of the flags below, remember that the --from flag must be included to identify the validator to update.

The --identity can be used as to verify identity with systems like Keybase or UPort. When using Keybase, --identity should be populated with a 16-digit string that is generated with a keybase.io account. It's a cryptographically secure method of verifying your identity across multiple online networks. The Keybase API allows us to retrieve your Keybase avatar. This is how you can add a logo to your validator profile.

gaiad tx staking edit-validator
--moniker="choose a moniker" \
--website="https://cosmos.network" \
--identity=6A0D65E29A4CBC8E \
--details="To infinity and beyond!" \
--chain-id=<chain_id> \
--gas="auto" \
--gas-prices="0.0025uatom" \
--from=<key_name> \
--commission-rate="0.10"

danger

Please note that some parameters such as commission-max-rate and commission-max-change-rate cannot be changed once your validator is up and running.

Note: The commission-rate value must adhere to the following rules:

  • Must be between 0 and the validator's commission-max-rate
  • Must not exceed the validator's commission-max-change-rate which is maximum% point change rate per day. In other words, a validator can only changeits commission once per day and within commission-max-change-rate bounds.

View Validator Description

View the validator's information with this command:

gaiad query staking validator <account_cosmos>

Track Validator Signing Information

In order to keep track of a validator's signatures in the past you can do so by using the signing-info command:

gaiad query slashing signing-info <validator-pubkey>\
--chain-id=<chain_id>

Unjail Validator

When a validator is "jailed" for downtime, you must submit an Unjail transaction from the operator account in order to be able to get block proposer rewards again (depends on the zone fee distribution).

gaiad tx slashing unjail \
--from=<key_name> \
--chain-id=<chain_id>

Confirm Your Validator is Running

Your validator is active if the following command returns anything:

gaiad query tendermint-validator-set | grep "$(gaiad tendermint show-address)"

You should now see your validator in one of the Cosmos Hub explorers. You are looking for the bech32 encoded address in the ~/.gaia/config/priv_validator.json file.

Halting Your Validator

When attempting to perform routine maintenance or planning for an upcoming coordinated upgrade, it can be useful to have your validator systematically and gracefully halt. You can achieve this by either setting the halt-height to the height at which you want your node to shutdown or by passing the --halt-height flag to gaiad. The node will shutdown with a zero exit code at that given height after committingthe block.

Advanced configuration

You can find more advanced information about running a node or a validator on the CometBFT Core documentation.

Common Problems

Problem #1: My validator has voting_power: 0

Your validator has become jailed. Validators get jailed, i.e. get removed from the active validator set, if they do not vote on at least 500 of the last 10,000 blocks, or if they double sign.

If you got jailed for downtime, you can get your voting power back to your validator. First, if you're not using Cosmovisor and gaiad is not running, start it up again:

gaiad start

Wait for your full node to catch up to the latest block. Then, you can unjail your validator

After you have submitted the unjail transaction, check your validator again to see if your voting power is back.

gaiad status

You may notice that your voting power is less than it used to be. That's because you got slashed for downtime!

Problem #2: My gaiad crashes because of too many open files

The default number of files Linux can open (per-process) is 1024. gaiad is known to open more than 1024 files. This causes the process to crash. A quick fix is to run ulimit -n 4096 (increase the number of open files allowed) and then restarting the process with gaiad start. If you are using systemd or another process manager to launch gaiad (such as Cosmovisor) this may require some configuration at that level. A sample systemd file to fix this issue is below:

# /etc/systemd/system/gaiad.service
[Unit]
Description=Cosmos Gaia Node
After=network.target

[Service]
Type=simple
User=ubuntu
WorkingDirectory=/home/ubuntu
ExecStart=/home/ubuntu/go/bin/gaiad start
Restart=on-failure
RestartSec=3
LimitNOFILE=4096

[Install]
WantedBy=multi-user.target
Running a Validator | Cosmos Hub (2024)

FAQs

Running a Validator | Cosmos Hub? ›

In a nutshell, running a validator can be a profitable endeavor and isn't as inaccessible as it may initially seem.

Is it profitable to run a validator node? ›

In a nutshell, running a validator can be a profitable endeavor and isn't as inaccessible as it may initially seem.

How much does it cost to run a validator? ›

Solana validator servers cost about $350-$700 USD per month to run (let's take $4,500/year as an estimate), and assuming about 2–3 SOL in voting costs per epoch (~2 to 3 days), this amounts to about $45,000-$68,000 USD per year.

How much can you earn as a validator? ›

The total reward for a validator depends on these factors, including the amount of ETH staked and the total number of validators on the network. On average, you can expect an annual percentage yield (APY) between 4% and 10%. Missed Duties: Validators have two primary roles: checking new blocks and proposing new ones.

What is the minimum stake for a validator? ›

The minimum amount that a validator must stake is 1 AVAX. The minimum amount that a delegator must delegate is 1 AVAX. The minimum amount of time one can stake funds for validation is 24 hours. The minimum amount of time one can stake funds for delegation is 24 hours.

How much does a ETH validator node earn? ›

The average ETH staking APY is roughly 4% for validators that do not utilize MEV-Boost.

How much ETH does it take to run a validator? ›

Staking involves committing 32 ETH to activate validator software, and thereby support the network's security. This commitment allows the validator to participate in Ethereum's consensus mechanism by proposing new blocks and attesting to the validity of blocks proposed by other validators.

How do validators make money? ›

Essentially validators verify new transactions and add them to the blockchain. This involves checking that blockchain transactions are valid according to the network's rules and ensuring that the sender has enough funds to complete the transaction. In return for their work, validators receive transaction fees.

How much Matic do I need to run a validator? ›

After the implementation of the PIP4 governance proposal at the contract level, the minimum staking amount will increase to 10,000 MATIC. Any validator on the Polygon PoS network has the following responsibilities: Technical node operations (done automatically by the nodes). Maintain high uptime.

Do you need 32 ETH to be a validator? ›

32 Ethereum (ETH) is the minimum amount required for a user to become a validator on the Ethereum network. Validators are essential to the PoS system, as they are responsible for processing transactions, creating new blocks, and maintaining the network's security and integrity.

How much an Ethereum validator makes in 1 year? ›

How Much Can be Earned Staking ETH? Ethereum staking rewards currently average around 4-7% annually but can fluctuate depending on network activity. Here are some estimates: Staking 32 ETH (1 validator) – ~4-7% SRR = 1.6 – 2.24 ETH per year.

How much do BNB validators make? ›

Role of BNB

Staking: Users can stake BNB to become validators or delegate their BNB to validators to earn rewards, contributing to the network's security and decentralization. As of May 2024, BNB staking rewards range from 5% to 15% annually, depending on the amount staked and the validator's performance.

What is the best crypto to be a validator? ›

Is running a validator node worth it?
Most decentralized:Ethereum, Cardano
Highest reward rate:Polkadot, Ethereum
Safest (i.e. no slashing, quick access):Cardano, Solana
Most affordable:Cardano, Polkadot
Least inflationary:Ethereum, Cardano
1 more row
May 27, 2022

What is the risk of staking validator? ›

Staking ensures the stability and security of a PoS blockchain, as validators risk losing the crypto they've locked in the staking contract if they attempt to behave dishonestly and validate false transactions.

How do I become a staking validator? ›

How to Stake Your Validator
  1. Step 1: Prepare for Staking. Before you can become an active validator, you need to bond your funds to your node. ...
  2. Step 2: Manage Session Keys. After your node is fully synced, you'll need to rotate and submit your session keys. ...
  3. Step 3: Register as a Validator. ...
  4. Step 4: Start Validation.
Aug 22, 2024

What is the best validator to stake ADA? ›

With that being said, let's get to the platforms where you can stake ADA.
  • Daedalus: Best Place to Safely Stake Cardano. ...
  • Yoroi: Best ADA Staking on Browser Extension. ...
  • Binance: Best Place to Stake ADA (Cardano) for High Returns. ...
  • Exodus Wallet: Best ADA Staking Several Coins.

Does running a node make money? ›

While mining nodes can earn rewards in the form of Bitcoins by creating new blocks, full nodes are responsible for verifying and confirming transactions without receiving any financial reward. This separation of tasks contributes to the security and efficiency of the entire network.

Is running a chainlink node profitable? ›

Thanks to the efficiency of Chainlink's Off-Chain Reporting protocol (OCR), the efficiency gains of blockchains that Chainlink oracle networks are running on, and increased user demand, certain Chainlink oracle networks have become completely profitable and don't require a block reward or an oracle reward of any kind ...

Can you make money running an ETH node? ›

Validator – By running an Ethereum node as a validator, you can lock up 32 ETH as collateral and start earning rewards simply by verifying transactions on the blockchain. These rewards vary depending on how much ETH is being transacted across the network.

Why run a validator node? ›

These are selected based on the amount of stake XRD token holders have delegated to them. Validator nodes underpin the security of any blockchain or DLT network. That is why it is of vital importance to ensure that validator nodes remain both performant and trustworthy.

Top Articles
Homeowners Insurance: Understanding What Affects the Cost of Insurance
Conseils pour reconnaître un site de trading fiable | Gabriel Magnus Venturi Conseils
Antisis City/Antisis City Gym
Dairy Queen Lobby Hours
Palm Coast Permits Online
Camera instructions (NEW)
Kansas City Kansas Public Schools Educational Audiology Externship in Kansas City, KS for KCK public Schools
Satyaprem Ki Katha review: Kartik Aaryan, Kiara Advani shine in this pure love story on a sensitive subject
Mountain Dew Bennington Pontoon
Research Tome Neltharus
Brgeneral Patient Portal
Do you need a masters to work in private equity?
Top 10: Die besten italienischen Restaurants in Wien - Falstaff
Craigslist Nj North Cars By Owner
Irving Hac
Corporate Homepage | Publix Super Markets
Daniela Antury Telegram
Raid Guides - Hardstuck
Valentina Gonzalez Leak
Walthampatch
Jvid Rina Sauce
The ULTIMATE 2023 Sedona Vortex Guide
Love In The Air Ep 9 Eng Sub Dailymotion
Vanessa West Tripod Jeffrey Dahmer
Bitlife Tyrone's
Niche Crime Rate
Quadcitiesdaily
Katie Sigmond Hot Pics
Why do rebates take so long to process?
Wics News Springfield Il
Thick Ebony Trans
Play Tetris Mind Bender
Ontdek Pearson support voor digitaal testen en scoren
Weldmotor Vehicle.com
Preggophili
Lbrands Login Aces
Elanco Rebates.com 2022
Sinai Sdn 2023
Tokioof
Pdx Weather Noaa
Half Inning In Which The Home Team Bats Crossword
Sports Clips Flowood Ms
Whas Golf Card
Die Filmstarts-Kritik zu The Boogeyman
Scanning the Airwaves
Sams La Habra Gas Price
Indiana Jones 5 Showtimes Near Cinemark Stroud Mall And Xd
Me Tv Quizzes
Santa Clara County prepares for possible ‘tripledemic,’ with mask mandates for health care settings next month
Expendables 4 Showtimes Near Malco Tupelo Commons Cinema Grill
Superecchll
Duffield Regional Jail Mugshots 2023
Latest Posts
Article information

Author: Arline Emard IV

Last Updated:

Views: 5525

Rating: 4.1 / 5 (72 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Arline Emard IV

Birthday: 1996-07-10

Address: 8912 Hintz Shore, West Louie, AZ 69363-0747

Phone: +13454700762376

Job: Administration Technician

Hobby: Paintball, Horseback riding, Cycling, Running, Macrame, Playing musical instruments, Soapmaking

Introduction: My name is Arline Emard IV, I am a cheerful, gorgeous, colorful, joyous, excited, super, inquisitive person who loves writing and wants to share my knowledge and understanding with you.