This script is a community effort to facilitate the creation of AVAX Nodes on Mainnet This script automates the steps of the following guide https://github.com/ava-labs/avalanchego
This script has been tested on AWS with a ubuntu instance.
- Connect to your VPS
- launch the following command
curl -s https://raw.githubusercontent.com/ablockio/AVAX-node-installer/master/install.sh | bash- Once done, you verify that the status of your node is running
- Execute the curl command to get your node Id
curl -X POST --data '{
"jsonrpc":"2.0",
"id" :1,
"method" :"info.getNodeID"
}' -H 'content-type:application/json;' 127.0.0.1:9650/ext/info- Save your
stake.keyfor your secret. Full instruction here : https://docs.avax.network/v1.0/en/staking/ - Follow the instruction to add your stake as a validator on https://docs.avax.network/v1.0/en/tutorials/adding-validators/
THE UPDATE SCRIPT IS TO BE USED ONLY FOR PERSONS USING UBUNTU AND HAVE USED OUR INSTALL SCRIPT. THE SCRIPT IS OPEN SOURCED. VERIFY YOUR NODE STATUS AFTER YOU DID UPDATE IT
- Connect to your VPS
- Connect as root
sudo su
cd $HOME- launch the following command to get the script
wget https://raw.githubusercontent.com/ablockio/AVAX-node-installer/master/update.sh > update.sh- Grant the file the right to be executed
chmod 777 update.sh- If you have specific config for your node, define it on a new file
configNode.txt
vi configNode.txtThis file shall have Node parameters ONLY. for example :
-api-admin-enabled=true -api-health-enabled=trueThis file will remain untouched even if we update the script. You can keep the same config on each updates !
- Finally update
./update.sh 1.0.1This commands installs the 1.0.1 and runs it.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.