Skip to content

Latest commit

 

History

History
 
 

gentx

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Join our telegram Visit our website

Deploy your VPS using our referral link to get 20€ bonus

Deploy your VPS using our referral link to get 100$ free bonus for 60 days

Deploy your VPS using our referral link to get 100$ free bonus

Generate Cardchain Euphoria Testnet Gentx

Setting up vars

Here you have to put name of your moniker (validator) that will be visible in explorer

NODENAME=<YOUR_MONIKER_NAME_GOES_HERE>

Save and import variables into system

echo "export NODENAME=$NODENAME" >> $HOME/.bash_profile
echo "export WALLET=wallet" >> $HOME/.bash_profile
echo "export CHAIN_ID=Cardchain" >> $HOME/.bash_profile
source $HOME/.bash_profile

Update packages

sudo apt update && sudo apt upgrade -y

Install dependencies

sudo apt-get install make build-essential gcc git jq chrony -y

Install go

ver="1.18.2"
cd $HOME
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
rm "go$ver.linux-amd64.tar.gz"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profile
source ~/.bash_profile

Download and install binaries

git clone https://github.com/Cardchain-nw/Cardchain && cd Cardchain
git checkout euphoria
make install

Config app

Cardchain config chain-id $CHAIN_ID
Cardchain config keyring-backend test

Init node

Cardchain init $NODENAME --chain-id $CHAIN_ID

Recover or create new wallet for Euphoria Testnet

Option 1 - generate new wallet

Cardchain keys add $WALLET

Option 2 - recover existing wallet

Cardchain keys add $WALLET --recover

Add genesis account

WALLET_ADDRESS=$(Cardchain keys show $WALLET -a)
Cardchain add-genesis-account $WALLET_ADDRESS 3600000000ubpf

Generate gentx

Cardchain gentx $WALLET 3600000000ubpf \
--chain-id $CHAIN_ID \
--moniker=$NODENAME \
--commission-max-change-rate=0.01 \
--commission-max-rate=0.20 \
--commission-rate=0.05 \
--details="<your_validator_description>" \
--security-contact="<your_email>" \
--website="<your_website>"

Things you have to backup

  • 12 word mnemonic of your generated wallet
  • contents of $HOME/.Cardchain/config/*

Submit PR with Gentx

  1. Copy the contents of $HOME/.Cardchain/config/gentx/gentx-XXXXXXXX.json
  2. Fork https://github.com/Cardchain-nw/testnets
  3. Create a file gentx-{VALIDATOR_NAME}.json under the testnets/Cardchain/gentx folder in the forked repo, paste the copied text into the file.
  4. Upload your logo file into {VALOPER_ADDRESS}.png under the testnets/Cardchain/logo folder.
  5. Create a Pull Request to the main branch of the repository

Await further instructions!