Deploy a Babylon Node in Minutes using Spheron Compute

Deploy a Babylon Node in Minutes using Spheron Compute

This article delves into the seamless deployment process for a Babylon Node using Spheron, a user-friendly platform simplifying node configuration and participation in the Babylon ecosystem.

What is Spheron Network?

Spheron Network is a web3 infrastructure platform that provides tools and services to decentralize cloud storage and computing, allowing audited data centers to join the Spheron marketplace. The decentralized and governed nature of the infrastructure, overseen by Spheron, ensures permissionless access and heightened security for all users. Spheron Compute offers a feature-rich alternative to traditional cloud services at only one-third of the cost.

Spheron offers a Compute Marketplace, which allows users to set up useful tools quickly and easily, whether they want to deploy databases, nodes, tools, or AI. With Spheron, you don't have to worry about the technical stuff, and you can focus on deploying your Node with ease. Spheron Network has also partnered with organizations like Shardeum, Avail, Elixir, Filecoin, Arbitrum, etc, to redefine access to it and promote a more decentralized, inclusive, and community-centric ecosystem.

Spheron provides features such as Private images, Auto-scale instances, Scale on demand, Real-time instance metrics, Faster GPUs, Free Bandwidths, Terraform Providers and SDKs, Instance health checks, activity, shell access, and more. Spheron provides add-on storage solutions for long-term data storage and edge bandwidth acceleration through its global CDN. With Spheron, you can easily set up your nodes in just a few minutes and enjoy low maintenance and operations costs and a great developer experience.

How do you deploy Babylon Node using Spheron Compute?

Deploying a Babylon Node on Spheron is a simple, streamlined process that does not require any DevOps knowledge!

Step 1: Create a Free Spheron Network Account

  1. Visit Spheron Network: spheron.network

  2. On the Spheron homepage, locate and click the "Free Trial" button.

  3. You'll be directed to a signup page. Choose your preferred authentication method: Web2 (GitHub account, GitLab account, or Bitbucket account) or Web3 (Ethereum).

  4. Follow the provided prompts to authenticate your chosen account securely. This step ensures safe access to the Spheron Network platform. After successful authentication, you'll be guided to a confirmation page confirming the completion of your account setup.

Step 2: Creating an Organization

1. Upon logging in, you'll be directed to the Create Organization page, where you can give your organization name and choose Avatar. Ensure the "compute" option is selected from the drop-down menu of the "Start With" option. Click “Continue”.

2. Next, you'll be taken to a new page. Click the "Create New Cluster" button.

Step 3: Deploying a Babylon Node With Spheron Platform UI

Follow these steps to deploy a Babylon Node:

1. Choose "Compute" to use CPU-based instances for running containers.

2. Choose your desired Compute Type option under Compute Type.

NOTE: Please schedule a team call to gain early access to the "Spot" Type.

3. Click "Start from Marketplace App" and Select "Babylon" from the marketplace.

4. Select Region: Select your preferred region for deployment. Choosing a region closer to your users can improve performance and reduce latency.

5. Next, Choose an instance plan that aligns with your requirements. Spheron will recommend a suitable plan according to the Babylon template, but you can customize it if needed from available plans or choose to 'Create Custom Plans.'

6. Next, Configure storage:
You have to choose storage from the available options or the custom storage option per your needs. This storage will be volatile and is erased when the instance is restarted, redeployed, or shut down.

Additionally, you get the option to choose Persistent Storage. Persistent storage will not be erased unless the instance is closed. If choosing persistent storage, specify the type of storage (NVMe) and Add a mount point.

7. During the configuration, please provide your own unique Moniker. Click "Deploy" to deploy your node. With Moniker, once your node is published as a validator, you can check it in the Babylon dashboard - https://babylon.explorers.guru/validators

8. After the node is provisioned, you can fetch new logs by clicking on the refresh icon and then going to Shell for the next step.

9. Create a new key for your node. Write this on your shell.

babylond keys add wallet

Note: if you want, you can reuse the same wallet in a new node. Just run this command.

babylond keys add wallet --recover

It will ask you to enter your bip39 mnemonic. Just pass your mnemonic. It will create a wallet with the same address.

10. Once the wallet is created, you need to fund the wallet. To receive funds, visit the #faucet channel on the official Babylon Discord server. Here, you can request funds by sharing the address you previously created.

Please note that in order to access the #faucet channel, you first need to visit the “get-a-role” channel and react with the “Computer” emoji. This action will grant you the necessary permissions to view the #faucet channel. Once in the channel, submit your request by typing! Faucet followed by your address. For instance, you would type this to request funds for that specific address:

!faucet bbn16yzx3zfucs6fxu4hw3ack6ht4hgsp9wqrly2c9

You can check your wallet balance using this command:

babylond q bank balances $(babylond keys show wallet -a)

Ensure that you have successfully received 1,100,000 ubbn.

Note: Receiving funds from the faucet takes 4-5 hours. Also, keep monitoring the Babylon Explorer - https://babylon.explorers.guru/

11. Wait for the amount to be credited before trying this command to Generate a BLS Key Pair.

babylond create-bls-key $(babylond keys show wallet -a)

Next, just use these commands to update some configurations

sed -i -e "s|^key-name =.|key-name = \"wallet\"|" $HOME/.babylond/config/app.toml

Then

sed -i -e "s|^timeout_commit *=.*|timeout_commit = \"10s\"|" 
$HOME/.babylond/config/config.toml

Check the network synchronization status with the command:

babylond status | jq .SyncInfo

12. As soon as the value of catching_up becomes “false”, you can proceed to the final step.

  1. Run this command to add your validator -

     babylond tx checkpointing create-validator --amount 1000000ubbn --pubkey $(babylond tendermint show-validator) --moniker "YOUR_MONIKER_NAME" --details "YOUR_DETAILS" --website "YOUR_WEBSITE_URL" --chain-id bbn-test-2 --commission-rate 0.05 --commission-max-rate 0.20 --commission-max-change-rate 0.01 --min-self-delegation 1 --from wallet --gas-adjustment 1.4 --gas auto --gas-prices 0.00001ubbn -y
    
  2. After running this command, please wait for 2-3 hours before checking your node in the inactive list of - https://babylon.explorers.guru/validators

Conclusion

Spheron Compute is a powerful tool that simplifies the process of deploying Babylon Nodes, making it accessible to a wider range of users. With its easy-to-use interface and seamless integration with the Babylon ecosystem, Spheron Compute is an excellent choice for anyone looking to deploy a Babylon Node.