Cosmos Hub, Cosmos Ağı'nı oluşturan, sürekli artan sayıda birbirine bağlı blok zincirlerinin ilkidir.
Cosmos Hub, Cosmos SDK kullanılarak oluşturulur ve gaiad (Gaia Daemon) adlı bir ikili dosyada derlenir. Cosmos Hub ve diğer tamamen bağımsız Cosmos SDK blok zincirleri, Blok Zincirler Arası İletişimi sağlayan IBC adlı bir protokol kullanarak birbirleriyle etkileşime girer. Cosmos Hub'ın ne olduğunu anlamak için bu giriş açıklamasını okuyabilirsiniz.
Eğer Stride kurulu bir sunucuya kurulum yapacaksanız Sistemi Güncelleme, Gerekli Kütüphanelerin Kurulması ve Go Kurulumu adımlarını atlayabilirsiniz.
sudo su
cd $HOMEapt update && sudo apt upgrade -yapt install curl make build-essential gcc tmux jq chrony htop -y < "/dev/null"ver="1.19"
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
rm -rf /usr/local/go
tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
rm -rf "go$ver.linux-amd64.tar.gz"
echo 'export GOROOT=/usr/local/go' >> $HOME/.bash_profile
echo 'export GOPATH=$HOME/go' >> $HOME/.bash_profile
echo 'export GO111MODULE=on' >> $HOME/.bash_profile
echo 'export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin' >> $HOME/.bash_profile
source $HOME/.bash_profile
go versionaşağıda değiştirmeniz gereken yerleri yazıyorum.
$GAIA_NODENAMEvalidator adınız$GAIA_WALLETcüzdan adınız
echo "export GAIA_NODENAME=$GAIA_NODENAME" >> $HOME/.bash_profile
echo "export GAIA_WALLET=$GAIA_WALLET" >> $HOME/.bash_profile
echo "export GAIA_PORT=23" >> $HOME/.bash_profile
echo "export GAIA_CHAIN_ID=GAIA" >> $HOME/.bash_profile
source $HOME/.bash_profileYukarıdaki kodlarda değişiklik yaptığınızda aşağıdaki gibi görünmeli.
echo "export GAIA_NODENAME=Bilge" >> $HOME/.bash_profile
echo "export GAIA_WALLET=Bilge" >> $HOME/.bash_profile
echo "export GAIA_PORT=23" >> $HOME/.bash_profile
echo "export GAIA_CHAIN_ID=GAIA" >> $HOME/.bash_profile
source $HOME/.bash_profilecd $HOME
git clone https://github.com/Stride-Labs/gaia.git
cd gaia
git checkout 5b47714dd5607993a1a91f2b06a6d92cbb504721
make build
cp $HOME/gaia/build/gaiad /usr/local/bingaiad config chain-id $GAIA_CHAIN_ID
gaiad config keyring-backend test
gaiad config node tcp://localhost:${GAIA_PORT}657gaiad init $GAIA_NODENAME --chain-id $GAIA_CHAIN_IDcurl https://raw.githubusercontent.com/Stride-Labs/testnet/main/poolparty/gaia/gaia_genesis.json > ~/.gaia/config/genesis.json
curl https://raw.githubusercontent.com/mmc6185/node-testnets/main/stride/GAIA/addrbook.json > ~/.gaia/config/addrbook.jsonsed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0uatom\"/" $HOME/.gaia/config/app.tomlSEEDS=""
PEERS="ec829f12f6d513384e6c5ae79220455e0d80163c@104.208.67.175:23656,88f9b658a77a1ed7376adbc6d0584da8c1a35f6f@176.124.213.56:23656,b8948a13a8953f864ff43fa31ede14a21e44efdc@88.208.57.200:26656,b3dee7da18fc03c8f9481bad25a06138c7badd8c@86.48.2.74:23656,b7716bc446bd0c636ccb343c408065af71fbb576@159.65.20.94:23656,4f0e774fdf629771045fc95e74145d04e899af92@134.122.96.36:23656,a3720d1999a88056ef74fdb923e27dfd9c24c01d@40.114.118.113:23656,8f7058c8d3ba5b889c9895ed4525cb89e64f0a8b@75.119.133.19:23656,b767515dca0be232fc287e0d274831a8c80fcac7@5.9.147.22:26256,c3c32094135bc9d9148dbcbac52fdace8d01d62c@51.77.108.119:23656,a3b3668f967de210ae31ce779deed03f91074038@185.249.225.35:23656,d241b443f87c613d8e7039acd64ff7c296166b99@38.242.134.205:23656,8e2cf0c23b69924a8442b8102951778bd5254773@38.242.233.25:23656,4e6ba3223ba24e27eccffede205e4cffcbae903a@38.242.135.66:23656,9c86d46e33566001c89d274e2559932a4e98e406@20.90.88.145:23656,ccadfbc7c6204887edc9a6eba5f9beed78ffe9de@149.102.137.76:23656,c24fecd05c85385aaa84e587557285e7dfe38d54@217.160.207.56:23656,c6dcce40e8b8a00f353a642ef0ee3623a333c067@20.230.133.117:23656,964f3d7398196238acd9e26cc96ad7787c7513f6@45.130.104.89:23656,ff3a2a2022b2d53541efc0403af302eae2775da5@51.159.182.149:23656,6567e116f975eb36be8e15598f10917dab831c35@31.207.44.66:23656,853174f1ca8b78fbbfdefd32af7cc1f3fc424ce3@185.182.187.33:23656,6fd97df135f806249b55789d314b1482df38d366@20.213.53.251:23656,2101d45204248d9a8b825a23950370029d5e136e@195.88.87.43:23656,75c0154117e46f29b1eee482d740f0cc73ef76ed@164.92.80.118:23656,f6149bcd125f8972b0dc333c84cfef6fc3b9b54a@20.193.154.140:23656,6b85c6a0b2cdcf05d0ce5b2f6a78728b510fcb01@131.255.179.4:23656,87c1cebe140dbde04644e62a31af7863fa1b4fc5@157.245.0.168:23656,a64faaf6fe45425352524341d2f390ce6c603c09@139.162.2.113:23656,712f37d4e5f080452759bb6f4c7ed1716270584f@20.25.144.37:23656,23e60781c1e71968d7412cb6f45aa7d5648f2517@52.234.146.133:23656,aa3aa0e1244c0503b6d94d7a2ab4554ba0e3fd79@173.212.233.187:23656,7f248115c0636860cfcdfaec5a20f42bc6d622a2@38.242.222.136:23656"
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.gaia/config/config.tomlsed -i -e "s/prometheus = false/prometheus = true/" $HOME/.gaia/config/config.tomlpruning="custom"
pruning_keep_recent="100"
pruning_keep_every="0"
pruning_interval="50"
sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.gaia/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.gaia/config/app.toml
sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.gaia/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.gaia/config/app.tomlsed -i.bak -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:${GAIA_PORT}658\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:${GAIA_PORT}657\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:${GAIA_PORT}060\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:${GAIA_PORT}656\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":${GAIA_PORT}660\"%" $HOME/.gaia/config/config.toml
sed -i.bak -e "s%^address = \"tcp://0.0.0.0:1317\"%address = \"tcp://0.0.0.0:${GAIA_PORT}317\"%; s%^address = \":8080\"%address = \":${GAIA_PORT}080\"%; s%^address = \"0.0.0.0:9090\"%address = \"0.0.0.0:${GAIA_PORT}090\"%; s%^address = \"0.0.0.0:9091\"%address = \"0.0.0.0:${GAIA_PORT}091\"%" $HOME/.gaia/config/app.tomlgaiad tendermint unsafe-reset-all --home $HOME/.gaiatee /etc/systemd/system/gaiad.service > /dev/null <<EOF
[Unit]
Description=gaia
After=network-online.target
[Service]
User=$USER
ExecStart=$(which gaiad) start --home $HOME/.gaia
Restart=on-failure
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOFsystemctl daemon-reload
systemctl enable gaiad
systemctl restart gaiadjournalctl -u gaiad -f -o catBu kod blokları hızlı yakalamamıza yarar. Bağlanması uzun sürebilir.
SNAP_RPC1="https://gaia.poolparty.stridenet.co:445" \
&& SNAP_RPC2="https://gaia.poolparty.stridenet.co:445"
LATEST_HEIGHT=$(curl -s $SNAP_RPC2/block | jq -r .result.block.header.height) \
&& BLOCK_HEIGHT=$((LATEST_HEIGHT - 2000)) \
&& TRUST_HASH=$(curl -s "$SNAP_RPC2/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC1,$SNAP_RPC2\"| ; \
s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \
s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"|" $HOME/.gaia/config/config.toml
gaiad tendermint unsafe-reset-all --home $HOME/.gaia
systemctl restart gaiad && journalctl -fu gaiad -o catSEEDS=""
PEERS="23478aeda62e91758ac0cd1e37d00cce394e3335@146.59.242.5:21656,a29526542ffa259e0315f728846c5118c915b3e6@45.67.217.3:23656,cdea72bf9f145677619696cb81bb6f56ef2df1d3@116.203.35.83:23656,55868105f05e9255259d41abd22ece102b185cec@65.21.0.10:23656,4618980b1c13a94d413157a3df2b7913784a44f9@81.5.117.14:23656,db5e32d6fb2f45b8198418db430f60aa687abb60@185.249.225.174:23656,0c111a68bdae46e947ac78deeed69bf8c40da400@178.128.54.2:23656,76a9c7a56981d0737accafdf7c1f2bf9dd2b91b8@20.84.76.87:23656,bad15577c487a740ae1b76e2861afc87418d3a46@37.120.178.232:26666,d5df12832b650fede46771cfbceb6e55683ccbb4@159.65.203.179:23656,1d48e49ed890df3c7c878441666a3779b5d2ac01@40.122.45.132:23656,a48819810d0dc99f11a590adf91becea98bf0c5f@194.5.152.107:23656,2be2bfa48e0fcdab68f3050d5e32ee1a58d5e516@207.244.244.25:23656,d7a725a14e7cd2d2f40c49c60ce682a647f2bd96@52.151.194.158:23656,e91c1a873de5c362e865019fcf51ecffe0e844f3@78.47.118.55:23656,360d191be810621e7a4c3b4650d0cfc83d297411@148.251.47.69:23656,e502a783e89b96a4c973a2623cb36cb28cca08c2@65.108.86.20:23656,aebe44f7f8120e64467914f1f4d5647f5f6670d5@20.55.89.205:23656,d9fe7b10bff442095e212ba8d15b069637e8597e@149.102.131.122:23656,294a944c1eca52eb15b3b7d375b4c0c42b1300a2@65.108.11.234:23656,033f317d879eecd733c9af2a6a2159cb4ea24150@78.47.217.149:23656,2b43910f82d55dc1ad2744658d4a0e2bf4b21f98@95.216.220.64:23656,36548633554e391db8609f48225bd4282b3221a7@194.163.146.8:23656,b01f4bf8d372a47e727d604dadd13ffbd2bfa8ce@95.216.210.104:23656,78a0aa68be8a944637e70aa655fbc9ab46192ecf@65.108.220.117:23656,f86ab676050b8582423f835c8d14eebd648e1de4@78.47.131.222:23656,86ab86053a325e4a55cd47904ee59d2a9a07a860@188.34.178.82:23656,a573c23191a5114b7c13c555227b9cd5dcc12fb4@65.108.249.29:23656,0ae9039c32e2814bc563b1199bc9da0314601503@80.240.25.87:26656,5f5ca9ac05878e93e65c48ac08311405a8ef5b2a@195.201.18.93:23656,61c71a4ec4120a15c2c9184cb27d75aaeefe264a@161.97.161.162:23656"
sed -i -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.gaia/config/config.toml
systemctl restart gaiad && journalctl -fu gaiad -o catEğer Stride testnetine katılıyorsanız yeni cüzdan oluşturmanıza gerek yok.
$GAIA_WALLETbölümünü değiştirmiyoruz kurulumun başında cüzdanımıza isim belirledik.
gaiad keys add $GAIA_WALLET$GAIA_WALLETbölümünü değiştirmiyoruz kurulumun başında cüzdanımıza isim belirledik.
gaiad keys add $GAIA_WALLET --recoverGAIA_WALLET_ADDRESS=$(gaiad keys show $GAIA_WALLET -a)
GAIA_VALOPER_ADDRESS=$(gaiad keys show $GAIA_WALLET --bech val -a)
echo 'export GAIA_WALLET_ADDRESS='${GAIA_WALLET_ADDRESS} >> $HOME/.bash_profile
echo 'export GAIA_VALOPER_ADDRESS='${GAIA_VALOPER_ADDRESS} >> $HOME/.bash_profile
source $HOME/.bash_profile- BU AŞAMADAN SONRA NODE'UMUZUN EŞLEŞMESİNİ BEKLİYORUZ.
Test token almak için Discord'da #token-faucet kanalından şu şekilde $faucet-atom:CUZDAN_ADRESINIZ mesaj atıyoruz.
gaiad query bank balances $GAIA_WALLET_ADDRESS --chain-id $GAIA_CHAIN_IDfalse çıktısı almaldıkça bir sonraki yani validator oluşturma adımına geçmiyoruz.
gaiad status 2>&1 | jq .SyncInfoAşağıdaki komutta aşağıda berlittiğim yerler dışında bir değişikli yapmanız gerekmez;
'identity' buraya httpskeybase.io sitesine üye olarak size verilen kimlik numaranızı yazıyorsunuz.
'details' kendiniz hakkında bilgiler verebilir ya da Rues Community Supporter yazabilirsiniz.
'website' Varsa bir siteniz yazabilirsiniz ya da httpsforum.rues.info olarak bırakabilirsiniz.
'security-contact' E-posta adresiniz.
gaiad tx staking create-validator \
--commission-max-change-rate=0.01 \
--commission-max-rate=0.2 \
--commission-rate=0.05 \
--amount 1000000uatom \
--pubkey=$(gaiad tendermint show-validator) \
--moniker=$GAIA_NODENAME \
--chain-id=$GAIA_CHAIN_ID \
--details=Rues Community Supporter \
--security-contact=E-POSTANIZ \
--website=https://forum.rues.info \
--identity=XXXX1111XXXX1111 \
--min-self-delegation=1000000 \
--from=$GAIA_WALLETSei Discord #role-request kanalından validatorumuze ait explorer linkini gönderiyoruz.
Stride Türkiye Telegram Sayfası
journalctl -fu gaiad -o catsystemctl start gaiadsystemctl stop gaiadsystemctl restart gaiadgaiad status 2>&1 | jq .SyncInfogaiad status 2>&1 | jq .ValidatorInfogaiad status 2>&1 | jq .NodeInfogaiad tendermint show-node-idcurl icanhazip.comecho $(gaiad tendermint show-node-id)@$(curl ifconfig.me):${GAIA_PORT}656gaiad keys listgaiad keys add $GAIA_WALLET --recovergaiad keys delete CUZDAN_ADIgaiad query bank balances $GAIA_WALLET_ADDRESSgaiad tx bank send $GAIA_WALLET_ADDRESS GONDERILECEK_CUZDAN_ADRESI 100000000uatomgaiad tx gov vote 1 yes --from $GAIA_WALLET --chain-id=$GAIA_CHAIN_IDgaiad tx staking delegate $GAIA_VALOPER_ADDRESS 100000000utoi --from=$GAIA_WALLET --chain-id=$GAIA_CHAIN_ID --gas=autogaiad tx staking redelegate $GAIA_VALOPER_ADDRESS StakeEdilecekYeniValidatorAdresi 100000000uatom --from=$GAIA_WALLET --chain-id=$GAIA_CHAIN_ID --gas=autogaiad tx distribution withdraw-all-rewards --from=$GAIA_WALLET --chain-id=$GAIA_CHAIN_ID --gas=autogaiad tx distribution withdraw-rewards $GAIA_VALOPER_ADDRESS --from=$GAIA_WALLET --commission --chain-id=$GAIA_CHAIN_IDgaiad tx staking edit-validator
--moniker=YENI_NODE_ADI
--chain-id=$GAIA_CHAIN_ID
--from=$GAIA_WALLETgaiad tx slashing unjail
--broadcast-mode=block
--from=$GAIA_WALLET
--chain-id=$GAIA_CHAIN_ID
--gas=autosystemctl stop gaiad &&
systemctl disable gaiad &&
rm -r etc/systemd/system/gaiad.service &&
systemctl daemon-reload &&
cd $HOME &&
rm -r .gaia gaia &&
rm -r $(which gaiad)Cosmos Hub is a blockchain network that operates on Proof-of-Stake consensus. You can find an introduction to the Cosmos Hub and how to use the gaiad binary as a delegator, validator or node operator as well as how governance on the Cosmos Hub works in the documentation.
Alternatively, whether you're new to blockchain technology or interested in getting involed, the Cosmos Network Course will guide you through everything. The course walks you through the basics of blockchain technology, to staking, setting up your own node, and beyond.
If you're interested in running a node on the current Cosmos Hub, check out the docs to Join the Cosmos Hub Mainnet.
If you want to participate and help secure Cosmos Hub, check out becoming a validator. Information on what a validator is and how to participate as one can be found at the Validator FAQ. If you're running a validator node on the Cosmos Hub, reach out to a Janitor on the Cosmos Developers Discord to join the #validators-verified channel.
If you still want to participate on the Cosmos Hub, check out becoming a delegator. Information what a delegator is and how to participate as one can be found at the Delegator FAQ.
To participate in or utilize the current Cosmos Hub testnet, take a look at the cosmos/testnets repository. This testnet is for the Theta Upgrade expected in Q1 2022. For future upgrades of the Cosmos Hub take a look at the roadmap.
For an overview of upcoming changes to the Cosmos Hub take a look at the Roadmap.
With each version of the Cosmos Hub, the chain is restarted from a new Genesis state.
Mainnet is currently running as cosmoshub-4. Archives of the state of cosmoshub-1, cosmoshub-2, and cosmoshub-3 are available here.
If you are looking for historical genesis files and other data cosmos/mainnet is an excellent resource. Snapshots are also available at cosmos.quicksync.io.
Check out contributing.md for our guidelines & policies for how we develop the Cosmos Hub. Thank you to all those who have contributed!
We have active, helpful communities on Twitter, Discord, and Telegram.
| Cosmos Developers Discord | |
| Cosmos Twitter | |
| Cosmos Telegram |
For updates on the Cosmos Hub team's activities follow us on the Cosmos Hub Twitter account.

