Agoric is a layer-1 blockchain based on the Cosmos network. The main feature of the project is the ability to create smart contracts with the use of JavaScript. It makes the integration of developers from Web2 to Web3 much easier and expands the ecosystem significantly. Agoric's native token is BLD.
Minimum hardware requirements:
16 GB RAM
4 cores/ vCPU
100GB SSD
Ubuntu 20.04
Server preparation:
Before running the node on the server, it's necessary to install Node.js, Yarn, Go and update the system.
sudo rm -rf /usr/local/go
curl -Ls https://go.dev/dl/go1.19.9.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local
eval $(echo 'export PATH=$PATH:/usr/local/go/bin' | sudo tee /etc/profile.d/golang.sh)
eval $(echo 'export PATH=$PATH:$HOME/go/bin' | tee -a $HOME/.profile)
Node installation:
The node installation process is much easier with the use of previously taken snapshot. We use our variant of snapshot in this guide. You can change ports, seeds, the minimum gas price and the snapshot, if you want.
Clone the project repository
cd $HOME
rm -rf pismoC
git clone https://github.com/Agoric/agoric-sdk.git pismoC
cd pismoC
git checkout pismoC
The node is synchronized when "latest_block_height" catches up with the last block in the network. At that moment "catching_up" will change from true to false.
For monitoring, you can use the script:
while sleep 5; do
sync_info=`agd status | jq .SyncInfo`
echo "$sync_info"
if test `echo "$sync_info" | jq -r .catching_up` == false; then
echo "Caught up"
break
fi
done
When the synchronization is completed, the terminal will say "Caught up"
Check logs (if errors occur)
journalctl -u agd -f
Key addition.
For further work keys/wallets are necessary.
Create a new key
agd keys add KEY_NAME
Change KEY_NAME to the name of your key. Add a password and save the mnemonic phrase.