Welcome to validator AlxVoy ⚡ ANODE.TEAM



MEME

Links

Mainnet service

Explorers

Sync

RPC & API

Peers and seeds

Genesis and addrbook

Wasm

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

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

Installation

Software Requirements

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

Install last binary

git clone https://github.com/MEMECosmos/meme
cd meme
git checkout 3d3bb097154af6a8eaa83f43e8e47dc91dcdb8b2
make install

Init the config files

memed init <moniker> --chain-id meme-1
memed config chain-id meme-1

Create a wallet

memed keys add <wallet_name>

Download genesis and addrbook

curl https://anode.team/MEME/main/genesis.json > ~/.memed/config/genesis.json
curl https://anode.team/MEME/main/addrbook.json > ~/.memed/config/addrbook.json

Add peers, seed

SEEDS=""
PEERS="8db6d048af7c3cbbded64a13e107deac0ecd4e0b@157.230.58.197:26656,0bff1a09a775f3f48125e2608e5425d9916be9ec@157.230.58.200:26656,f51b8d710dd6a556694a5bd414c0e21753027b95@188.166.97.38:26656,7f8d0d370ea72608fa74d0b6698a7979ab510449@188.166.104.46:26656,bbce4f689582db49d7a93cb2baf94d95aa72f43b@137.184.13.23:26656,81ca4565e35d3c3f9cf6cf6d8d1fe7e6c4a2e490@207.148.2.119:26656,1e2a4e7c513d1ba267fe2e689d4dfe6d6105f644@155.138.255.208:26656"
sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.memed/config/config.toml

Add min gas

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

Create the service file

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

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

[Install]
WantedBy=multi-user.target
EOF

Load service and start

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

Create Validator

memed tx staking create-validator \
  --amount=1000000umeme \
  --pubkey=$(memed tendermint show-validator) \
  --moniker="<moniker>" \
  --identity="<identity>" \
  --website="<website>" \
  --details="<details>" \
  --security-contact="<contact>" \
  --chain-id="meme-1" \
  --commission-rate="0.10" \
  --commission-max-rate="0.20" \
  --commission-max-change-rate="0.01" \
  --min-self-delegation="1" \
  --fees="5000umeme" \
  --gas-prices="0.025umeme" \
  --from=<wallet_name>

State-Sync

SNAP_RPC=https://meme.rpc.m.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
sudo systemctl stop memed && memed tendermint unsafe-reset-all --home $HOME/.memed --keep-addr-book
peers="4273ea9e15f5b84e3bb58e951e0c5b40c478ff59@65.109.28.177:26736"
sed -i.bak -e  "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.memed/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/.memed/config/config.toml
curl -o - -L https://anode.team/MEME/main/anode.team_meme_wasm.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.memed/
sudo systemctl restart memed && journalctl -fu memed -o cat

Testnet service

Explorers

Sync

RPC & API

Peers and seeds

Genesis and addrbook

Wasm

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

wget -O MEME.sh https://anode.team/MEME/test/MEME.sh && chmod u+x MEME.sh && ./MEME.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_T$
cd $FOLDER_GIT_T$
git checkout $VERSION_T$
make install

Init the config files

$BIN_T$ init <moniker> --chain-id $CHAIN_T$
$BIN_T$ config chain-id $CHAIN_T$

Create a wallet

$BIN_T$ keys add <wallet_name>

Download genesis and addrbook

curl https://anode.team/MEME/test/genesis.json > ~/.$FOLDER_CONF_T$/config/genesis.json
curl https://anode.team/MEME/test/addrbook.json > ~/.$FOLDER_CONF_T$/config/addrbook.json

Add peers, seed

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

Add min gas

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

Create the service file

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

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

[Install]
WantedBy=multi-user.target
EOF

Load service and start

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

Create Validator

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

State-Sync

SNAP_RPC=https://meme.rpc.t.anode.team:443 && \
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - $RPC_N_T$)); \
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 $BIN_T$ && $BIN_T$ tendermint unsafe-reset-all --home $HOME/.$FOLDER_CONF_T$ --keep-addr-book
peers="$PEER_T$"
sed -i.bak -e  "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.$FOLDER_CONF_T$/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_T$/config/config.toml
curl -o - -L https://anode.team/MEME/test/anode.team_meme_wasm.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.$FOLDER_WASM_T$/
sudo systemctl restart $BIN_T$ && journalctl -fu $BIN_T$ -o cat

SnapShot (2 times a day)

sudo systemctl stop $BIN_T$ && \
cp $HOME/.$FOLDER_CONF_T$/data/priv_validator_state.json $HOME/.$FOLDER_CONF_T$/priv_validator_state.json.backup && \
rm -rf $HOME/.$FOLDER_CONF_T$/data/
curl -o - -L https://anode.team/MEME/test/anode.team_meme.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.$FOLDER_CONF_T$
curl -o - -L https://anode.team/MEME/test/anode.team_meme_wasm.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.$FOLDER_WASM_T$/
mv $HOME/.$FOLDER_CONF_T$/priv_validator_state.json.backup $HOME/.$FOLDER_CONF_T$/data/priv_validator_state.json && \
sudo systemctl restart $BIN_T$ && journalctl -fu $BIN_T$ -o cat