GHOST Eye Startup Guide [~30 Min]

  • Post author:
  • Post category:Guide
You are currently viewing GHOST Eye Startup Guide [~30 Min]

Introduction

GHOST Eye is the terminal based UI for GHOST Chain. It offers the ability to interact with GHOST Chain in a user friendly way. Think of it as MetaMask for Ethereum. GHOST Eye is a work in progress and additional updates will be coming over a period of time.

Install GHOST Eye

Open terminal window.

Go to main ghost directory:

cd ghost

Clone ghost-eye:

git clone https://git.ghostchain.io/ghostchain/ghost-eye.git

Go to ghost-eye directory:

cd ghost-eye

Install necessary packages:

sudo apt install pkg-config

Update Rust:

rustup update

Compile ghost-eye:

source update.sh

Run GHOST Eye

Launch ghost-eye from any folder:

ge

Older ghost-eye versions can be launched by navigating to ghost-eye directory:

cd ghost/ghost-eye

And running ghost-eye launch command:

./target/release/ghost-eye

To exit ghost-eye press CTRL + C or Q keys.

Navigate GHOST Eye

GHOST Eye Navigate GHOST Eye

General Navigation

Navigate menu use + + Enter keys to navigate GHOST Eye.

Use Esc key to exit any panel and go back to main menu.

+ or H + L

Explorer Tab

GHOST Eye Explorer

In the explorer you are able to see the block production and finalization in real time, block production timer, and block events.

Wallet Tab

GHOST Eye Wallet

My Accounts

Press Shift + W to create new wallet.

Press Shift + L to generate stash wallet.

Press Shift + P to turn any wallet in My Accounts Panel into a contact in address book.

Press Shift + R to rename a wallet.

Press Shift + B and type amount of $CSPR you to bond.

Address Book Panel

Shift + A to create new contact in address book.

Shift + D to delete contact from address book.

G key to top of address book.

Shift + G keys bottom of address book.

Shift + K / Shift + J keys changes the places of addresses.

Shift + I key to check contact details.

Shift + R to rename a contact.

Nominator Popup

GHOST Eye Wallet Tab Nominator Popup

The Nominator popup contains Validator points panel. The popup shows the staking points each validator has earned during the current Era.

Press Shift + N to open Nominator panel.

Press Shift + R to rename individual Validators.

Sending $CSPR

To send $CSPR navigate to the Wallet Tab. Enter the tab by pressing Enter. Press Shift + T. Fill out Receiver and Amount to send fields in the form and $CSPR will be sent to the Receiver address.

You can also navigate the Address Book panel, use + keys to pick the address, press Enter and the receiver address will be prefilled.

Reward Destination Popup

GHOST Eye Wallet Tab Select Reward Destination Popup

Press Shift + I and choose the staking rewards destination.

Back to Main Menu

Use Esc key to exit any panel into the main menu.

Validator Tab

GHOST Eye Validator Tab

Slash details panel contains details about bonding of your funds. Reward details panel contains Current APY and Inflation rates. Staking history panel contains accumulated Staking Rewards per Era. My peers panel shows block/transaction history broken down per Full Node Operator and Validator.

Bonding

GHOST Eye Validator Tab Bonding Input

To bond $CSPR enter the Validator Tab by pressing Enter then press Shift + B and type amount of $CSPR you want to bond.

Unbonding

GHOST Eye Validator Tab Unbonding

To remove part of a bond (or remove full) use Shift + U, set Unbond Amount, and press Enter to confirm. The result will be shown in Withdrawals panel. For the bond to actually be withdrawn bonding period should pass which coincides with an end of Era (24 hours day for now)

GHOST Eye Validator Tab Unbonding Withdrawal

After 1 era the Withdrawals Amount should no longer be crossed out. To claim Unbonded Amount press Shift + W and then press Enter to confirm.

Reverse Unbond Amount

GHOST Eye Validator Reverse Unbond Amount
While the unbonded amount is still pending Validators are able to reverse the unbonding. Press Shift + E, set Amount to Rebond, and press Enter to confirm. Withdrawals tab update. Withdrawal for current Era will decrease.

