STEP 1 Update your server to get the latest version
sudo apt update && sudo apt upgrade -y
Bringing Ethereum ERC20 assets into Cosmos and vice versa will be possible thanks to the Gravity Bridge Chain with IBC (interblockchain communication) technology
sudo apt update && sudo apt upgrade -y
sudo apt install git curl wget tar lz4 unzip jq build-essential pkg-config clang bsdmainutils make ncdu -y
Go is a programming language allowing each node of the Cosmos ecosystem to operate.
Go is a compiled and concurrent programming language inspired by C and Pascal.
This language was developed by Google from an initial concept by Robert Griesemer, Rob Pike and Ken Thompson.
cd $HOME
version="1.19.6"
wget "https://golang.org/dl/go$version.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$version.linux-amd64.tar.gz"
rm "go$version.linux-amd64.tar.gz"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
Check GO version, it must return : go version go1.19.6 linux/amd64
go version
Top page
Here we will install the node for Gravity_Bridge with this binary version : GRAVITY HAVE A SPECIAL PROCESS TO INSTALL PLEASE HAVE A LOOK
THERE https://github.com/Gravity-Bridge/Gravity-Docs/blob/main/docs/setting-up-a-fullnode.md
cd $HOME
git clone GRAVITY HAVE A SPECIAL PROCESS TO INSTALL PLEASE HAVE A LOOK
THERE https://github.com/Gravity-Bridge/Gravity-Docs/blob/main/docs/setting-up-a-fullnode.md
cd gravity-bin
git checkout GRAVITY HAVE A SPECIAL PROCESS TO INSTALL PLEASE HAVE A LOOK
THERE https://github.com/Gravity-Bridge/Gravity-Docs/blob/main/docs/setting-up-a-fullnode.md
make install
Check if the binary "gravity" version GRAVITY HAVE A SPECIAL PROCESS TO INSTALL PLEASE HAVE A LOOK
THERE https://github.com/Gravity-Bridge/Gravity-Docs/blob/main/docs/setting-up-a-fullnode.md has been correctly installed
gravity version
Top page
What does moniker mean?
A personal name or nickname. This name (moniker) will appear in the blockchain explorer.
SPACE in your moniker will create errors
GRAVITY_BRIDGE_MONIKER="Replace_AVIAONE_by_your_name"
Top page
We are now ready to initialze the node
gravity init $GRAVITY_BRIDGE_MONIKER --chain-id gravity-bridge-3
Top page
Set minimum gas price
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0ugraviton\"|" $HOME/.gravity/config/app.toml
Download genesis
wget -O $HOME/.gravity/config/genesis.json "https://services.gravity-bridge-3.gravity.aviaone.com/genesis.json"
Download addrbook
wget -O $HOME/.gravity/config/addrbook.json "https://services.gravity-bridge-3.gravity.aviaone.com/addrbook.json"
Add Seeds
SEEDS="258f523c96efde50d5fe0a9faeea8a3e83be22ca@seed.gravity-bridge-3.gravity.aviaone.com:10266,86bd5cb6e762f673f1706e5889e039d5406b4b90@gravity.seed.node75.org:10556,ade4d8bc8cbe014af6ebdf3cb7b1e9ad36f412c0@seeds.polkachu.com:14256"
sed -i -e "s|^seeds *=.*|seeds = \"$SEEDS\"|" $HOME/.gravity/config/config.toml
Change ports
Advanced users ONLY !
Clear Data
gravity tendermint unsafe-reset-all $HOME/.gravity --keep-addr-book
Top page
This will let you start and stop your node with /etc/systemd/system
sudo tee /etc/systemd/system/gravity.service > /dev/null <<EOF
[Unit]
Description=GRAVITY_BRIDGE\n
After=network.target
[Service]
Type=simple
User=$USER
ExecStart=$(which gravity) start
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl enable gravity
sudo systemctl daemon-reload
This command will start your node
Do not use it now if you are going to use below : Snapshot | State Sync (because your node shouldn't start now... but after the Snapshot | State Sync)
sudo systemctl restart gravity && journalctl -u gravity -f --no-hostname -o cat
Top page
(updated every 24 hours)
File name : https://services.gravity-bridge-3.gravity.aviaone.com/gravity-bridge-3_2024-05-02.tar.gz
Download this filesudo systemctl stop gravity
cp $HOME/.gravity/data/priv_validator_state.json $HOME/.gravity/priv_validator_state.json.backup
gravity tendermint unsafe-reset-all --home $HOME/.gravity --keep-addr-book
wget -c https://services.gravity-bridge-3.gravity.aviaone.com/gravity-bridge-3_2024-05-02.tar.gz -O - | tar -xz -C $HOME/.gravity
mv $HOME/.gravity/priv_validator_state.json.backup $HOME/.gravity/data/priv_validator_state.json
sudo systemctl start gravity && sudo journalctl -u gravity -f --no-hostname -o cat
Please be sure to use the latest binary version :
sed -i "/\[statesync\]/, /^enable =/ s/=.*/= false/;\
/^rpc_servers =/ s|=.*|= \"\"|;\
/^trust_height =/ s/=.*/= 0/;\
/^trust_hash =/ s/=.*/= \"\"/" $HOME/.gravity/config/config.toml
sudo systemctl stop gravity
SNAP_RPC="https://rpc.gravity-bridge-3.gravity.aviaone.com:443"
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 1000)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH
sed -i "/\[statesync\]/, /^enable =/ s/=.*/= true/;\
/^rpc_servers =/ s|=.*|= \"$SNAP_RPC,$SNAP_RPC\"|;\
/^trust_height =/ s/=.*/= $BLOCK_HEIGHT/;\
/^trust_hash =/ s/=.*/= \"$TRUST_HASH\"/" $HOME/.gravity/config/config.toml
sudo systemctl stop gravity && gravity tendermint unsafe-reset-all --home $HOME/.gravity --keep-addr-book
sudo systemctl start gravity && journalctl -u gravity -f --no-hostname -o cat
Watch your logs and be patient it can take 5 minutes.... !!
With the command used just above, your node just started, now BE PATIENT your node has started to work and will need time to get synced on the last block.
First check your logs and have a look at what's going on !
You should see some output like this which confirm that your node is indexing blocks
### indexed block exents height= module=txindex
How to check if your node is already fully synced? ?
gravity status 2>&1 | jq .SyncInfo
The current block number is : and the last block app hash is :
true mean syncing on the way, and true is NOT SYNCED
You will see an output with :
"catching_up": false
If you get true instead of false, please wait... it's not done yet, it's on the way...
true mean syncing on the way, and true is NOT SYNCED
The current block number is : and the last block app hash is :
Top pageWhy it's better to get synced before to create or recover a wallet ?
Because when your wallet will be created or recovered, if you are not synced, you will not be able to check the balance !
Create Wallet
gravity keys add name_wallet
Recover Wallet
gravity keys add name_wallet --recover
Top page
Create your validator if you are not synced, you will get some troubles...
gravity tx staking create-validator \
--amount=1000000ugraviton \
--pubkey=$(gravity tendermint show-validator) \
--moniker="YOUR_NICKNAME" \
--chain-id=gravity-bridge-3 \
--commission-rate=0.05 \
--commission-max-rate=0.2 \
--commission-max-change-rate=0.02 \
--min-self-delegation=1 \
--website="https://your-website.com" \
--identity="keyBASE_id" \
--details="This is will be display in the blockchain explorer. Write here something about you"\
--gas-prices=0.1ugraviton \
--gas-adjustment=1.5 \
--gas=auto \
--from=WRITE_HERE_YOUR_WALLET_ADDRESS
Top page
Congratulations, your made all the steps above necessary to setup the node for GRAVITY BRIDGE (chain-id=gravity-bridge-3) with success and your node is already online now.
gravity q bank balances YOUR_WALLET_NUMBER
Must return false to get synced
gravity status 2>&1 | jq .SyncInfo
journalctl -u gravity -f --no-hostname -o cat
(In some case that's necessary to add "fees" or --gas=auto)
gravity tx gov vote 14 yes --from YOUR_WALLET_NUMBER --chain-id gravity-bridge-3
(In some case that's necessary to add "fees" or --gas=auto)
gravity tx slashing unjail --chain-id=gravity-bridge-3 --from YOUR_WALLET_NUMBER -y
sudo systemctl restart gravity && journalctl -u gravity -f --no-hostname -o cat
gravity q bank balances YOUR_WALLET_NUMBER
gravity keys add YOUR_WALLER_NAME
gravity keys add YOUR_WALLET_NUMBER --recover
gravity keys list
gravity keys delete YOUR_WALLET_NUMBER
(In some case that's necessary to add "fees" or --gas=auto)
gravity tx gov vote 14 yes --from YOUR_WALLET_NUMBER --chain-id gravity-bridge-3
(In some case that's necessary to add "fees" or --gas=auto)
gravity tx gov vote 14 no --from YOUR_WALLET_NUMBER --chain-id gravity-bridge-3
(In some case that's necessary to add "fees" or --gas=auto)
gravity tx gov vote 14 no_with_veto --from YOUR_WALLET_NUMBER --chain-id gravity-bridge-3
(In some case that's necessary to add "fees" or --gas=auto)
gravity tx gov vote 14 abstain --from YOUR_WALLET_NUMBER --chain-id gravity-bridge-3
(In some case that's necessary to add "fees" or --gas=auto)
gravity query gov proposals
(In some case that's necessary to add "fees" or --gas=auto)
gravity query gov proposal 14
(In some case that's necessary to adjust : "deposit" or "fees" or --gas=auto)
gravity tx gov submit-proposal \
--from YOUR_WALLET_NUMBER \
--chain-id gravity-bridge-3 \
--deposit=100000000ugraviton \
--type="Text" \
--title="Write here the title of your proposal for Gravity_Bridge" \
--description="Describe here with details your proposal for Gravity_Bridge" \
--fees=10000ugraviton \
--gas=auto \
-y
(In some case that's necessary to add "fees" or --gas=auto)
gravity tx slashing unjail --chain-id=gravity-bridge-3 --from YOUR_WALLET_NUMBER -y
gravity keys show YOUR_WALLET_NUMBER --bech val -a
gravity query staking validator YOUR_VALIDATOR_VALOPER --output json
gravity q staking validator $(gravity keys show YOUR_WALLET_NUMBER --bech val -a)
gravity query slashing signing-info $(gravity tendermint show-validator)
gravity status 2>&1 | jq .ValidatorInfo
gravity q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " \t " + .description.moniker' | sort -gr | nl
gravity q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_UNBONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " \t " + .description.moniker' | sort -gr | nl
gravity tx staking edit-validator \
--new-moniker="Replace AVIAONE by your name" \
--identity=YOUR_KEYBASE_ID \
--details="This is will be display in the blockchain explorer. Write here something about you" \
--chain-id=gravity-bridge-3 \
--commission-rate=0.1 \
--from=YOUR_WALLET_NUMBER \
--gas-prices=0.1ugraviton \
--gas-adjustment=1.5 \
--gas=auto \
-y
(NEVER DO IT if you are not already synced with the latest block)
gravity tx staking create-validator \
--amount=1000000ugraviton \
--pubkey=$(gravity-bridge-3 tendermint show-validator) \
--moniker="Replace AVIAONE by your name" \
--identity=YOUR_KEYBASE_ID \
--details="This is will be display in the blockchain explorer. Write here something about you" \
--chain-id=gravity-bridge-3 \
--commission-rate=0.10 \
--commission-max-rate=0.20 \
--commission-max-change-rate=0.01 \
--min-self-delegation=1 \
--from=YOUR_WALLET_NUMBER \
--gas-prices=0.1ugraviton \
--gas-adjustment=1.5 \
--gas=auto \
-y
(In some case that's necessary to add "fees" or --gas=auto)
gravity tx bank send WALLET_SENDER WALLET_RECEIVER 1000000ugraviton --chain-id=gravity-bridge-3
(In some case that's necessary to add "fees" or --gas=auto)
gravity tx staking delegate WALLET_NUMBER_WHERE_YOU_WANT_DELEGATE 1000000ugraviton --from YOUR_WALLET_NUMBER --chain-id=gravity-bridge-3
(In some case that's necessary to add "fees" or --gas=auto)
gravity tx staking delegate YOUR_VALIDATOR_NUMBER 1000000ugraviton --from YOUR_WALLET_NUMBER --chain-id=gravity-bridge-3
gravity tx distribution withdraw-all-rewards --from YOUR_WALLET_NUMBER
gravity tx distribution withdraw-rewards YOUR_VALIDATOR_NUMBER --from YOUR_WALLET_NUMBER --commission
Under contruction
Under contruction
Under contruction
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0ugraviton\"/" $HOME/.gravity/config/app.toml
sed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.gravity/config/config.toml
sed -i -e 's|^indexer *=.*|indexer = "kv"|' $HOME/.gravity/config/config.toml
echo $(gravity tendermint show-node-id)'@'$(curl -s ifconfig.me)':'$(cat $HOME/.gravity/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
curl -sS https://rpc.gravity-bridge-3.gravity.aviaone.com/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}'
YOU ARE GOING TO DELETE EVERYTHING WITHOUT ANY POSSIBILITY TO RECOVER, be sure that's really you are looking for...
BEFORE BE SURE TO SAVE $HOME/.gravity/config/priv_validator_key.json
This file $HOME/.gravity/config/priv_validator_key.json will let you create a new node with the same validator
cd $HOME
sudo systemctl stop gravity
sudo systemctl disable gravity
sudo rm /etc/systemd/system/gravity.service
sudo systemctl daemon-reload
rm -f $(which gravity)
rm -rf $HOME/.gravity
rm -rf $HOME/gravity-bin
curl -sS https://rpc.gravity-bridge-3.gravity.aviaone.com/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}'
PEERS="73e27e9b376d2f58d80e29e8175542cb01c3024d@135.181.73.170:26856,ef9748625b4739c5411e276cf2cb0d2742a037f9@54.36.63.85:26656,39490daffac0c7847b0d2617e412b2942055a82b@95.214.53.46:26656,906114620df87a270b89404fdc7f15b3760fa34e@95.214.53.27:42656"
sed -i -e "s|^persistent_peers *=.*|persistent_peers = \"$PEERS\"|" $HOME/.gravity/config/config.toml
SEEDS="258f523c96efde50d5fe0a9faeea8a3e83be22ca@seed.gravity-bridge-3.gravity.aviaone.com:10266,86bd5cb6e762f673f1706e5889e039d5406b4b90@gravity.seed.node75.org:10556,ade4d8bc8cbe014af6ebdf3cb7b1e9ad36f412c0@seeds.polkachu.com:14256"
sed -i -e "s|^seeds *=.*|seeds = \"$SEEDS\"|" $HOME/.gravity/config/config.toml
(updated every 4 hours)
curl -Ls https://services.gravity-bridge-3.gravity.aviaone.com/addrbook.json > $HOME/.gravity/config/addrbook.json
(updated every 4 hours)
curl -Ls https://services.gravity-bridge-3.gravity.aviaone.com/genesis.json > $HOME/.gravity/config/genesis.json
(updated every 24 hours)
File name : https://services.gravity-bridge-3.gravity.aviaone.com/gravity-bridge-3_2024-05-02.tar.gz
Please be sure to use the latest binary version.
One last minute version can be published ! Please check by yourself here... and compare with your node gravity version
sudo systemctl stop gravity
cp $HOME/.gravity/data/priv_validator_state.json $HOME/.gravity/priv_validator_state.json.backup
gravity tendermint unsafe-reset-all --home $HOME/.gravity --keep-addr-book
wget -c https://services.gravity-bridge-3.gravity.aviaone.com/gravity-bridge-3_2024-05-02.tar.gz -O - | tar -xz -C $HOME/.gravity
mv $HOME/.gravity/priv_validator_state.json.backup $HOME/.gravity/data/priv_validator_state.json
sudo systemctl start gravity && sudo journalctl -u gravity -f --no-hostname -o cat
Please be sure to use the latest binary version :
sed -i "/\[statesync\]/, /^enable =/ s/=.*/= false/;\
/^rpc_servers =/ s|=.*|= \"\"|;\
/^trust_height =/ s/=.*/= 0/;\
/^trust_hash =/ s/=.*/= \"\"/" $HOME/.gravity/config/config.toml
sudo systemctl stop gravity
SNAP_RPC="https://rpc.gravity-bridge-3.gravity.aviaone.com:443"
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 1000)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH
sed -i "/\[statesync\]/, /^enable =/ s/=.*/= true/;\
/^rpc_servers =/ s|=.*|= \"$SNAP_RPC,$SNAP_RPC\"|;\
/^trust_height =/ s/=.*/= $BLOCK_HEIGHT/;\
/^trust_hash =/ s/=.*/= \"$TRUST_HASH\"/" $HOME/.gravity/config/config.toml
sudo systemctl stop gravity && gravity tendermint unsafe-reset-all --home $HOME/.gravity --keep-addr-book
sudo systemctl start gravity && journalctl -u gravity -f --no-hostname -o cat
Watch your logs and be patient it can take 5 minutes.... !!
That's an easy process, just click and follow the instructions...it will be done in 10 seconds !
Our platform offers a secure link that allows you to effortlessly connect your KEPLR wallet. The process is quick and easy. Adding a new chain to your wallet is a standard procedure that doesn't involve any transaction. It simply requires your approval. To get started, click on the button below to add this chain to your wallet and start interacting with the blockchain.