How to delegate atom?

Delegator Cli

Install Go

  • Download the latest version of go Lang for Linux from here.

  • We are using version 1.19.3 for this tutorial.

curl -OL https://go.dev/dl/go1.19.3.linux-amd64.tar.gz
sudo tar -C /usr/local -xvf go1.19.3.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
export PATH=$PATH:$(go env GOPATH)/bin

Install Binaries

  • The following commands will install the gaia binaries onto your system.

  • You can always check for the latest version of gaia from here.

  • For this tutorial we are using the 7.1.0 version of gaia.

https://github.com/cosmos/gaia.git
git reset --hard 5db8fcc9a229730f5115bed82d0f85b6db7184b4
cd gaia && make install

Setting up gaiad

  • In this tutorial we are running our own node, so we will configure tcp://localhost:26657 for our validator.

  • Paste the following command

gaiad config node tcp://localhost:26657
gaiad config chain-id theta-testnet-001

Generate a key to sign blocks

  • The following command will generate a key file which will be used to sign blocks onto the cosmos blockchain

cd /home/ubuntu/.gaia
gaiad keys add <Name_For_Your_Key>

Note: A mnemonic seed phase will be generated when you create a key. We can then use this seed phase to import our account into keplr wallet.

Import account into Keplr Wallet

Prerequisites:

Steps to import your account

  1. Open the keplr wallet chrome extension.

  2. Click on add account.

  3. Select import existing account.

  4. Enter the seed phase that was generated in the previous step.

  5. Done, you have now successfully imported you account into the keplr wallet.

Delegate

  • Once everything is setup, we can now delegate atoms into a validator.

  • You need to have the validator address in order to send transaction to the right validator.

gaiad tx staking delegate <validatorAddress> <amountToBond> \
  --from <delegatorKeyName> \
  --fees=25000uatom

Check delegation status

// your balance should change after you bond Atoms or withdraw rewards
gaiad query account

// you should have delegations after you bond Atom
gaiad query staking delegations <delegatorAddress>

Theta Testnet: https://testnet.cosmos.bigdipper.live/

Mainnet: https://cosmos.bigdipper.live/

Last updated