NG
Onomy

Onomy

Setup Guide

Testnet 1 is ended, follow the news.
The official documentation is available here.
Approximate installation time – 4 hours.

Wallets are stored in --keyring-backend test, so if you will be sending transactions do not forget to add this flag or recover your wallet using mnemonic (command for mnemonic available below in this guide) by the following command (replace WALLET_NAME with your desired wallet name, can be any):

onomyd keys add WALLET_NAME --recover

1. Install

Use our script for a quick installation:

Due to the long installation time, you can want start the installation in screen by running the following commands (execute commands one-by-one):

screen -S onomy
wget -q -O onomy.sh https://api.nodes.guru/onomy.sh && chmod +x onomy.sh && sudo /bin/bash onomy.sh

To exit screen press Ctrl + A, then D
If you need to connect to screen run the command:

screen -rd onomy
wget -q -O onomy.sh https://api.nodes.guru/onomy.sh && chmod +x onomy.sh && sudo /bin/bash onomy.sh

Specify a name for your node, a name for your wallet, a password and wait for the installation to complete, then run the command:

source $HOME/.bash_profile

The installation will create two services:

  • onomyd (Onomy node)
  • gbtd (bridge between Cosmos and Ethereum)

The onomyd service should work correctly from the beginning, the gbtd service will work only after you have completely finished the installation and fill Rinkeby Eth gbt wallet (orchestrator).

During the installation will be created 1 Eth and 1 Cosmos wallet, mnemonics from them are stored in the folder .gbt (cd $HOME/.gbt), they can be accessed by command:

cat $HOME/.gbt/keys.json

You can view the orchestrator keys with the command:

gbt keys show

You can check the node logs with the command:

journalctl -u onomyd -f

You can check the orchestrator logs with the command:

journalctl -u gbtd -f

If everything has been installed correctly, the output of the orchestrator should be like this:
Onomy-0

2. Additional

Unjail:

onomyd tx slashing unjail --chain-id $ONOMY_CHAIN --keyring-backend test --from $ONOMY_WALLET

Withdraw rewards:

onomyd tx distribution withdraw-all-rewards --chain-id $ONOMY_CHAIN --keyring-backend test --from $ONOMY_WALLET

Check balance:

onomyd q bank balances ADDRESS

Check your balance:

onomyd q bank balances $(onomyd keys show $ONOMY_WALLET --keyring-backend test -a)

Get your valoper address:

onomyd keys show $ONOMY_WALLET --keyring-backend test --bech val

Bond more tokens (if you want increase your validator stake you should bond more to your valoper address):

onomyd tx staking delegate YOUR_VALOPER_ADDRESS AMOUNTnom --chain-id $ONOMY_CHAIN --keyring-backend test --from $ONOMY_WALLET

Check your node status:

curl localhost:26657/status

List of active validators:

onomyd query staking validators --limit 1000 -o json | jq -r '.validators[] | select(.status=="BOND_STATUS_BONDED") | [.operator_address, .status, (.tokens|tonumber / pow(10; 6)), .description.moniker] | @csv' | column -t -s"," | sort -k3 -n -r | nl
Stuck? Ask!

By continuing to use our website, you consent to our use of cookies in accordance with our cookie policy