Staking Rewards Payout

GHOST Eye Validator Tab Staking Rewards

To withdraw earned staking rewards enter the Validator Tab by pressing Enter. Navigate to the Staking History panel using + keys. Select the era and rewards using + keys. Press Enter to open the payout prompt. Press Enter again to confirm the payout.

Funding Stash

GHOST Eye Validator Tab Stash Key

Fund your stash with at least 8 $CSPR. You can request $CSRP from community faucet here. Funding Validator stash is similar to funding any GHOST wallet. Stash wallet address can be found on Validator tab. It is highly advisable to add Stash Key as one of the contacts in the address panel. Refer to adding new contacts here.

Set Commission

GHOST Eye Validator Tab Set Commission
To set commission Validator will earn from nominators press Shift + V, set Commission for Nominators, and press Enter to confirm.

Chill

GHOST Eye Validator Tab Chill
Chill is a method for current Validator to stop validating from current stash while avoiding slashing. Chill status will be applied only in next era. To chill press Shift + C, popup Chill stash will appear, and press Enter to confirm.

Chilling Explained

To stop validating without penalty, you must first “Chill” your Validator Node. You cannot turn the node off immediately; it must remain running as a validator until the current Era concludes. If you turn the node off or fail to Chill it before the Era ends, you will be penalized (slashed) for unexpectedly leaving the network. Once the Era passes after Chilling, your Validator Node (green dot) will automatically convert to a Full Node (yellow dot), and you can safely shut it down without any slashing risk.

Rotate Keys

GHOST Eye Validator Tab Rotate Session Keys
To create new gran, babe, audi, slow keys press Shift + R, Rotate Session Keys popup will open, and press Enter to confirm.

Only do this if you never created keys before. Existing Validators should only do this after consulting with GHOST Whales.

Update GHOST Eye

Go to ghost-eye directory:

cd ghost/ghost-eye

Update ghost-eye:

source update.sh

Done!

If the command above gives an error then pull the most recent ghost-eye version from GHOST Git, otherwise skip:

git pull origin main

Recompile ghost-eye:

cargo build --release

Backup/Restore

GHOST Eye Key Backup

It is highly encouraged to backup your node keys in order to prevent potential loss of funds. There are 3 types of keys:

  1. GHOST Eye Keys/wallet keys
  2. Validator Secret Key
  3. Node Session Key

Backup

Create a temporary backup folder that will disappear on node restart:

mkdir /tmp/backup

Backup GHOST Eye Keys

cp -r ~/.local/share/ghost-eye /tmp/backup

Backup Validator Secret Key

cp -r /etc/ghost/stash-key /tmp/backup

Backup Node Session Key

sudo cp -r /var/lib/ghost/chains/casper_staging_testnet/keystore /tmp/backup

Create Backup

Go to /tmp directory:

cd /tmp

Create backup.zip

zip -r backup.zip backup

Once you have the backup.zip. Put it on a flash drive or transfer to another computer.

Restore

In case an old /tmp/backup folder still exists, remove it:

sudo rm -r /tmp/backup

Unzip backup.zip:

unzip /tmp/backup.zip

Restore GHOST Eye Keys

cp -r /tmp/backup/ghost-eye ~/.local/share/ghost-eye

Restore Validator Secret Key

cp -r /tmp/backup/stash-key /etc/ghost/stash-key

Restore Node Session Key

sudo cp -r /tmp/backup/keystore /var/lib/ghost/chains/casper_staging_testnet/

Miscellaneous

Check GHOST Eye Version

To check the version of ghost-eye you are running:

ge --version

Known Bugs

Chill Validator Node Error

A known issue, stemming from a Rust dependency, can cause the GHOST-Eye interface to crash network-wide when any validator node on the network is chilled.

If you experience this: Please be assured this is an external bug and not a problem with your node or setup. The only required action is to simply restart your GHOST-Eye application. Service will resume immediately.

Changelog

All the commit changelogs for GHOST Eye can be found here.