π Installation
Website: https://www.zenrocklabs.io
Twitter: https://x.com/OfficialZenrock
Discord: https://discord.gg/zenrockfoundation
Explorer: https://explorer.diamond.zenrocklabs.io
Explorer CoinSeyir : https://explorer.coinseyir.com/zenrock-mainnet
Hardware requirements
CPU
4+
RAM
8+ GB
Storage
200 GB SSD
Installation
# Update
sudo apt update && sudo apt upgrade -y && sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu gcc git jq chrony liblz4-tool -y
# Install go
ver="1.23.3"
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
go version
# Install binary
cd $HOME
mkdir -p /root/go/bin/
wget https://server-1.coinseyir.com/zenrock-mainnet/zenrockd
chmod +x zenrockd
mv zenrockd /root/go/bin/
# Change testcs with your name
zenrockd init testcs --chain-id diamond-1
zenrockd config set client chain-id diamond-1
# genesis
curl -Ls https://server-1.coinseyir.com/zenrock-mainnet/genesis.json > $HOME/.zrchain/config/genesis.json
# Addrbook
curl -Ls https://server-1.coinseyir.com/zenrock-mainnet/addrbook.json > $HOME/.zrchain/config/addrbook.json
# Configure
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.01urock\"/" $HOME/.zrchain/config/app.toml
peers="e6c3373d68c504bd89bf77c27a8ac30597afeb2d@zenrock-mainnet-seed.itrocket.net:56656"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.zrchain/config/config.toml
seeds=""
sed -i.bak -e "s/^seeds =.*/seeds = \"$seeds\"/" $HOME/.zrchain/config/config.toml
sed -i -e "s/^filter_peers *=.*/filter_peers = \"true\"/" $HOME/.zrchain/config/config.toml
# Pruning
sed -i \
-e 's|^pruning *=.*|pruning = "custom"|' \
-e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
-e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' \
-e 's|^pruning-interval *=.*|pruning-interval = "19"|' \
$HOME/.zrchain/config/app.toml
# Indexer
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.zrchain/config/config.toml
# Service
sudo tee /etc/systemd/system/zenrockd.service > /dev/null <<EOF
[Unit]
Description=Zenrock
After=network-online.target
[Service]
User=$USER
ExecStart=$(which zenrockd) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
# Snapshot
zenrockd tendermint unsafe-reset-all --home $HOME/.zrchain --keep-addr-book
curl -L https://server-1.coinseyir.com/zenrock-mainnet/snapshot_latest.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.zrchain
# Start
sudo systemctl daemon-reload
sudo systemctl enable zenrockd
sudo systemctl restart zenrockd && sudo journalctl -u zenrockd -f -o cat
Create wallet
# to create a new wallet, use the following command. donβt forget to save the mnemonic
zenrockd keys add wallet
# to restore exexuting wallet, use the following command
zenrockd keys add wallet --recover
# list all keys
zenrockd keys list
# check wallet balance
zenrockd q bank balances $(zenrockd keys show wallet -a)
Create new validator
zenrockd tx validation create-validator <(cat <<EOF
{
"pubkey": $(zenrockd comet show-validator),
"amount": "1000000urock",
"moniker": "YOUR_MONIKER_NAME",
"identity": "YOUR_KEYBASE_ID",
"website": "YOUR_WEBSITE_URL",
"security": "YOUR_SECURITY_EMAIL",
"details": "YOUR_DETAILS",
"commission-rate": "0.05",
"commission-max-rate": "0.20",
"commission-max-change-rate": "0.05",
"min-self-delegation": "1"
}
EOF
) \
--chain-id diamond-1 \
--from wallet \
--gas-adjustment 1.5 \
--gas auto \
--gas-prices 30urock \
-y
Delete Node
sudo systemctl stop zenrockd
sudo systemctl disable zenrockd
sudo rm -rf /etc/systemd/system/zenrockd.service
sudo rm $(which zenrockd)
sudo rm -rf $HOME/.zrchain
sed -i "/ZENROCK_/d" $HOME/.bash_profile
Last updated