Chain ID: blockx_190-1 | Node Version: v10.0.0
https://restake.nodestake.org/blockx
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.5.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
curl -LO https://github.com/defi-ventures/blockx-node-public-compiled/releases/download/v10.0.0/blockxd
chmod +x blockxd
mkdir -p $HOME/go/bin/
mv blockxd $HOME/go/bin/
Replace NodeName with your own moniker.
blockxd init NodeName --chain-id=blockx_190-1
curl -Ls https://ss.blockx.nodestake.org/genesis.json > $HOME/.blockxd/config/genesis.json
curl -Ls https://ss.blockx.nodestake.org/addrbook.json > $HOME/.blockxd/config/addrbook.json
sudo tee /etc/systemd/system/blockxd.service > /dev/null <<EOF
[Unit]
Description=blockxd Daemon
After=network-online.target
[Service]
User=$USER
ExecStart=$(which blockxd) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable blockxd
SNAP_NAME=$(curl -s https://ss.blockx.nodestake.org/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")
curl -o - -L https://ss.blockx.nodestake.org/${SNAP_NAME} | lz4 -c -d - | tar -x -C $HOME/.blockxd
sudo systemctl restart blockxd
journalctl -u blockxd -f
If you have any questions, please reach out to our Discord
https://rpc.blockx.nodestake.org
https://api.blockx.nodestake.org
https://grpc.blockx.nodestake.org:443
Chain Name: Blockx Mainnet
RPC: https://jsonrpc.blockx.nodestake.org/
Chain ID: 100
Symbol: BCX
Explorer:
https://ss.blockx.nodestake.org/genesis.json
curl -Ls https://ss.blockx.nodestake.org/genesis.json > $HOME/.blockxd/config/genesis.json
5c4a9eb7aedadcd4a88e80dfe88a3ef83b188a92@rpc.blockx.nodestake.org:666
seed="5c4a9eb7aedadcd4a88e80dfe88a3ef83b188a92@rpc.blockx.nodestake.org:666"
sed -i.bak -e "s/^seed *=.*/seed = \"$seed\"/" ~/.blockxd/config/config.toml
sudo systemctl restart blockxd
journalctl -u blockxd -f
https://ss.blockx.nodestake.org/addrbook.json
curl -Ls https://ss.blockx.nodestake.org/addrbook.json > $HOME/.blockxd/config/addrbook.json
sudo systemctl restart blockxd
journalctl -u blockxd -f
peers=$(curl -s https://ss.blockx.nodestake.org/peers.txt)
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" ~/.blockxd/config/config.toml
sudo systemctl restart blockxd
journalctl -u blockxd -f
sudo systemctl stop blockxd
blockxd tendermint unsafe-reset-all --home ~/.blockxd/ --keep-addr-book
SNAP_RPC="https://rpc.blockx.nodestake.org: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\"|" ~/.blockxd/config/config.toml
more ~/.blockxd/config/config.toml | grep 'rpc_servers'
more ~/.blockxd/config/config.toml | grep 'trust_height'
more ~/.blockxd/config/config.toml | grep 'trust_hash'
sudo systemctl restart blockxd
journalctl -u blockxd -f
We make the node snapshot every 12h
sudo apt update
sudo apt-get install snapd lz4 -y
sudo systemctl stop blockxd
cp $HOME/.blockxd/data/priv_validator_state.json $HOME/.blockxd/priv_validator_state.json.backup
rm -rf $HOME/.blockxd/data
blockxd tendermint unsafe-reset-all --home ~/.blockxd/ --keep-addr-book
SNAP_NAME=$(curl -s https://ss.blockx.nodestake.org/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")
curl -o - -L https://ss.blockx.nodestake.org/${SNAP_NAME} | lz4 -c -d - | tar -x -C $HOME/.blockxd
mv $HOME/.blockxd/priv_validator_state.json.backup $HOME/.blockxd/data/priv_validator_state.json
sudo systemctl restart blockxd
journalctl -u blockxd -f
Get old Snapshots
If you have any questions, please reach out to our Discord
Chain ID: blockx_50-1 | Node Version: v10.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.5.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
curl -LO https://github.com/defi-ventures/blockx-node-public-compiled/releases/download/v10.0.0/blockxd
chmod +x blockxd
mkdir -p /root/go/bin/
mv blockxd /root/go/bin/
blockxd version
Replace NodeName with your own moniker.
blockxd init NodeName --chain-id=blockx_50-1
curl -Ls https://ss-t.blockx.nodestake.top/genesis.json > $HOME/.blockxd/config/genesis.json
curl -Ls https://ss-t.blockx.nodestake.top/addrbook.json > $HOME/.blockxd/config/addrbook.json
sudo tee /etc/systemd/system/blockxd.service > /dev/null <<EOF
[Unit]
Description=blockxd Daemon
After=network-online.target
[Service]
User=$USER
ExecStart=$(which blockxd) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable blockxd
SNAP_NAME=$(curl -s https://ss-t.blockx.nodestake.top/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")
curl -o - -L https://ss-t.blockx.nodestake.top/${SNAP_NAME} | lz4 -c -d - | tar -x -C $HOME/.blockxd
sudo systemctl restart blockxd
journalctl -u blockxd -f
If you have any questions, please reach out to our Discord
https://rpc-t.blockx.nodestake.top
https://api-t.blockx.nodestake.top
https://grpc-t.blockx.nodestake.top:443
Chain Name: Blockx Testnet
RPC: https://jsonrpc-t.blockx.nodestake.top/
Chain ID: 50
Symbol: BCX
Explorer:
https://ss-t.blockx.nodestake.top/genesis.json
curl -Ls https://ss-t.blockx.nodestake.top/genesis.json > $HOME/.blockxd/config/genesis.json
https://ss-t.blockx.nodestake.top/addrbook.json
curl -Ls https://ss-t.blockx.nodestake.top/addrbook.json > $HOME/.blockxd/config/addrbook.json
sudo systemctl restart blockxd
journalctl -u blockxd -f
516ff1074b20ad99b4f8caf11233a1d226c020bd@rpc-t.blockx.nodestake.top:666
seed="516ff1074b20ad99b4f8caf11233a1d226c020bd@rpc-t.blockx.nodestake.top:666"
sed -i.bak -e "s/^seed *=.*/seed = \"$seed\"/" ~/.blockxd/config/config.toml
sudo systemctl restart blockxd
journalctl -u blockxd -f
peers=$(curl -s https://ss-t.blockx.nodestake.top/peers.txt)
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" ~/.blockxd/config/config.toml
sudo systemctl restart blockxd
journalctl -u blockxd -f
sudo systemctl stop blockxd
blockxd tendermint unsafe-reset-all --home ~/.blockxd/ --keep-addr-book
SNAP_RPC="https://rpc-t.blockx.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\"|" ~/.blockxd/config/config.toml
more ~/.blockxd/config/config.toml | grep 'rpc_servers'
more ~/.blockxd/config/config.toml | grep 'trust_height'
more ~/.blockxd/config/config.toml | grep 'trust_hash'
sudo systemctl restart blockxd
journalctl -u blockxd -f
We make the node snapshot every 6h
sudo apt update
sudo apt-get install snapd lz4 -y
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1false|" ~/.blockxd/config/config.toml
sudo systemctl stop blockxd
cp $HOME/.blockxd/data/priv_validator_state.json $HOME/.blockxd/priv_validator_state.json.backup
rm -rf $HOME/.blockxd/data
blockxd tendermint unsafe-reset-all --home ~/.blockxd/ --keep-addr-book
SNAP_NAME=$(curl -s https://ss-t.blockx.nodestake.top/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")
curl -o - -L https://ss-t.blockx.nodestake.top/${SNAP_NAME} | lz4 -c -d - | tar -x -C $HOME/.blockxd
mv $HOME/.blockxd/priv_validator_state.json.backup $HOME/.blockxd/data/priv_validator_state.json
sudo systemctl restart blockxd
journalctl -u blockxd -f
If you have any questions, please reach out to our Discord