Chain ID: mantle-1 | Node Version: v1.0.0
sudo apt update
sudo apt-get install git curl build-essential make jq gcc snapd chrony lz4 tmux unzip bc -y
rm -rf $HOME/go
sudo rm -rf /usr/local/go
cd $HOME
curl https://dl.google.com/go/go1.20.1.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf -
cat <<'EOF' >>$HOME/.profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source $HOME/.profile
go version
cd $HOME
rm -rf node
git clone https://github.com/AssetMantle/node.git
cd node
git checkout v1.0.0
make install
mantleNode version
Replace NodeName with your own moniker.
mantleNode init NodeName --chain-id=mantle-1
curl -Ls https://ss.assetmantle.nodestake.top/genesis.json > $HOME/.mantleNode/config/genesis.json
curl -Ls https://ss.assetmantle.nodestake.top/addrbook.json > $HOME/.mantleNode/config/addrbook.json
sudo tee /etc/systemd/system/mantleNode.service > /dev/null <<EOF
[Unit]
Description=mantleNode Daemon
After=network-online.target
[Service]
User=$USER
ExecStart=$(which mantleNode) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable mantleNode
SNAP_NAME=$(curl -s https://ss.assetmantle.nodestake.top/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")
curl -o - -L https://ss.assetmantle.nodestake.top/${SNAP_NAME} | lz4 -c -d - | tar -x -C $HOME/.mantleNode
sudo systemctl restart mantleNode
journalctl -u mantleNode -f
If you have any questions, please reach out to our Discord
https://rpc.assetmantle.nodestake.top
https://api.assetmantle.nodestake.top
https://grpc.assetmantle.nodestake.top:443
https://ss.assetmantle.nodestake.top/genesis.json
curl -Ls https://ss.assetmantle.nodestake.top/genesis.json > $HOME/.mantleNode/config/genesis.json
https://ss.assetmantle.nodestake.top/addrbook.json
curl -Ls https://ss.assetmantle.nodestake.top/addrbook.json > $HOME/.mantleNode/config/addrbook.json
sudo systemctl restart mantleNode
journalctl -u mantleNode -f
4cc1408de6794edf2312d44b489016c11c5390a6@rpc.assetmantle.nodestake.top:666
seed="4cc1408de6794edf2312d44b489016c11c5390a6@rpc.assetmantle.nodestake.top:666"
sed -i.bak -e "s/^seed *=.*/seed = \"$seed\"/" ~/.mantleNode/config/config.toml
sudo systemctl restart mantleNode
journalctl -u mantleNode -f
peers=$(curl -s https://ss.assetmantle.nodestake.top/peers.txt)
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" ~/.mantleNode/config/config.toml
sudo systemctl restart mantleNode
journalctl -u mantleNode -f
sudo systemctl stop mantleNode
mantleNode tendermint unsafe-reset-all --home ~/.mantleNode/ --keep-addr-book
SNAP_RPC="https://rpc.assetmantle.nodestake.top: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
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\"|" ~/.mantleNode/config/config.toml
more ~/.mantleNode/config/config.toml | grep 'rpc_servers'
more ~/.mantleNode/config/config.toml | grep 'trust_height'
more ~/.mantleNode/config/config.toml | grep 'trust_hash'
sudo systemctl restart mantleNode
journalctl -u mantleNode -f
sudo apt update
sudo apt-get install snapd lz4 -y
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1false|" ~/.mantleNode/config/config.toml
sudo systemctl stop mantleNode
cp $HOME/.mantleNode/data/priv_validator_state.json $HOME/.mantleNode/priv_validator_state.json.backup
rm -rf $HOME/.mantleNode/data
mantleNode tendermint unsafe-reset-all --home ~/.mantleNode/ --keep-addr-book
SNAP_NAME=$(curl -s https://ss.assetmantle.nodestake.top/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")
curl -o - -L https://ss.assetmantle.nodestake.top/${SNAP_NAME} | lz4 -c -d - | tar -x -C $HOME/.mantleNode
mv $HOME/.mantleNode/priv_validator_state.json.backup $HOME/.mantleNode/data/priv_validator_state.json
sudo systemctl restart mantleNode
journalctl -u mantleNode -f
If you have any questions, please reach out to our Discord