🩶Mantra Chain
Mantra - The first RWA Layer 1 Blockchain, capable of adherence and enforcement of real world regulatory requirements.
https://twitter.com/MANTRA_Chain
Public Endpoints
https://mantra-rpc-testnet.validatorvn.com/
https://mantra-api-testnet.validatorvn.com/
Peer Node: [email protected]:23656 [email protected]:50056 [email protected]:23656 [email protected]:23656 [email protected]:23656 [email protected]:23656 [email protected]:23656 [email protected]:16656 [email protected]:23656 [email protected]:11656
Explorer
https://explorer.validatorvn.com/Mantra-Testnet
Genesis & Addrbook
wget -O $HOME/.mantrachain/config/genesis.json https://snapshot.validatorvn.com/mantra/genesis.json
wget -O $HOME/.mantrachain/config/addrbook.json https://snapshot.validatorvn.com/mantra/addrbook.json
Snapshots
sudo systemctl stop mantrachaind
cp $HOME/.mantrachain/data/priv_validator_state.json $HOME/.mantrachain/priv_validator_state.json.backup
rm -rf $HOME/.mantrachain/data $HOME/.mantrachain/wasmPath
curl https://snapshot.validatorvn.com/mantra/data.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.mantrachain
mv $HOME/.mantrachain/priv_validator_state.json.backup $HOME/.mantrachain/data/priv_validator_state.json
sudo systemctl restart mantrachaind && sudo journalctl -u mantrachaind -f -o cat
State Sync
sudo systemctl stop mantrachaind
cp $HOME/.mantrachain/data/priv_validator_state.json $HOME/.mantrachain/priv_validator_state.json.backup
mantrachaind tendermint unsafe-reset-all --home ~/.mantrachain/ --keep-addr-book
SNAP_RPC="https://mantra-rpc-testnet.validatorvn.com:443"
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 2000)); \
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\"|" ~/.mantrachain/config/config.toml
more ~/.mantrachain/config/config.toml | grep 'rpc_servers'
more ~/.mantrachain/config/config.toml | grep 'trust_height'
more ~/.mantrachain/config/config.toml | grep 'trust_hash'
sudo mv $HOME/.mantrachain/priv_validator_state.json.backup $HOME/.mantrachain/data/priv_validator_state.json
sudo systemctl restart mantrachaind && journalctl -u mantrachaind -f -o cat
Last updated