A hyper-efficient zero-knowledge infrastructure layer for general message passing, asset transfers, NFTs, and DeFi.
uniond keys add
uniond keys add --recover
uniond keys list
uniond keys delete
uniond keys export
uniond keys import .backup
uniond q bank balances $(uniond keys show -a)
sudo journalctl -u uniond -f --no-hostname -o cat
sudo systemctl start uniond
sudo systemctl stop uniond
sudo systemctl restart uniond
sudo systemctl status uniond
sudo systemctl daemon-reload
sudo systemctl enable uniond
sudo systemctl disable uniond
uniond status 2>&1 | jq .SyncInfo
echo $(uniond tendermint show-node-id)'@'$(curl -s ifconfig.me)':'$(cat $HOME/.union/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)}'
uniond tx staking create-validator \
--amount=00000muno \
--moniker="" \
--pubkey=$(uniond tendermint show-validator) \
--identity="" \
--details="" \
--website="" \
--security-contact= \
--chain-id=union-testnet-6 \
--commission-rate=0. \
--commission-max-rate=0.20 \
--commission-max-change-rate=0. \
--min-self-delegation=1 \
--from= \
--gas="1000000" \
--gas-prices="30000000000muno"
uniond tx staking edit-validator \
--new-moniker="" \
--chain-id=union-testnet-6 \
--from= \
--gas="1000000" \
--gas-prices="30000000000muno" -yuniond tx staking edit-validator \
--identity="" \
--chain-id=union-testnet-6 \
--from= \
--gas="1000000" \
--gas-prices="30000000000muno"uniond tx staking edit-validator \
--details="" \
--chain-id=union-testnet-6 \
--from= \
--gas="1000000" \
--gas-prices="30000000000muno"uniond tx staking edit-validator \
--commission-rate=0. \
--chain-id=union-testnet-6 \
--from= \
--gas="1000000" \
--gas-prices="30000000000muno"uniond tx staking edit-validator \
--new-moniker="" \
--identity="" \
--chain-id=union-testnet-6 \
--from= \
--gas="1000000" \
--gas-prices="30000000000muno"uniond tx staking edit-validator \
--new-moniker="" \
--details="" \
--chain-id=union-testnet-6 \
--from= \
--gas="1000000" \
--gas-prices="30000000000muno"uniond tx staking edit-validator \
--new-moniker="" \
--commission-rate=0. \
--chain-id=union-testnet-6 \
--from= \
--gas="1000000" \
--gas-prices="30000000000muno"uniond tx staking edit-validator \
--identity="" \
--details="" \
--chain-id=union-testnet-6 \
--from= \
--gas="1000000" \
--gas-prices="30000000000muno"uniond tx staking edit-validator \
--identity="" \
--commission-rate=0. \
--chain-id=union-testnet-6 \
--from= \
--gas="1000000" \
--gas-prices="30000000000muno"uniond tx staking edit-validator \
--details="" \
--commission-rate=0. \
--chain-id=union-testnet-6 \
--from= \
--gas="1000000" \
--gas-prices="30000000000muno"uniond tx staking edit-validator \
--new-moniker="" \
--identity="" \
--details="" \
--chain-id=union-testnet-6 \
--from= \
--gas="1000000" \
--gas-prices="30000000000muno"uniond tx staking edit-validator \
--new-moniker="" \
--identity="" \
--commission-rate=0. \
--chain-id=union-testnet-6 \
--from= \
--gas="1000000" \
--gas-prices="30000000000muno"uniond tx staking edit-validator \
--new-moniker="" \
--details="" \
--commission-rate=0. \
--chain-id=union-testnet-6 \
--from= \
--gas="1000000" \
--gas-prices="30000000000muno"uniond tx staking edit-validator \
--identity="" \
--details="" \
--commission-rate=0. \
--chain-id=union-testnet-6 \
--from= \
--gas="1000000" \
--gas-prices="30000000000muno"uniond tx staking edit-validator \
--new-moniker="" \
--identity="" \
--details="" \
--commission-rate=0. \
--chain-id=union-testnet-6 \
--from= \
--gas="1000000" \
--gas-prices="30000000000muno"uniond tx staking edit-validator \
--new-moniker="" \
--identity="" \
--details="" \
--website="" \
--security-contact= \
--chain-id=union-testnet-6 \
--commission-rate=0. \
--from= \
--gas="1000000" \
--gas-prices="30000000000muno"
uniond status 2>&1 | jq .ValidatorInfo
uniond q staking validator $(uniond keys show --bech val -a)
uniond q slashing signing-info $(uniond tendermint show-validator)
uniond tx slashing unjail --broadcast-mode=block --from --chain-id union-testnet-6 --gas="1000000" --gas-prices="30000000000muno"
uniond 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
[[ $(uniond q staking validator $(uniond keys show --bech val -a) -oj | jq -r .consensus_pubkey.key) = $(uniond status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"
uniond q slashing signing-info $(uniond tendermint show-validator)
uniond tx distribution withdraw-all-rewards --from --chain-id union-testnet-6 --gas="1000000" --gas-prices="30000000000muno"
uniond tx distribution withdraw-rewards $(uniond keys show --bech val -a) --commission --from --chain-id union-testnet-6 --gas="1000000" --gas-prices="30000000000muno"
uniond tx staking delegate $(uniond keys show --bech val -a) 00000muno --from --chain-id union-testnet-6 --gas="1000000" --gas-prices="30000000000muno"
uniond tx staking redelegate $(uniond keys show --bech val -a) 00000muno --from --chain-id union-testnet-6 --gas="1000000" --gas-prices="30000000000muno"
uniond tx staking delegate 00000muno --from --chain-id union-testnet-6 --gas="1000000" --gas-prices="30000000000muno"
uniond tx staking unbond $(uniond keys show --bech val -a) 00000muno --from --chain-id union-testnet-6 --gas="1000000" --gas-prices="30000000000muno"
uniond tx bank send 00000muno --from --chain-id union-testnet-6 --gas="1000000" --gas-prices="30000000000muno"
uniond query gov proposal
uniond tx gov vote --from --chain-id union-testnet-6 --gas="1000000" --gas-prices="30000000000muno"
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/.union/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/.union/config/app.toml
sed -i -e 's|^indexer *=.*|indexer = "kv"|' $HOME/.union/config/config.toml
sed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.union/config/config.toml
uniond tendermint unsafe-reset-all --home $HOME/.union --keep-addr-book
sudo systemctl stop uniond && \
sudo systemctl disable uniond && \
rm /etc/systemd/system/uniond.service && \
sudo systemctl daemon-reload && \
cd $HOME && \
rm -rf .union && \
rm -rf $(which uniond)
wget -O $HOME/.union/config/genesis.json "https://snap.union.kynraze.com/genesis.json"
wget -O $HOME/.union/config/addrbook.json "https://snap.union.kynraze.com/addrbook.json"
PEERS=
sed -i -e "s|^persistent_peers *=.*|persistent_peers = "$PEERS"|" $HOME/.union/config/config.toml
Coming Soon
UNION
_NODENAME="
"
echo "export
UNION_NODENAME=$UNION_NODENAME" >> $HOME/.bash_profile
if [ ! $WALLET ]; then
echo "export WALLET=wallet" >> $HOME/.bash_profile
fi
echo "export
UNION_CHAIN_ID=union-testnet-6" >> $HOME/.bash_profile
source $HOME/.bash_profile
sudo apt update && sudo apt upgrade -y && sudo apt install curl tar wget unzip clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu gcc git jq chrony liblz4-tool -y
ver="
1.20"
cd $HOME
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo 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_profile
source ~/.bash_profile
go version
mkdir -p $HOME/go/bin/
wget https://snap.union.kynraze.com/uniond
chmod +x uniond
mv uniond $HOME/go/bin/
uniond version
--long
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0muno\"|" $HOME/
.union/config/app.toml
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/.union/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/.union/config/app.toml
uniond config chain-id $UNION_CHAIN_ID uniond config keyring-backend file uniond config node tcp://localhost:657
uniond init $UNION_NODENAME
--chain-id
$UNION_CHAIN_ID
wget -O $HOME/.union/config/genesis.json "https://snap.union.kynraze.com/genesis.json"
wget -O $HOME/.union/config/addrbook.json "https://snap.union.kynraze.com/addrbook.json"
PEERS="
"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/
.union/config/config.tomlsed -i -e "s|^seeds *=.*|seeds = \"
\"|" $HOME/
.union/config/config.toml
pruning="custom"
pruning_keep_recent="100"
pruning_keep_every="0"
pruning_interval="10"
sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/
.union/config/app.tomlsed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/
.union/config/app.tomlsed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/
.union/config/app.tomlsed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/
.union/config/app.toml
sudo tee /etc/systemd/system/
uniond.service > /dev/null << EOF
[Unit]
Description=
uniondAfter=network-online.target
[Service]
User=$USER
ExecStart=$(which
uniond)start --home $HOME/
.unionRestart=on-failure
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
curl -o - -L
https://snap.union.kynraze.com/snapshot-latest.tar.lz4| lz4 -c -d - | tar -x -C $HOME/
.union
sudo systemctl daemon-reload
sudo systemctl enable
uniondsudo systemctl restart
uniondsudo journalctl -fu
uniond-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/.union/config/config.toml
sudo systemctl stop uniond
cp $HOME/.union/data/priv_validator_state.json $HOME/.union/priv_validator_state.json.backup
rm -rf $HOME/.union/data
# Download Data Snapshot
curl -o - -L https://snap.union.kynraze.com/snapshot-latest.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.union
mv $HOME/.union/priv_validator_state.json.backup $HOME/.union/data/priv_validator_state.json
# Restart
sudo systemctl restart uniond
sudo journalctl -fu uniond -o cat
systemctl stop uniond
uniond tendermint unsafe-reset-all --home $HOME/.union --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/.union/config/config.toml
sed -i.bak -e "s|^enable *=.*|enable = true|" $HOME/.union/config/config.toml
sed -i.bak -e "s|^rpc_servers *=.*|rpc_servers = \"$STATE_SYNC_RPC,$STATE_SYNC_RPC\"|" \
$HOME/.union/config/config.toml
sed -i.bak -e "s|^trust_height *=.*|trust_height = $SYNC_BLOCK_HEIGHT|" \
$HOME/.union/config/config.toml
sed -i.bak -e "s|^trust_hash *=.*|trust_hash = \"$SYNC_BLOCK_HASH\"|" \
$HOME/.union/config/config.toml
systemctl restart uniond && journalctl -fu uniond -o cat