AviaOne logo

BITCANNA (Chain ID : bitcanna-1)
by AviaOne BlockChains Service 🟢

Logo Bitcanna

BITCANNA

The legal cannabis with anonymous and decentralised payment is provided by BitCanna. Used on the main shop online WooCommerce and Prestashop.


Learn more about Bitcanna :Go to the AviaOne's website about Bitcanna

Public endpoints

Aviaone endpoints

STEP 1 Update your server to get the latest version
sudo apt update && sudo apt upgrade -y
STEP 2 Install packages
sudo apt install git curl wget tar lz4 unzip jq build-essential pkg-config clang bsdmainutils make ncdu -y
STEP 3 Install Go

Go is a programming language allowing each node of the Cosmos ecosystem to operate.
Go is a compiled and concurrent programming language inspired by C and Pascal.
This language was developed by Google from an initial concept by Robert Griesemer, Rob Pike and Ken Thompson.

cd $HOME
version="1.21.6"
wget "https://golang.org/dl/go$version.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$version.linux-amd64.tar.gz"
rm "go$version.linux-amd64.tar.gz"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile

Check GO version, it must return : go version go1.21.6 linux/amd64

go version
Top page
STEP 4 Install App and build

Here we will install the node for Bitcanna with this binary version : v3.0.2

Please be sure to install the latest version one last minute version can be published ! Please check by yourself here...
cd $HOME
git clone https://github.com/BitCannaGlobal/bcna.git 
cd bcna 
git checkout v3.0.2 
make install

Check if the binary "bcnad" version v3.0.2 has been correctly installed

bcnad version
Top page
STEP 5 Set variables

What does moniker mean?
A personal name or nickname. This name (moniker) will appear in the blockchain explorer.

SPACE in your moniker will create errors

BITCANNA_MONIKER="Replace_AVIAONE_by_your_name"
Top page
STEP 6 Initialize the node (part 1)

We are now ready to initialze the node


bcnad init $BITCANNA_MONIKER --chain-id bitcanna-1
Top page
STEP 7 Initialize the node (part 2)

Set minimum gas price

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

Download genesis

wget -O $HOME/.bcna/config/genesis.json "https://services.bitcanna-1.bitcanna.aviaone.com/genesis.json"

Download addrbook

wget -O $HOME/.bcna/config/addrbook.json "https://services.bitcanna-1.bitcanna.aviaone.com/addrbook.json"

Add Seeds

SEEDS="258f523c96efde50d5fe0a9faeea8a3e83be22ca@seed.bitcanna-1.bitcanna.aviaone.com:10263,d6aa4c9f3ccecb0cc52109a95962b4618d69dd3f@seed1.bitcanna.io:26656,23671067d0fd40aec523290585c7d8e91034a771@seed2.bitcanna.io:26656"
sed -i -e "s|^seeds *=.*|seeds = \"$SEEDS\"|" $HOME/.bcna/config/config.toml

Change ports

Advanced users ONLY !

Clear Data

bcnad tendermint unsafe-reset-all $HOME/.bcna --keep-addr-book
Top page
STEP 8 Create service to START and STOP (/etc/systemd/system)

This will let you start and stop your node with /etc/systemd/system

sudo tee /etc/systemd/system/bcnad.service > /dev/null <<EOF
[Unit] 
Description=BITCANNA\n 
After=network.target 
[Service] 
Type=simple
User=$USER
ExecStart=$(which bcnad) start 
Restart=on-failure RestartSec=10 LimitNOFILE=65535 [Install] WantedBy=multi-user.target EOF
sudo systemctl enable bcnad 
sudo systemctl daemon-reload

This command will start your node

