Explorer https://explorer.theamsolutions.info
RPC http://65.108.238.61:46657 | API https://ollo-api.theamsolutions.info
Official docs HERE
STEP BY STEP INSTRUCTIONS
Install GO & Dependencies HERE
Install binaries & Run node
cd $HOME
git clone https://github.com/OLLO-Station/ollo -b v0.0.1 --single-branch
cd $HOME/ollo
make install
ollod init <NAME> --chain-id "ollo-testnet-1"
wget -qO $HOME/.ollo/config/genesis.json https://raw.githubusercontent.com/OLLO-Station/networks/master/ollo-testnet-1/genesis.json
wget -qO $HOME/.ollo/config/addrbook.json http://94.250.203.6:90/ollo-addrbook.json
ollod tendermint unsafe-reset-all --home $HOME/.ollo --keep-addr-book
#check genesis hash
sha256sum $HOME/.ollo/config/genesis.json
#right output: 4852e73a212318cabaa6bf264e18e8aeeb42ee1e428addc0855341fad5dc7dae
sudo tee /etc/systemd/system/ollod.service << EOF
[Unit]
Description=Ollo
After=network-online.target
#
[Service]
User=$USER
ExecStart=$(which ollod) start
RestartSec=10
Restart=on-failure
LimitNOFILE=65535
#
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl enable ollod
sudo systemctl daemon-reload
sudo systemctl restart ollod
journalctl -u ollod -f -o cat
STATE SYNC
sudo systemctl stop ollod
SNAP_RPC="http://161.97.82.203:29987"; \
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); \
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\"|" $HOME/.ollo/config/config.toml
ollod tendermint unsafe-reset-all --home $HOME/.ollo --keep-addr-book
sudo systemctl restart ollod
journalctl -u ollod -f -o cat
#switch off state sync after sync
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1false|" $HOME/.ollo/config/config.toml
DATA SNAP
#check snapshot height : curl -s http://94.250.203.6:90 | egrep -o ">ollo-snap*.*tar" | tr -d ">"
snap=$(curl -s http://94.250.203.6:90 | egrep -o ">ollo-snap*.*tar" | tr -d ">")
sudo systemctl stop ollod.service
mv $HOME/.ollo/data/priv_validator_state.json $HOME
rm -rf $HOME/.ollo/data
wget -P $HOME http://94.250.203.6:90/${snap}
tar xf $HOME/${snap} -C $HOME/.ollo
rm $HOME/${snap}
mv $HOME/priv_validator_state.json $HOME/.ollo/data
wget -q -O $HOME/.ollo/config/addrbook.json http://94.250.203.6:90/ollo-addrbook.json
sudo systemctl restart ollod.service
journalctl -u ollod.service -f -o cat
CREATE VALIDATOR
ollod tx staking create-validator \
--amount=1000000utollo \
--pubkey=$(ollod tendermint show-validator) \
--moniker="<MONIKER>" \
--chain-id="<CHAIN-ID>" \
--from=<KEY-NAME> \
--commission-rate=0.05 \
--commission-max-rate=0.2 \
--commission-max-change-rate=0.05 \
--min-self-delegation=1 \
--gas=auto
USEFUL COMMANDS
#check node status
curl localhost:26657/status
#or
ollod status | jq
#check all available wallets
ollod keys list
#balance of your wallet
ollod query bank balances <wallet-key>
#find valoper address
ollod keys show <wallet-key> --bech val -a
#check validator staking state
ollod query staking validator <valoper-address> --chain-id <CHAIN-ID>
#command for delegating
ollod tx staking delegate <valoper-address> 10000000utollo --chain-id <CHAIN-ID> --from <wallet-name> --gas=auto
#Withdraw all-rewards with commisions
ollod tx distribution withdraw-rewards <valoper-address> --from <wallet-name> --chain-id <CHAIN-ID> --commission --yes --gas=auto
#unjail command
ollod tx slashing unjail --from <wallet_name> --chain-id <CHAIN-ID> --gas=auto
#vote | options : yes/no/no_with_veto/abstain
ollod tx gov vote 1 yes --from <wallet_name> --chain-id <CHAIN-ID> --gas=auto
GOOD LUCK!
AM Solutions © Copyright. All rights reserved.