Welcome to validator AlxVoy ⚡ ANODE.TEAM



BitCanna

Links

Mainnet service

Explorers

Sync

RPC & API

Peers and seeds

Genesis and addrbook

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

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

Installation

Hardware Requirements

  • Memory 32GB
  • CPUs 4 Cores (modern CPU's)
  • Disk 1TB of storage (SSD or NVME)

Software Requirements

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

Install last binary

git clone https://github.com/BitCannaGlobal/bcna.git
cd bcna
git checkout v3.1.1
make install

Init the config files

bcnad init <moniker> --chain-id bitcanna-1
bcnad config chain-id bitcanna-1

Create a wallet

bcnad keys add <wallet_name>

Download genesis and addrbook

curl https://anode.team/BitCanna/main/genesis.json > ~/.bcna/config/genesis.json
curl https://anode.team/BitCanna/main/addrbook.json > ~/.bcna/config/addrbook.json

Add peers, seed

SEEDS="d6aa4c9f3ccecb0cc52109a95962b4618d69dd3f@seed1.bitcanna.io:26656,23671067d0fd40aec523290585c7d8e91034a771@seed2.bitcanna.io:26656"
PEERS="ecf729b2fb3c1038c55bd099b35c5d5b1d158c2b@178.62.236.228:26656,dcdc83e240eb046faabef62e4daf1cfcecfa93a2@159.65.198.245:26656,7c00beb4956bc40cd33ced6e2c2ffe07d4fa32e7@95.216.242.82:36656"
sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.bcna/config/config.toml

Add min gas

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

Create the service file

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

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

[Install]
WantedBy=multi-user.target
EOF

Load service and start

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

Create Validator

bcnad tx staking create-validator \
  --amount=1000000ubcna \
  --pubkey=$(bcnad tendermint show-validator) \
  --moniker="<moniker>" \
  --identity="<identity>" \
  --website="<website>" \
  --details="<details>" \
  --security-contact="<contact>" \
  --chain-id="bitcanna-1" \
  --commission-rate="0.10" \
  --commission-max-rate="0.20" \
  --commission-max-change-rate="0.01" \
  --min-self-delegation="1" \
  --fees="400ubcna" \
  --gas auto \
  --gas-adjustment 1.5 \
  --gas-prices 0.001ubcna \
  --from=<wallet_name>

State-Sync

SNAP_RPC=https://bitcanna.rpc.m.anode.team: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
sudo systemctl stop bcnad && bcnad tendermint unsafe-reset-all --home $HOME/.bcna --keep-addr-book
peers="756fa9ce5d65c3c43021d2780e1bda0924a6cd14@144.76.97.251:27656"
sed -i.bak -e  "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.bcna/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/.bcna/config/config.toml
sudo systemctl restart bcnad && journalctl -fu bcnad -o cat

SnapShot (every 6 hours)

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

Testnet service

Explorers

Sync

RPC & API

Peers and seeds

Genesis and addrbook

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

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

Installation

Software Requirements

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

Install last binary

git clone https://github.com/BitCannaGlobal/bcna.git
cd bcna
git checkout v3.1.1
make install

Init the config files

bcnad init <moniker> --chain-id bitcanna-dev-1
bcnad config chain-id bitcanna-dev-1

Create a wallet

bcnad keys add <wallet_name>

Download genesis and addrbook

curl https://anode.team/BitCanna/test/genesis.json > ~/.bcna/config/genesis.json
curl https://anode.team/BitCanna/test/addrbook.json > ~/.bcna/config/addrbook.json

Add peers, seed

SEEDS="471341f9befeab582e845d5e9987b7a4889c202f@144.91.89.66:26656"
PEERS="80ee9ed689bfb329cf21b94aa12978e073226db4@212.227.151.143:26656"
sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.bcna/config/config.toml

Add min gas

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

Create the service file

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

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

[Install]
WantedBy=multi-user.target
EOF

Load service and start

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

Create Validator

bcnad tx staking create-validator \
  --amount=1000000ubcna \
  --pubkey=$(bcnad tendermint show-validator) \
  --moniker="<moniker>" \
  --identity="<identity>" \
  --website="<website>" \
  --details="<details>" \
  --security-contact="<contact>" \
  --chain-id="bitcanna-dev-1" \
  --commission-rate="0.10" \
  --commission-max-rate="0.20" \
  --commission-max-change-rate="0.01" \
  --min-self-delegation="1" \
  --fees="400ubcna" \
  --gas auto \
  --gas-adjustment 1.5 \
  --gas-prices 0.001ubcna \
  --from=<wallet_name>

State-Sync

SNAP_RPC=https://bitcanna.rpc.t.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
sudo systemctl stop bcnad && bcnad tendermint unsafe-reset-all --home $HOME/.bcna --keep-addr-book
peers="2175709bdd102641e9e4ddd38ba263b7f06214df@65.109.28.177:26356"
sed -i.bak -e  "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.bcna/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/.bcna/config/config.toml
sudo systemctl restart bcnad && journalctl -fu bcnad -o cat