GenTx¶
-
Fork the official networks repository into your GitHub account
-
Clone the forked networks repository from GitHub
CHAIN_ID= USERNAME= rm -rf ${HOME}/networks/ && cd ${HOME}/ && \ git clone https://github.com/${USERNAME}/networks.git && cd ${HOME}/networks/ && \ git checkout ${CHAIN_ID}
-
Initialize the blockchain configuration files
MONIKER= sentinelhub init ${MONIKER} \ --chain-id ${CHAIN_ID}
-
Unzip the Genesis to the blockchain configuration directory
unzip ${HOME}/networks/${CHAIN_ID}/genesis.zip \ -d ${HOME}/.sentinelhub/config/
-
Add an account key
KEY_NAME= sentinelhub keys add ${KEY_NAME}
Tip
Pass flag
--recover
to recover the key -
Add the Genesis account
ADDRESS=$(sentinelhub keys show --address ${KEY_NAME}) STAKING_DENOM= sentinelhub add-genesis-account ${ADDRESS} 1000000000${STAKING_DENOM}
-
Create an offline Genesis transaction
sentinelhub gentx ${KEY_NAME} 100000000${STAKING_DENOM} \ --chain-id ${CHAIN_ID} \ --commission-rate 0.1 \ --commission-max-rate 0.2 \ --commission-max-change-rate 0.01
-
Copy the GenTx file to the folder
networks
cp ${HOME}/.sentinelhub/config/gentx/gentx-*.json ${HOME}/networks/${CHAIN_ID}/gentx/
-
Commit and push it to the forked GitHub repository
cd ${HOME}/networks/ && \ git add . && \ git commit -m "Add GenTx of ${MONIKER}" && \ git push origin ${CHAIN_ID}
-
Create a pull request from the forked repository to the official repository