Arkeo is a free-market decentralized network for providing access to blockchain data. Its intended goal is to create a decentralized option for interacting with any blockchain (although not limited to) and its data.
arkeod keys addarkeod keys add --recoverarkeod keys listarkeod keys deletearkeod keys exportarkeod keys import .backup
arkeod q bank balances $(arkeod keys show -a)
sudo journalctl -u arkeod -f --no-hostname -o catsudo systemctl start arkeodsudo systemctl stop arkeodsudo systemctl restart arkeodsudo systemctl status arkeodsudo systemctl daemon-reloadsudo systemctl enable arkeodsudo systemctl disable arkeodarkeod status 2>&1 | jq .SyncInfoecho $(arkeod tendermint show-node-id)'@'$(curl -s ifconfig.me)':'$(cat $HOME/.arkeo/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')curl -sS http://localhost:657/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}'
arkeod tx staking create-validator \
--amount=000000uarkeo \
--moniker="" \
--pubkey=$(arkeod tendermint show-validator) \
--identity="" \
--details="" \
--website="" \
--security-contact= \
--chain-id= \
--commission-rate=0. \
--commission-max-rate=0.20 \
--commission-max-change-rate=0. \
--min-self-delegation=1 \
--from= \
--gas-adjustment="1.4" \
--fees="5000uarkeo"
arkeod tx staking edit-validator \
--new-moniker="" \
--chain-id= \
--from= \
--gas-adjustment="1.4" \
--fees="5000uarkeo" -yarkeod tx staking edit-validator \
--identity="" \
--chain-id= \
--from= \
--gas-adjustment="1.4" \
--fees="5000uarkeo"arkeod tx staking edit-validator \
--details="" \
--chain-id= \
--from= \
--gas-adjustment="1.4" \
--fees="5000uarkeo"arkeod tx staking edit-validator \
--commission-rate=0. \
--chain-id= \
--from= \
--gas-adjustment="1.4" \
--fees="5000uarkeo"arkeod tx staking edit-validator \
--new-moniker="" \
--identity="" \
--chain-id= \
--from= \
--gas-adjustment="1.4" \
--fees="5000uarkeo"arkeod tx staking edit-validator \
--new-moniker="" \
--details="" \
--chain-id= \
--from= \
--gas-adjustment="1.4" \
--fees="5000uarkeo"arkeod tx staking edit-validator \
--new-moniker="" \
--commission-rate=0. \
--chain-id= \
--from= \
--gas-adjustment="1.4" \
--fees="5000uarkeo"arkeod tx staking edit-validator \
--identity="" \
--details="" \
--chain-id= \
--from= \
--gas-adjustment="1.4" \
--fees="5000uarkeo"arkeod tx staking edit-validator \
--identity="" \
--commission-rate=0. \
--chain-id= \
--from= \
--gas-adjustment="1.4" \
--fees="5000uarkeo"arkeod tx staking edit-validator \
--details="" \
--commission-rate=0. \
--chain-id= \
--from= \
--gas-adjustment="1.4" \
--fees="5000uarkeo"arkeod tx staking edit-validator \
--new-moniker="" \
--identity="" \
--details="" \
--chain-id= \
--from= \
--gas-adjustment="1.4" \
--fees="5000uarkeo"arkeod tx staking edit-validator \
--new-moniker="" \
--identity="" \
--commission-rate=0. \
--chain-id= \
--from= \
--gas-adjustment="1.4" \
--fees="5000uarkeo"arkeod tx staking edit-validator \
--new-moniker="" \
--details="" \
--commission-rate=0. \
--chain-id= \
--from= \
--gas-adjustment="1.4" \
--fees="5000uarkeo"arkeod tx staking edit-validator \
--identity="" \
--details="" \
--commission-rate=0. \
--chain-id= \
--from= \
--gas-adjustment="1.4" \
--fees="5000uarkeo"arkeod tx staking edit-validator \
--new-moniker="" \
--identity="" \
--details="" \
--commission-rate=0. \
--chain-id= \
--from= \
--gas-adjustment="1.4" \
--fees="5000uarkeo"arkeod tx staking edit-validator \
--new-moniker="" \
--identity="" \
--details="" \
--website="" \
--security-contact= \
--chain-id= \
--commission-rate=0. \
--from= \
--gas-adjustment="1.4" \
--fees="5000uarkeo"
arkeod status 2>&1 | jq .ValidatorInfoarkeod q staking validator $(arkeod keys show --bech val -a)arkeod q slashing signing-info $(arkeod tendermint show-validator)arkeod tx slashing unjail --broadcast-mode=block --from --chain-id --gas-adjustment="1.4" --fees="5000uarkeo"arkeod q staking validators -oj --limit=2000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " " + .description.moniker' | sort -gr | nl[[ $(arkeod q staking validator $(arkeod keys show --bech val -a) -oj | jq -r .consensus_pubkey.key) = $(arkeod status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"arkeod q slashing signing-info $(arkeod tendermint show-validator)
arkeod tx distribution withdraw-all-rewards --from --chain-id --gas-adjustment="1.4" --fees="5000uarkeo"arkeod tx distribution withdraw-rewards $(arkeod keys show --bech val -a) --commission --from --chain-id --gas-adjustment="1.4" --fees="5000uarkeo"arkeod tx staking delegate $(arkeod keys show --bech val -a) 000000uarkeo --from --chain-id --gas-adjustment="1.4" --fees="5000uarkeo"arkeod tx staking redelegate $(arkeod keys show --bech val -a) 000000uarkeo --from --chain-id --gas-adjustment="1.4" --fees="5000uarkeo"arkeod tx staking delegate 000000uarkeo --from --chain-id --gas-adjustment="1.4" --fees="5000uarkeo"arkeod tx staking unbond $(arkeod keys show --bech val -a) 000000uarkeo --from --chain-id --gas-adjustment="1.4" --fees="5000uarkeo"arkeod tx bank send 000000uarkeo --from --chain-id --gas-adjustment="1.4" --fees="5000uarkeo"
arkeod query gov proposal
arkeod tx gov vote --from --chain-id --gas-adjustment="1.4" --fees="5000uarkeo"
CUSTOM_PORT=
sed -i.bak -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:${CUSTOM_PORT}658\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:${CUSTOM_PORT}657\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:${CUSTOM_PORT}060\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:${CUSTOM_PORT}656\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":${CUSTOM_PORT}660\"%" $HOME/.arkeo/config/config.toml
sed -i.bak -e "s%^address = \"tcp://0.0.0.0:1317\"%address = \"tcp://0.0.0.0:${CUSTOM_PORT}317\"%; s%^address = \":8080\"%address = \":${CUSTOM_PORT}080\"%; s%^address = \"0.0.0.0:9090\"%address = \"0.0.0.0:${CUSTOM_PORT}090\"%; s%^address = \"0.0.0.0:9091\"%address = \"0.0.0.0:${CUSTOM_PORT}091\"%" $HOME/.arkeo/config/app.toml
sed -i -e 's|^indexer *=.*|indexer = "kv"|' $HOME/.arkeo/config/config.toml
sed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.arkeo/config/config.toml
arkeod tendermint unsafe-reset-all --home $HOME/.arkeo --keep-addr-book
sudo systemctl stop arkeod && \
sudo systemctl disable arkeod && \
rm /etc/systemd/system/arkeod.service && \
sudo systemctl daemon-reload && \
cd $HOME && \
rm -rf .arkeo && \
rm -rf $(which arkeod)
wget -O $HOME/.arkeo/config/genesis.json "https://raw.githubusercontent.com/kynraze/service/main/testnet/arkeo/genesis.json"
wget -O $HOME/.arkeo/config/addrbook.json "https://snap.kynraze.com/test/arkeo/addrbook.json"
PEERS=
sed -i -e "s|^persistent_peers *=.*|persistent_peers = "$PEERS"|" $HOME/.arkeo/config/config.toml
wget -O auto-arkeo.sh https://raw.githubusercontent.com/kynraze/service/main/testnet/arkeo/auto.sh && chmod +x auto-arkeo.sh && ./auto-arkeo.sh
wget -O snapshot-arkeo.shhttps://raw.githubusercontent.com/kynraze/service/main/testnet/arkeo/install-snapshot.sh&& chmod +x snapshot-arkeo.sh && ./snapshot-arkeo.sh
ARKEO
_NODENAME=""
echo "exportARKEO_NODENAME=$ARKEO_NODENAME" >> $HOME/.bash_profileif [ ! $WALLET ]; thenecho "export WALLET=wallet" >> $HOME/.bash_profilefiecho "exportARKEO_CHAIN_ID=" >> $HOME/.bash_profilesource $HOME/.bash_profile
sudo apt update && sudo apt upgrade -y && sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu gcc git jq chrony liblz4-tool -y
ver="1.20"cd $HOMEwget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"sudo rm -rf /usr/local/gosudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"rm "go$ver.linux-amd64.tar.gz"echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profilesource ~/.bash_profile
go version
wget https://snap.kynraze.com/test/arkeo/arkeod chmod +x arkeod mv arkeod $HOME/go/bin/
sudo apt-get install ca-certificates curl gnupg lsb-release -ycurl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpgecho "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/nullsudo apt-get updatesudo apt-get install docker-ce docker-ce-cli containerd.io -y
git clone https://github.com/arkeonetwork/arkeocd arkeogit checkout mastersudo make proto-gen install TAG=testnet
arkeod version
--long
CUSTOM_PORT=
sed -i.bak -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:${CUSTOM_PORT}658\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:${CUSTOM_PORT}657\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:${CUSTOM_PORT}060\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:${CUSTOM_PORT}656\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":${CUSTOM_PORT}660\"%"$HOME/.arkeo/config/config.tomlsed -i.bak -e "s%^address = \"tcp://0.0.0.0:1317\"%address = \"tcp://0.0.0.0:${CUSTOM_PORT}317\"%; s%^address = \":8080\"%address = \":${CUSTOM_PORT}080\"%; s%^address = \"0.0.0.0:9090\"%address = \"0.0.0.0:${CUSTOM_PORT}090\"%; s%^address = \"0.0.0.0:9091\"%address = \"0.0.0.0:${CUSTOM_PORT}091\"%"$HOME/.arkeo/config/app.toml
arkeod config chain-id $ARKEO_CHAIN_ID arkeod config keyring-backend file arkeod config node tcp://localhost:657
arkeod init $ARKEO_NODENAME
--chain-id$ARKEO_CHAIN_ID
wget -O $HOME/.arkeo/config/genesis.json "https://raw.githubusercontent.com/kynraze/service/main/testnet/arkeo/genesis.json"
wget -O $HOME/.arkeo/config/addrbook.json "https://snap.kynraze.com/test/arkeo/addrbook.json"
PEERS=""sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.arkeo/config/config.tomlsed -i -e "s|^seeds *=.*|seeds = \"\"|" $HOME/.arkeo/config/config.toml
pruning="custom"pruning_keep_recent="100"pruning_keep_every="0"pruning_interval="10"sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.arkeo/config/app.tomlsed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.arkeo/config/app.tomlsed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.arkeo/config/app.tomlsed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.arkeo/config/app.toml
sudo tee /etc/systemd/system/arkeod.service > /dev/null << EOF[Unit]Description=arkeodAfter=network-online.target
[Service]User=$USERExecStart=$(whicharkeod)start --home $HOME/.arkeoRestart=on-failureRestartSec=3LimitNOFILE=65535
[Install]WantedBy=multi-user.targetEOF
curl -o - -Lhttps://snap.kynraze.com/test/arkeo/snapshot-latest.tar.lz4| lz4 -c -d - | tar -x -C $HOME/.arkeo
sudo systemctl daemon-reloadsudo systemctl enablearkeodsudo systemctl restartarkeodsudo journalctl -fuarkeod-o cat
# Update & install lz4(Required)
sudo apt install snapd lz4 -y
# Reset Chain Data
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1false|" $HOME/.arkeo/config/config.toml
sudo systemctl stop arkeod
cp $HOME/.arkeo/data/priv_validator_state.json $HOME/.arkeo/priv_validator_state.json.backup
rm -rf $HOME/.arkeo/data
# Download Data Snapshot
curl -o - -L https://snap.kynraze.com/test/arkeo/snapshot-latest.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.arkeo
mv $HOME/.arkeo/priv_validator_state.json.backup $HOME/.arkeo/data/priv_validator_state.json
# Restart
sudo systemctl restart arkeod
sudo journalctl -fu arkeod -o cat
systemctl stop arkeod
arkeod tendermint unsafe-reset-all --home $HOME/.arkeo --keep-addr-book
STATE_SYNC_RPC=""
LATEST_HEIGHT=$(curl -s $STATE_SYNC_RPC/block | jq -r .result.block.header.height) \
SYNC_BLOCK_HEIGHT=$(($LATEST_HEIGHT - 2000)) \
SYNC_BLOCK_HASH=$(curl -s "$STATE_SYNC_RPC/block?height=$SYNC_BLOCK_HEIGHT" | jq -r .result.block_id.hash)
echo $LATEST_HEIGHT $SYNC_BLOCK_HEIGHT $SYNC_BLOCK_HASH
PEERS=""
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.arkeo/config/config.toml
sed -i.bak -e "s|^enable *=.*|enable = true|" $HOME/.arkeo/config/config.toml
sed -i.bak -e "s|^rpc_servers *=.*|rpc_servers = \"$STATE_SYNC_RPC,$STATE_SYNC_RPC\"|" \
$HOME/.arkeo/config/config.toml
sed -i.bak -e "s|^trust_height *=.*|trust_height = $SYNC_BLOCK_HEIGHT|" \
$HOME/.arkeo/config/config.toml
sed -i.bak -e "s|^trust_hash *=.*|trust_hash = \"$SYNC_BLOCK_HASH\"|" \
$HOME/.arkeo/config/config.toml
systemctl restart arkeod && journalctl -fu arkeod -o cat