Welcome to validator AlxVoy ⚡ ANODE.TEAM



Coreum

Links

Mainnet service

Explorers

Sync

RPC & API

Peers and seeds

Genesis and addrbook

Wasm

Service script (Install, State-Sync, Snapshot, Delete)

wget -O Coreum.sh https://anode.team/Coreum/main/Coreum.sh && chmod u+x Coreum.sh && ./Coreum.sh

Installation

Hardware Requirements

  • Memory 32GB
  • CPUs 4 Cores (modern CPU's)
  • Disk 1TB of storage (SSD or NVME)

Software Requirements

  • Prerequisite: go1.18.5+ required. ref
  • Prerequisite: git. ref

Install last binary

git clone $GIT$
cd $FOLDER_GIT$
git checkout $VERSION$
make install

Init the config files

cored init <moniker> --chain-id coreum-testnet-1
cored config chain-id coreum-testnet-1

Create a wallet

cored keys add <wallet_name>

Download genesis and addrbook

curl https://anode.team/Coreum/main/genesis.json > ~/.$FOLDER_CONF$/config/genesis.json
curl https://anode.team/Coreum/main/addrbook.json > ~/.$FOLDER_CONF$/config/addrbook.json

Add peers, seed

SEEDS="$SEEDS$"
PEERS="$PEERS$"
sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.$FOLDER_CONF$/config/config.toml

Add min gas

sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"$MIN_GAS$\"/" $HOME/.$FOLDER_CONF$/config/app.toml

Create the service file

sudo tee /etc/systemd/system/cored.service > /dev/null <<EOF
[Unit]
Description=Coreum
After=network-online.target

[Service]
User=$USER
ExecStart=$(which cored) start
Restart=always
RestartSec=3
LimitNOFILE=4096

[Install]
WantedBy=multi-user.target
EOF

Load service and start

sudo systemctl daemon-reload && sudo systemctl enable cored
sudo systemctl restart cored && journalctl -fu cored -o cat

Create Validator

cored tx staking create-validator \
  --amount=1000000$TOKEN$ \
  --pubkey=$(cored tendermint show-validator) \
  --moniker="<moniker>" \
  --identity="<identity>" \
  --website="<website>" \
  --details="<details>" \
  --security-contact="<contact>" \
  --chain-id="coreum-testnet-1" \
  --commission-rate="0.10" \
  --commission-max-rate="0.20" \
  --commission-max-change-rate="0.01" \
  --min-self-delegation="1" \
  --fees="$FEES$" \
  --from=<wallet_name>

State-Sync

SNAP_RPC=https://coreum.rpc.m.anode.team:443 && \
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - $RPC_N$)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash) && \
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH
sudo systemctl stop cored && cored tendermint unsafe-reset-all --home $HOME/.$FOLDER_CONF$ --keep-addr-book
peers="$PEER$"
sed -i.bak -e  "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.$FOLDER_CONF$/config/config.toml
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ; \
s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \
s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"| ; \
s|^(seeds[[:space:]]+=[[:space:]]+).*$|\1\"\"|" $HOME/.$FOLDER_CONF$/config/config.toml
curl -o - -L https://anode.team/Coreum/main/anode.team_coreum_wasm.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.$FOLDER_WASM$/
sudo systemctl restart cored && journalctl -fu cored -o cat

SnapShot (2 times a day)

sudo systemctl stop cored && \
cp $HOME/.$FOLDER_CONF$/data/priv_validator_state.json $HOME/.$FOLDER_CONF$/priv_validator_state.json.backup && \
rm -rf $HOME/.$FOLDER_CONF$/data/
curl -o - -L https://anode.team/Coreum/main/anode.team_coreum.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.$FOLDER_CONF$
curl -o - -L https://anode.team/Coreum/main/anode.team_coreum_wasm.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.$FOLDER_WASM$/
mv $HOME/.$FOLDER_CONF$/priv_validator_state.json.backup $HOME/.$FOLDER_CONF$/data/priv_validator_state.json && \
sudo systemctl restart cored && journalctl -fu cored -o cat

Testnet service

Explorers

Sync

RPC & API

Peers and seeds

Genesis and addrbook

Wasm

Service script (Install, State-Sync, Snapshot, Delete)

wget -O Coreum.sh https://anode.team/Coreum/test/Coreum.sh && chmod u+x Coreum.sh && ./Coreum.sh

