logo

Bitcanna Snapshot, State Sync and API/RPC

With this guide you can easily connect to the Bitcanna in a couple of minutes

State Sync

https://rpc-bitcanna.nodiums.com
pruning="custom"
pruning_keep_recent="1000" 
pruning_keep_every="0"
pruning_interval="100" 
sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.bcnad/config/app.toml 
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.bcnad/config/app.toml 
sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.bcnad/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.bcnad/config/app.toml
SNAP_RPC=http://rpc-bitcanna.nodiums.com:443 
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \ BLOCK_HEIGHT=$((LATEST_HEIGHT - 100)); \ 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\"| ; \ s|^(seeds[[:space:]]+=[[:space:]]+).*$|\1\"\"|" $HOME/.bcnad/config/config.toml

Snapshot

https://snapshots.nodiums.com/bitcanna/bitcanna.tar

API and RPC endpoints

https://rpc-bitcanna.nodiums.com
https://api-bitcanna.nodiums.com
https://grpc-bitcanna.nodiums.com

API and RPC endpoints archive

https://ar.rpc-bitcanna.nodiums.com
https://ar.api-bitcanna.nodiums.com
https://ar.grpc-bitcanna.nodiums.com

Peering service

PEERS=53da87c5031b8813e469b65d25febaea68804a2e@185.227.134.96:26656,fd0ec00f76f58680c0c2f3ebd285217fdca48452@68.233.228.216:26656,a3f4c1bb61bdc20908fbd478b4dc7cfa6d4c14c0@154.38.165.151:26656,5e37aefd2a0b9d036b1609a45d6487606da0204b@169.197.141.91:26656,03493c979e821f9d047715b1aaec0ee969392c76@95.214.53.119:26656,7001280de176c2ce4d9c06c05179a6ebe25a46fc@13.228.88.45:26656,be0a6315cbac3a368ff394d314514264d8447057@141.94.139.219:26856,9bca6d87a4a01d77cc7503ef5f5291ff131223d6@89.149.218.67:26656,5454524f3a7342e6b054c2b0606793b186d7fdbc@50.196.144.242:26656,0ecc848709fa1d9a85899086910b245626bad758@31.7.207.245:26656,bba10290da32f3cb41e15c3a192413666ce05cee@169.155.168.107:26656,7db2b1d4a1c3babace9f2382a4205c4977a9a049@193.29.62.15:26656,2ecb6e24df48ee037234222c67ef963daa58bcfc@65.108.102.99:29656,d0e9b950e1b6b9653aca304b9e01c916e5b77071@212.159.103.250:26656,7e6737315c363905ec836237fcd1e83520594f36@38.91.101.145:26656,7d290b7ad464423b908ef040d5214e54707fd607@54.38.92.122:26656,0e3246fd436bb7513fec0fde1c41c1c366c25467@103.73.64.4:26656,4bfa660bfef7f2a67b30e3f4a4af01729dcdc7f4@34.82.86.70:26656,79f5ccf894f33bf81d9379e7bf1a95b80f75cf91@62.133.229.34:26656,c124ce0b508e8b9ed1c5b6957f362225659b5343@134.65.192.97:26656,519f0bca9bad522482bf3c4fad569e2dbfc8ae91@44.200.178.149:26656,30b8008d4ea5069a8724a0aa73833493efa88e67@65.108.140.62:26656,ef9221336be2f2cda18f3da3fd3733e2b96d03ee@54.157.107.51:26656,8d334fff41adeb68f186265d5f1f76614ef63d8d@185.183.35.91:26656,6adc00bef235246c90757547d5f0703d6a548460@178.128.82.28:26656,902bdfa1bf760f8816a7a8a7df0a80f97f15bee1@54.179.209.23:26656,220f9e9234c4ed4f6389c319902fbb0ea807c033@195.189.97.54:26656,47f7b7a021497ad7a338ea041f19a1a11ae06795@38.75.136.93:26656,20180c45451739668f6e272e007818139dba31e7@88.198.62.198:2020,cb75f43879cc240982b69f4441fe568eed3ea21b@86.111.48.109:26656,03a930d1fe43dd2a1194bc8515dd49100e874441@54.95.48.41:26656,bd2525f1a86af8b1a3798c04387f47f0c0627d24@159.223.201.38:26656,37201c92625df2814a55129f73f10ab6aa2edc35@95.214.53.215:26696,106b7a61b2d289ed8f7ff52c77d39a97bc1afee5@159.69.168.230:26656,02b5a74f0cc909045efe170da3cc5706de2c0be5@88.208.243.62:26656,30da0ee2c35abce21e6160e43f03ece0f18cdfe7@144.76.63.67:26219,af1258e2853d14b0a14baf4462dfb9bb57eeb6f0@74.50.94.66:46656,dda1f59957f767e20b0fc64b1c915b4799fc0cc5@159.223.201.93:26656,765c32f8c3150681a5c2c9ce97f4d9b39f1231c9@173.215.85.171:20040,429651030eb3b48f728c8b11036b0a43328611b6@51.81.106.55:36656,1e8aaf3654887a05caeb0c1f73ce39e859e2f0c9@159.223.201.86:26656,8e81452f92a87acd45c071d6e7f87d967ab9db9e@95.111.246.150:26656,67b521a0ecd833ffcae38e4a2b1e0da4a5b9d016@38.104.143.74:26656,3691ac1f56389ffec8579c13a6eb8eca41cf8ae3@54.219.88.246:26656,89642d7819b58f89f8d28e230c61cbc2fc8d6784@35.231.177.69:26656,32d7f7c7e0e5279c8b2f05cb0cbbee04d3e00614@62.131.218.3:26656,0d7243f7dd66cc2507f889422dae1befd0c55fe7@38.242.252.57:26656,16521dc41bd06acaaa8baa2d08574ccd6703798d@51.79.176.203:56656,97e4468ac589eac505a800411c635b14511a61bb@169.155.44.92:26656,b8023d075a70a50c864cef28668f9a56cc533cf8@134.195.91.15:26656
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.bcnad/config/config.toml