Starting a Full Node
Minimum system requirements:
- Any modern Linux distribution (RHEL 8 or Fedora 36 are preferred)
- A quad-core CPU
- 16 GB of RAM
- 320 GB of storage
- 1.
mkdir $HOME/.onomy/scripts
cd $HOME/.onomy/scripts
wget https://raw.githubusercontent.com/onomyprotocol/onomy/main/deploy/scripts/allow-cors.sh
wget https://raw.githubusercontent.com/onomyprotocol/onomy/main/deploy/scripts/init-mainnet-full-node.sh
wget https://raw.githubusercontent.com/onomyprotocol/onomy/main/deploy/scripts/start-onomyd.sh
wget https://raw.githubusercontent.com/onomyprotocol/onomy/main/deploy/scripts/stop-onomyd.sh
2. Add executable permissions to the scripts using
chmod +x *
3. Download genesis file
wget https://raw.githubusercontent.com/onomyprotocol/onomy/main/genesis/mainnet/genesis-mainnet-1.json
4. Run init-mainnet-full-node.sh script to initiate a new full node
bash init-mainnet-full-node.sh
This script will ask you for several details
- Node Name [Text]: A name for your full node
- Seed IPs [Comma separated list of IPs]: IP Addresses of seed nodes, There are a couple of IPs pre-configured, If you want to point your node to custom Seed node, you can do that here
- Your IP Address [IP Address]
After the script is done, you will find node-id in the output. Make sure to take a note of the node id as you might need it afterwards. If you forgot to save your node id, you can find it using
onomyd tendermint show-node-id
4. [Optional] you can allow CORS using the script
allow-cors.sh
5. You can start and stop the node using
start-onomyd.sh
and stop-onomyd.sh
. When you first start the node, give it enough time to sync with the blockchainYou should be good to go! You can check the status of the Onomy chain by running:
curl http://localhost:26657/status
Your node is fully synced when
catching_up
is false.You can also open the
http://localhost:26657
in your browser and check available end-pointsLast modified 1mo ago