Installation

Software Requirements

  • Prerequisite: go1.18.5+ required. ref
  • Prerequisite: git. ref

Install last binary

wget https://github.com/CoreumFoundation/coreum/releases/download/v0.1.1/cored-linux-amd64
chmod +x cored-linux-amd64
mv cored-linux-amd64 $HOME/go/bin/cored

Init the config files

cored init <moniker> --chain-id coreum-testnet-1
cored config chain-id coreum-testnet-1

Create a wallet

cored keys add <wallet_name>

Download genesis and addrbook

curl https://anode.team/Coreum/test/genesis.json > ~/.core/coreum-testnet-1/config/genesis.json
curl https://anode.team/Coreum/test/addrbook.json > ~/.core/coreum-testnet-1/config/addrbook.json

Add peers, seed

SEEDS="64391878009b8804d90fda13805e45041f492155@35.232.157.206:26656,53f2367d8f8291af8e3b6ca60efded0675ff6314@34.29.15.170:26656"
PEERS="69d7028b7b3c40f64ea43208ecdd43e88c797fd6@34.69.126.231:26656,b2978432c0126f28a6be7d62892f8ded1e48d227@34.70.241.13:26656,7c0d4ce5ad561c3453e2e837d85c9745b76f7972@35.238.77.191:26656,0aa5fa2507ada8a555d156920c0b09f0d633b0f9@34.173.227.148:26656,4b8d541efbb343effa1b5079de0b17d2566ac0fd@34.172.70.24:26656,27450dc5adcebc84ccd831b42fcd73cb69970881@35.239.146.40:26656,5add70ec357311d07d10a730b4ec25107399e83c@5.196.7.58:26656,1a3a573c53a4b90ab04eb47d160f4d3d6aa58000@35.233.117.165:26656,abbeb588ad88176a8d7592cd8706ebbf7ef20cfe@185.241.151.197:26656,39a34cd4f1e908a88a726b2444c6a407f67e4229@158.160.59.199:26656,051a07f1018cfdd6c24bebb3094179a6ceda2482@138.201.123.234:26656,cc6d4220633104885b89e2e0545e04b8162d69b5@75.119.134.20:26656"
sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.core/coreum-testnet-1/config/config.toml

Add min gas

sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0utestcore\"/" $HOME/.core/coreum-testnet-1/config/app.toml

Create the service file

sudo tee /etc/systemd/system/cored.service > /dev/null <<EOF
[Unit]
Description=Coreum
After=network-online.target

[Service]
User=$USER
ExecStart=$(which cored) start
Restart=always
RestartSec=3
LimitNOFILE=4096

[Install]
WantedBy=multi-user.target
EOF

Load service and start

sudo systemctl daemon-reload && sudo systemctl enable cored
sudo systemctl restart cored && journalctl -fu cored -o cat

Create Validator

cored tx staking create-validator \
  --amount=1000000utestcore \
  --pubkey=$(cored tendermint show-validator) \
  --moniker="<moniker>" \
  --identity="<identity>" \
  --website="<website>" \
  --details="<details>" \
  --security-contact="<contact>" \
  --chain-id="coreum-testnet-1" \
  --commission-rate="0.10" \
  --commission-max-rate="0.20" \
  --commission-max-change-rate="0.01" \
  --min-self-delegation="1" \
  --fees="7500utestcore" \
  --gas 200000 \
  --from=<wallet_name>

State-Sync

SNAP_RPC=https://coreum.rpc.t.anode.team:443 && \
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 1000)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash) && \
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH
sudo systemctl stop cored && cored tendermint unsafe-reset-all --home $HOME/.core/coreum-testnet-1 --keep-addr-book
peers="77fedae18b48c8348b9fde0a2bdc4fb1bb0d0c17@65.109.93.152:30656"
sed -i.bak -e  "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.core/coreum-testnet-1/config/config.toml
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ; \
s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \
s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"| ; \
s|^(seeds[[:space:]]+=[[:space:]]+).*$|\1\"\"|" $HOME/.core/coreum-testnet-1/config/config.toml
curl -o - -L https://anode.team/Coreum/test/anode.team_coreum_wasm.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.core/coreum-testnet-1/
sudo systemctl restart cored && journalctl -fu cored -o cat