This repo provides a set of utility scripts for running Moonbeam's node.
Requirement | Passed |
---|---|
8-cores-cpu-and-16-gb-ram-and-50GB-storage instance. | ✅ |
Allow tcp 30333 and 30334 ports | ✅ |
SSH into an instance | ✅ |
Stressfree | ✅ |
Make sure you have gcloud
cli installed.
If you don't have it, please follow installation step here
Initialize the cloud sdk, follow the steps here
At the end, you should have logged-in account and selected cloud project.
Run the command below
curl https://raw.githubusercontent.com/npty/blockchain-node-scripts/master/moonbeam/create-gcloud-instance.sh \
--output create-gcloud-instance.sh && \
chmod +x create-gcloud-instance.sh && \
./create-gcloud-instance.sh -n YOUR_INSTANCE_NAME
Note: Replace YOUR_INSTANCE_NAME with your desired name.
This is basically put every commands here into one shell script file.
Run the following command to run all required steps:
curl -s https://raw.githubusercontent.com/npty/blockchain-node-scripts/master/moonbeam/barebone-moonbeam-setup.sh | bash
Place the following content at /etc/moonbeam/moonbeam-service.env
PUBLIC_KEY=YOUR_ERC20_ADDRESS
NODE_NAME=YOUR_NODE_NAME
curl -s https://raw.githubusercontent.com/npty/blockchain-node-scripts/master/moonbeam/setup-systemd-service.sh | bash
sudo systemctl enable moonbeam.service
sudo systemctl start moonbeam.service
You can verify the service is running with:
sudo systemctl status moonbeam.service
You can also check the logs by executing:
sudo journalctl -f -u moonbeam.service
sudo systemctl stop moonbeam
Then, rerun setup Moonbeam Node script.
Once it completed, run sudo systemctl start moonbeam.service