Do not use it now if you are going to use below : Snapshot | State Sync (because your node shouldn't start now... but after the Snapshot | State Sync)

sudo systemctl restart bcnad && journalctl -u bcnad -f --no-hostname -o cat
Top page
STEP 9 SNAPSHOT SNAPSHOT (After do no use STATE SYNC if you get synced, this is make no sense !)
How to use ?
The best way is just copy and past this code below in your terminal and that's it ! Your snapshot will be done.
Generic placeholder image
SNAPSHOT Bitcanna (Chain ID : bitcanna-1)

(updated every 24 hours)

File name : https://services.bitcanna-1.bitcanna.aviaone.com/bitcanna-1_2024-05-02.tar.gz

Download this file

sudo systemctl stop bcnad 
cp $HOME/.bcna/data/priv_validator_state.json $HOME/.bcna/priv_validator_state.json.backup
bcnad tendermint unsafe-reset-all --home $HOME/.bcna --keep-addr-book
wget -c https://services.bitcanna-1.bitcanna.aviaone.com/bitcanna-1_2024-05-02.tar.gz -O - | tar -xz -C $HOME/.bcna
mv $HOME/.bcna/priv_validator_state.json.backup $HOME/.bcna/data/priv_validator_state.json sudo systemctl start bcnad && sudo journalctl -u bcnad -f --no-hostname -o cat
Top page
STEP 9 STATE SYNC STATE SYNC (After do not use SNAPSHOT if you get synced, this is make no sense !)
How to use ?
The best way is just copy and past this code below in your terminal and that's it ! Your StateSync will be done.

Please be sure to use the latest binary version : 3.0.2

Optional to clean your previous State Sync
sed -i "/\[statesync\]/, /^enable =/ s/=.*/= false/;\
/^rpc_servers =/ s|=.*|= \"\"|;\
/^trust_height =/ s/=.*/= 0/;\
/^trust_hash =/ s/=.*/= \"\"/" $HOME/.bcna/config/config.toml						 
sudo systemctl stop bcnad 
SNAP_RPC="https://rpc.bitcanna-1.bitcanna.aviaone.com: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)
Check if you get a positive return
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH
Copy and past !
sed -i "/\[statesync\]/, /^enable =/ s/=.*/= true/;\
/^rpc_servers =/ s|=.*|= \"$SNAP_RPC,$SNAP_RPC\"|;\
/^trust_height =/ s/=.*/= $BLOCK_HEIGHT/;\
/^trust_hash =/ s/=.*/= \"$TRUST_HASH\"/" $HOME/.bcna/config/config.toml
Reset all data
sudo systemctl stop bcnad && bcnad tendermint unsafe-reset-all --home $HOME/.bcna --keep-addr-book
Start Sync
sudo systemctl start bcnad && journalctl -u bcnad -f --no-hostname -o cat
Watch your logs and be patient it can take 5 minutes.... !!

STEP 10 Now get synced and check 13731559

With the command used just above, your node just started, now BE PATIENT your node has started to work and will need time to get synced on the last block.

First check your logs and have a look at what's going on !

You should see some output like this which confirm that your node is indexing blocks

### indexed block exents height=13731559 module=txindex

How to check if your node is already fully synced? ?

bcnad status 2>&1 | jq .SyncInfo

The current block number is :13731559 and the last block app hash is :VwtKJTDVMgG4K1u9NNlRgT+h7YuUlRDrIe9k4wclqW8=

true mean syncing on the way, and true is NOT SYNCED

You will see an output with :

"catching_up": false

If you get true instead of false, please wait... it's not done yet, it's on the way...

true mean syncing on the way, and true is NOT SYNCED

The current block number is :13731559 and the last block app hash is :VwtKJTDVMgG4K1u9NNlRgT+h7YuUlRDrIe9k4wclqW8=

Top page
STEP 11 Create or recover a wallet

Why it's better to get synced before to create or recover a wallet ?
Because when your wallet will be created or recovered, if you are not synced, you will not be able to check the balance !

Create Wallet

bcnad keys add name_wallet

Recover Wallet

bcnad keys add name_wallet --recover
Top page
STEP 12 Create your validator (NEVER DO IT if you are not already synced with the last block)

Create your validator if you are not synced, you will get some troubles...

bcnad tx staking create-validator \
 --amount=1000000ubcna \
 --pubkey=$(bcnad tendermint show-validator) \
 --moniker="YOUR_NICKNAME" \
 --chain-id=bitcanna-1 \
 --commission-rate=0.05 \
 --commission-max-rate=0.2 \
 --commission-max-change-rate=0.02 \
 --min-self-delegation=1 \
 --website="https://your-website.com" \
 --identity="keyBASE_id" \
 --details="This is will be display in the blockchain explorer. Write here something about you"\
 --gas-prices=0.1ubcna \
 --gas-adjustment=1.5 \
 --gas=auto \
 --from=WRITE_HERE_YOUR_WALLET_ADDRESS
Top page
LAST STEP EVERYTHING IS DONE !!!

Congratulations, your made all the steps above necessary to setup the node for BITCANNA (chain-id=bitcanna-1) with success and your node is already online now.

Top page
Find here the most useful commands for Bitcanna (--chain-id bitcanna-1)
bcnad q bank balances YOUR_WALLET_NUMBER

Must return false to get synced

bcnad status 2>&1 | jq .SyncInfo
journalctl -u bcnad -f --no-hostname -o cat

(In some case that's necessary to add "fees" or --gas=auto)

bcnad tx gov vote 14 yes --from YOUR_WALLET_NUMBER --chain-id bitcanna-1

(In some case that's necessary to add "fees" or --gas=auto)

bcnad tx slashing unjail --chain-id=bitcanna-1 --from YOUR_WALLET_NUMBER -y
sudo systemctl restart bcnad && journalctl -u bcnad -f --no-hostname -o cat
bcnad q bank balances YOUR_WALLET_NUMBER
bcnad keys add YOUR_WALLER_NAME
bcnad keys add YOUR_WALLET_NUMBER --recover
bcnad keys list
bcnad keys delete YOUR_WALLET_NUMBER

(In some case that's necessary to add "fees" or --gas=auto)

bcnad tx gov vote 14 yes --from YOUR_WALLET_NUMBER --chain-id bitcanna-1

(In some case that's necessary to add "fees" or --gas=auto)

bcnad tx gov vote 14 no --from YOUR_WALLET_NUMBER --chain-id bitcanna-1

(In some case that's necessary to add "fees" or --gas=auto)

bcnad tx gov vote 14 no_with_veto --from YOUR_WALLET_NUMBER --chain-id bitcanna-1

(In some case that's necessary to add "fees" or --gas=auto)

bcnad tx gov vote 14 abstain --from YOUR_WALLET_NUMBER --chain-id bitcanna-1

(In some case that's necessary to add "fees" or --gas=auto)

bcnad query gov proposals

(In some case that's necessary to add "fees" or --gas=auto)

bcnad query gov proposal 14

(In some case that's necessary to adjust : "deposit" or "fees" or --gas=auto)

bcnad tx gov submit-proposal \
--from YOUR_WALLET_NUMBER \
--chain-id bitcanna-1 \
--deposit=100000000ubcna \
--type="Text" \
--title="Write here the title of your proposal for Bitcanna" \
--description="Describe here with details your proposal for Bitcanna" \
--fees=10000ubcna \
--gas=auto \
-y 

(In some case that's necessary to add "fees" or --gas=auto)

bcnad tx slashing unjail --chain-id=bitcanna-1 --from YOUR_WALLET_NUMBER -y
bcnad keys show YOUR_WALLET_NUMBER --bech val -a
bcnad query staking validator YOUR_VALIDATOR_VALOPER --output json 
bcnad q staking validator $(bcnad keys show YOUR_WALLET_NUMBER --bech val -a)
bcnad query slashing signing-info $(bcnad tendermint show-validator)
bcnad status 2>&1 | jq .ValidatorInfo
bcnad q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " \t " + .description.moniker' | sort -gr | nl
bcnad q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_UNBONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " \t " + .description.moniker' | sort -gr | nl
bcnad tx staking edit-validator \
--new-moniker="Replace AVIAONE by your name" \
--identity=YOUR_KEYBASE_ID \
--details="This is will be display in the blockchain explorer. Write here something about you" \
--chain-id=bitcanna-1 \
--commission-rate=0.1 \
--from=YOUR_WALLET_NUMBER \
--gas-prices=0.1ubcna \
--gas-adjustment=1.5 \
--gas=auto \
-y 

(NEVER DO IT if you are not already synced with the latest block)

bcnad tx staking create-validator \
--amount=1000000ubcna \
--pubkey=$(bitcanna-1 tendermint show-validator) \
--moniker="Replace AVIAONE by your name" \
--identity=YOUR_KEYBASE_ID \
--details="This is will be display in the blockchain explorer. Write here something about you" \
--chain-id=bitcanna-1 \
--commission-rate=0.10 \
--commission-max-rate=0.20 \
--commission-max-change-rate=0.01 \
--min-self-delegation=1 \
--from=YOUR_WALLET_NUMBER \
--gas-prices=0.1ubcna \
--gas-adjustment=1.5 \
--gas=auto \
-y 

(In some case that's necessary to add "fees" or --gas=auto)

bcnad tx bank send WALLET_SENDER WALLET_RECEIVER 1000000ubcna --chain-id=bitcanna-1

(In some case that's necessary to add "fees" or --gas=auto)

bcnad tx staking delegate WALLET_NUMBER_WHERE_YOU_WANT_DELEGATE 1000000ubcna --from YOUR_WALLET_NUMBER --chain-id=bitcanna-1

(In some case that's necessary to add "fees" or --gas=auto)

bcnad tx staking delegate YOUR_VALIDATOR_NUMBER 1000000ubcna --from YOUR_WALLET_NUMBER --chain-id=bitcanna-1
bcnad tx distribution withdraw-all-rewards --from YOUR_WALLET_NUMBER
bcnad tx distribution withdraw-rewards YOUR_VALIDATOR_NUMBER --from YOUR_WALLET_NUMBER --commission
Under contruction
Under contruction
Under contruction
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0ubcna\"/" $HOME/.bcna/config/app.toml
sed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.bcna/config/config.toml
sed -i -e 's|^indexer *=.*|indexer = "kv"|' $HOME/.bcna/config/config.toml
echo $(bcnad tendermint show-node-id)'@'$(curl -s ifconfig.me)':'$(cat $HOME/.bcna/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
curl -sS https://rpc.bitcanna-1.bitcanna.aviaone.com/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}'

YOU ARE GOING TO DELETE EVERYTHING WITHOUT ANY POSSIBILITY TO RECOVER, be sure that's really you are looking for...

BEFORE BE SURE TO SAVE $HOME/.bcna/config/priv_validator_key.json

This file $HOME/.bcna/config/priv_validator_key.json will let you create a new node with the same validator

cd $HOME
sudo systemctl stop bcnad 
sudo systemctl disable bcnad 
sudo rm /etc/systemd/system/bcnad.service 
sudo systemctl daemon-reload 
rm -f $(which bcnad) 
rm -rf $HOME/.bcna 
rm -rf $HOME/bcna
Get all fresh live peers available with the chain bitcanna-1
curl -sS https://rpc.bitcanna-1.bitcanna.aviaone.com/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}'
Try these peers it should work !
PEERS="ffb34ec27344e53ba8e2534b3f4f158b1d8da47e@198.244.228.17:38456,bad3d50edf4010901e9d31c2870d14729195a7d3@134.195.198.120:26656,935a9d809781aa4094dd806c2afed29a25ec8b8e@135.181.210.189:26656,d03e334f03eaeebfeb74e536509a980a252c7761@93.43.226.93:26656,48970472844c638389ba56bffd32b73d7b186de6@50.18.24.204:26656,d59cf2a8da6d2b682b24aaf0df387c7a0c898ee5@66.19.157.24:26656,d6aa4c9f3ccecb0cc52109a95962b4618d69dd3f@65.108.43.171:26656,35b0d76e165e5b6852665a5f234eb416b8e045a0@65.21.204.46:31656,a66bce0ddb49dcf60a5b83fd94a7bd4d0878f127@154.53.40.9:26656,97d009e876b32acd288ff6fd03d97f087b26d685@170.39.117.21:26656,ec4796daea06ecf0e51819b931fbcb3e1a99b137@144.91.101.49:26656,02bf6f8c8ee994d02dd2975b3943587360de961c@151.15.173.66:26656,c73f11f731e4a78df73123747d38bc3a9d4d036b@23.88.66.239:36656,c6658742ae4c889ecf8dee95ca2a8e4b45d46dfd@85.214.208.127:26656,32b1cf90be5dc6a01dc2684f0bd97bf052690082@144.91.97.191:26656,7c00beb4956bc40cd33ced6e2c2ffe07d4fa32e7@95.216.242.82:36656,751513c7cd42a2565c37ab482bbe66f4d92c2740@136.244.106.130:26656,64baf27b24d7f68862a35b8b6ddc4b5a7f907ebd@65.108.136.206:26656,cb0848b84987c37ba0fa465585c6b9d6cec6deab@65.108.77.98:26696,d9bfa29e0cf9c4ce0cc9c26d98e5d97228f93b0b@65.109.88.38:42656,da04ee3f8bd93421a3264e3a061a09c139aaa937@161.97.150.65:26656,5cfb82bd566ad3c5330c8326f0da5c7f048aca25@81.0.218.135:24356,23671067d0fd40aec523290585c7d8e91034a771@65.108.43.170:26656,28cfa3b6781abe352f4503d70b72266691eb1401@93.43.199.2:52656,b204222a9b6ca4eee39a836b7406483a5ad4e719@144.91.114.250:26656,a1c550359b30811ceeddd76fe7c1870a72730382@89.39.106.78:14656,fa725baa199c88bc8536da4d7b316ba36620f93b@173.215.85.171:20010"
sed -i -e "s|^persistent_peers *=.*|persistent_peers = \"$PEERS\"|" $HOME/.bcna/config/config.toml
SEEDS="258f523c96efde50d5fe0a9faeea8a3e83be22ca@seed.bitcanna-1.bitcanna.aviaone.com:10263,d6aa4c9f3ccecb0cc52109a95962b4618d69dd3f@seed1.bitcanna.io:26656,23671067d0fd40aec523290585c7d8e91034a771@seed2.bitcanna.io:26656"
sed -i -e "s|^seeds *=.*|seeds = \"$SEEDS\"|" $HOME/.bcna/config/config.toml

(updated every 4 hours)

curl -Ls https://services.bitcanna-1.bitcanna.aviaone.com/addrbook.json > $HOME/.bcna/config/addrbook.json

(updated every 4 hours)

curl -Ls https://services.bitcanna-1.bitcanna.aviaone.com/genesis.json > $HOME/.bcna/config/genesis.json
SNAPSHOT Bitcanna (Chain ID : bitcanna-1)
SNAPSHOT Bitcanna (Chain ID : bitcanna-1)

(updated every 24 hours)

File name : https://services.bitcanna-1.bitcanna.aviaone.com/bitcanna-1_2024-05-02.tar.gz


Please be sure to use the latest binary version.

One last minute version can be published ! Please check by yourself here... and compare with your node bcnad version

How to use ? The best way is just copy and past this code below in your terminal and that's it ! Your snapshot will be done.
sudo systemctl stop bcnad
cp $HOME/.bcna/data/priv_validator_state.json $HOME/.bcna/priv_validator_state.json.backup bcnad tendermint unsafe-reset-all --home $HOME/.bcna --keep-addr-book wget -c https://services.bitcanna-1.bitcanna.aviaone.com/bitcanna-1_2024-05-02.tar.gz -O - | tar -xz -C $HOME/.bcna
mv $HOME/.bcna/priv_validator_state.json.backup $HOME/.bcna/data/priv_validator_state.json sudo systemctl start bcnad && sudo journalctl -u bcnad -f --no-hostname -o cat

Please be sure to use the latest binary version : 3.0.2

How to use ? The best way is just copy and past this code below in your terminal and that's it !
Optional to clean your previous State Sync
Recommanded when you already get Sync to avoid trouble when you will restart your node next time.
sed -i "/\[statesync\]/, /^enable =/ s/=.*/= false/;\
/^rpc_servers =/ s|=.*|= \"\"|;\
/^trust_height =/ s/=.*/= 0/;\
/^trust_hash =/ s/=.*/= \"\"/" $HOME/.bcna/config/config.toml
Start here the process for State Sync
sudo systemctl stop bcnad 
SNAP_RPC="https://rpc.bitcanna-1.bitcanna.aviaone.com: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)
Check if you get a positive return
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH
Copy and past !
sed -i "/\[statesync\]/, /^enable =/ s/=.*/= true/;\
/^rpc_servers =/ s|=.*|= \"$SNAP_RPC,$SNAP_RPC\"|;\
/^trust_height =/ s/=.*/= $BLOCK_HEIGHT/;\
/^trust_hash =/ s/=.*/= \"$TRUST_HASH\"/" $HOME/.bcna/config/config.toml
Reset all data
sudo systemctl stop bcnad && bcnad tendermint unsafe-reset-all --home $HOME/.bcna --keep-addr-book
Now we must restart the node Bitcanna to initiate synchronization with the chain bitcanna-1
sudo systemctl start bcnad && journalctl -u bcnad -f --no-hostname -o cat
Watch your logs and be patient it can take 5 minutes.... !!
How to use ? You are looking for an other way than the command line to connect your wallet with Bitcanna (Chain ID : bitcanna-1)?
Logo Keplr
ADD in your Keplr Wallet : Bitcanna (Chain ID : bitcanna-1)

That's an easy process, just click and follow the instructions...it will be done in 10 seconds !

Our platform offers a secure link that allows you to effortlessly connect your KEPLR wallet. The process is quick and easy. Adding a new chain to your wallet is a standard procedure that doesn't involve any transaction. It simply requires your approval. To get started, click on the button below to add this chain to your wallet and start interacting with the blockchain.