- Docs
- Run a node
- Sync from genesis
Sync from genesis
This is the slowest (and most secure) way to sync your node, as your node goes through every block since the genesis block.
Info
Before going any further, it is recommended to set up Cosmovisor.
You can use the Networks page to find useful information such as the chain-id and rpc-url of the network you would like to connect to.
With the above data, make sure to download correct genesis file, by fetching it from an available node:
curl -s "$RPC_ENDPOINT/genesis" | jq '.result.genesis' > ~/.archway/config/genesis.jsonTriomphe (mainnet) genesis file
You can find relevant information regarding archway-1 on Github. For example, you can launch the command to connect to the RPC Endpoint of the Constantine network, and download the Genesis File:
curl -s https://rpc.mainnet.archway.io/genesis |jq -r .result.genesis > ${HOME}/.archway/config/genesis.jsonYou can also download the genesis file from github, for example by launching:
wget https://github.com/archway-network/networks/blob/main/archway-1/genesis/genesis.json.gzConstantine (testnet) genesis file
You can find relevant information regarding constantine-3 on Github. For example, you can launch the command to connect to the RPC Endpoint of the Constantine network, and download the Genesis File:
curl -s https://rpc.constantine.archway.tech/genesis |jq -r .result.genesis > ${HOME}/.archway/config/genesis.jsonYou can also download the genesis file from github, for example by launching:
wget https://github.com/archway-network/networks/blob/main/constantine-3/genesis.jsonStart the node
Start archwayd (default)
Start the archway and join the network:
Binary
Docker
archwayd start \ --p2p.seeds Address1@Host_Name_OR_IP1:PORT1, ...AddressN@Host_Name_OR_IPN:PORTN \Below is the command to join the Triomphe mainnet:
Binary
Docker
archwayd start \ --p2p.seeds 3ba7bf08f00e228026177e9cdc027f6ef6eb2b39@35.232.234.58:26656Below is the command to join the Constantine testnet:
Binary
Docker
archwayd start \ --p2p.seeds e8d60ff778f3c27f54382ff22c7ac071f2a81027@35.223.36.227:26656Start archwayd as a service
A service file can be used to allow the automatic restart of the service, and it helps to enhance the reliability of your node.
You can create a service file with:
nano /etc/systemd/system/archwayd.serviceAnd add the following content to the file:
[Unit]
Description=Archway Node
After=network-online.target
[Service]
User=$USER
ExecStart=/home/$USER/go/bin/archwayd start
Restart=always
RestartSec=3
LimitNOFILE=4096
[Install]
WantedBy=multi-user.targetYou can then reload the systemctl daemon:
sudo systemctl daemon-reloadEnable the service:
sudo -S systemctl enable archwaydAnd then start archwayd as a service:
sudo systemctl start archwaydYou can then check that the service is properly running with:
sudo systemctl status archwaydStart archwayd docker as a service
A service file can be used to allow the automatic restart of the service, and it helps to enhance the reliability of your node.
You can create a service file with:
nano /etc/systemd/system/archwayd.serviceAnd add the following content to the file:
[Unit]Description=Archway NodeAfter=network-online.target[Service]User=$USERExecStart=/usr/bin/docker run --rm -it -v ~/.archway:/root/.archwayghcr.io/archway-network/archwayd:v4.0.2Restart=alwaysRestartSec=3LimitNOFILE=4096[Install]WantedBy=multi-user.targetYou can then reload the systemctl daemon:
sudo systemctl daemon-reloadEnable the service:
sudo -S systemctl enable archwaydAnd then start archwayd as a service:
sudo systemctl start archwaydYou can then check that the service is properly running with:
sudo systemctl status archwaydCleaning up (optional)
In case you want to remove any previous genesis file and configuration that you have used, you can clean up the network.
rm -rf ~/.archwayWarning
This command will remove all data and configs you already set.
Next Steps
Now that you have joined a network, you can start validating.