Welcome to validator AlxVoy ⚡ ANODE.TEAM



MUN

Links

Mainnet service

Explorers

Sync

RPC & API

Peers and seeds

Genesis and addrbook

Wasm

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

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

Installation

Hardware Requirements

  • Memory
  • CPUs
  • Disk

Software Requirements

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

Install last binary

git clone https://github.com/munblockchain/mun-node
cd mun-node
git checkout v1.0.0
make install

Init the config files

mund init <moniker> --chain-id mun-1
mund config chain-id mun-1

Create a wallet

mund keys add <wallet_name>

Download genesis and addrbook

curl https://anode.team/MUN/main/genesis.json > ~/.mun/config/genesis.json
curl https://anode.team/MUN/main/addrbook.json > ~/.mun/config/addrbook.json

Add peers, seed

SEEDS="036c564e3de76ffad3e013bea52c16eb1de5a400@31.14.40.112:26656"
PEERS="8b4f7c709bef4cc585b18ed7ecce539794a2273d@174.138.176.146:31656"
sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.mun/config/config.toml

Add min gas

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

Create the service file

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

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

[Install]
WantedBy=multi-user.target
EOF

Load service and start

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

Create Validator

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

State-Sync

SNAP_RPC=https://mun.rpc.m.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
wget https://anode.team/unsafe-reset-all.sh && chmod u+x unsafe-reset-all.sh && ./unsafe-reset-all.sh mund .mun
peers="8b4f7c709bef4cc585b18ed7ecce539794a2273d@174.138.176.146:31656"
sed -i.bak -e  "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.mun/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/.mun/config/config.toml
curl -o - -L https://anode.team/MUN/main/anode.team_mun_wasm.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.mun/data/
sudo systemctl restart mund && journalctl -fu mund -o cat

SnapShot (2 times a day)

sudo systemctl stop mund && \
cp $HOME/.mun/data/priv_validator_state.json $HOME/.mun/priv_validator_state.json.backup && \
rm -rf $HOME/.mun/data/
curl -o - -L https://anode.team/MUN/main/anode.team_mun.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.mun
curl -o - -L https://anode.team/MUN/main/anode.team_mun_wasm.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.mun/data/
mv $HOME/.mun/priv_validator_state.json.backup $HOME/.mun/data/priv_validator_state.json && \
sudo systemctl restart mund && journalctl -fu mund -o cat

Testnet service

Explorers

Sync

RPC & API

Peers and seeds

Genesis and addrbook

Wasm

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

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

Installation

Software Requirements

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

Install last binary

git clone https://github.com/munblockchain/mun
cd mun
git checkout v3.0.3
make install

Init the config files

mund init <moniker> --chain-id testmun-3
mund config chain-id testmun-3

Create a wallet

mund keys add <wallet_name>

Download genesis and addrbook

curl https://anode.team/MUN/test/genesis.json > ~/.mun/config/genesis.json
curl https://anode.team/MUN/test/addrbook.json > ~/.mun/config/addrbook.json

Add peers, seed

SEEDS="74bea3fc80aa128c9a757873f2348baa23e9921a@157.245.77.89:26656"
PEERS="43e963bdd46de74b32d5c4830abb7d14563a746a@65.109.28.177:13656"
sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.mun/config/config.toml

Add min gas

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

Create the service file

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

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

[Install]
WantedBy=multi-user.target
EOF

Load service and start

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

Create Validator

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

State-Sync

SNAP_RPC=https://mun.rpc.t.anode.team:443 && \
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 100)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash) && \
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH
wget https://anode.team/unsafe-reset-all.sh && chmod u+x unsafe-reset-all.sh && ./unsafe-reset-all.sh mund .mun
peers="43e963bdd46de74b32d5c4830abb7d14563a746a@65.109.28.177:13656"
sed -i.bak -e  "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.mun/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/.mun/config/config.toml
curl -o - -L https://anode.team/MUN/test/anode.team_mun_wasm.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.mun/data/
sudo systemctl restart mund && journalctl -fu mund -o cat