Akash NEAR Protocol Challenge

Summary . This challenge is to set up a NEAR Validator node on Akash. Providing reproducible deployment files for anyone to us via the awesome Akash repo. This node guide should be relevant to both validators and blockchain nodes that dApps need to access the blockchain.

Objectives

  • Run NEAR chain node and validator node on the Akash decentralized cloud
  • Containerize instances and initialize them on the network

How to connect with Akash on this Challenge

Resources

Deliverables in order of Strategic Value (highest value first)

  • All deployment files submitted to the awesome Akash repo via pull request
  • Readme with instructions to maintain the submission submitted to the awesome Akash repo via pull request
  • Demo video
  • Bonus if you can do both the validator and chain node in a single set of deployment files

hello want to ask when i see near documentation i only see three types of node validator, archival, and RPC, and there is no chain node, is chain node equal to RPC or archival?

I’m working on this… :grinning:

1 Like

Hi, following up on discord and will post the resolution / answer here in order to help others that may have the same question.

Thanks
Alani

Great, lookin forward to seeing your work.

Hello,
Do you have any specifics on what you’re working on so that we can provide you with any support you need?
Thanks,
Alani

1 Like

Thank you for asking. Actually, I had some difficulties with this challenge:

Running a validator node on NEAR requires several steps including a “restart”. When you run a node, it creates a unique new pair of private/public key. The validator must use the key pair to deploy a staking pool smart contract (using his personal NEAR wallet which the validator node doesn’t need to have access to). When the smart contract is ready, the validator must edit the account_id inside the node to the staking pool address and restart the node.

Well, I wanted the NEAR node deployment on Akash to be easy and without many steps. I’m trying to automate as much as possible, but yet there will be many deployment environment variables and a must-follow guide. I hope it’s not a problem.

I believe there is no way to automate that “restart” I mentioned earlier. If you know a way to do that, please share.

Thank you

Hi @nickyharpor , though this appears to mostly be NEAR issues, I see you also mention hoping it would be easier to deploy on Akash but there are many ENV variables necessary. Have you tried to deploy onto Akash using Akashlytics - where manual set up of ENV variables would not be necessary. Not sure if Akashlytics would work for your use case but I’ll recommend taking a look. https://www.akashlytics.com/

Alani

1 Like

It is an RPC node.

thank you for the reply mando, but i just confused because when we run validator node we basically also run RPC node automatically, for it to be a complete submission do we need to run RPC node in separate docker container or only run validator node with RPC option in one docker container is enough? because in the bonus it said " * Bonus if you can do both the validator and chain node in a single set of deployment files"

I should rephrase that in the challenge. Yes, the goal was to point out that you need the RPC work to run the validator. I can see how that looks like two separate workloads.

1 Like

hello sorry want to ask i see in discord that you gonna announce the winner very soon, is that right?

image

and my second question is, are you judge the submission from devpost or pull request? because i only post to devpost my full submission @AlaniAKT @mando222

Announcements of results will be done in conjunction with the NEAR organizers. The announcement date has not feen finalized yet. Judging will be done via a combination of devpost and PR. Happy to assist wherever I can.

thanks for the explanation, no, actually im very happy that you gonna announce the winner very soon, im just afraid that you didn’t see my post on devpost or my PR, yeah hopefully the best one win

Not a problem at all. You’re very welcome.

1 Like

want to ask again, you said in discord that the payments will be in AKT tokens right?

image

should we put our token address inside pull request or devpost article?

Hello,
It’s important to read the challenge information prior to participating in challenges. This is also published in the forum.
When you set up your profile, there is a field that includes entering your wallet address.
Once you submit, you can reference this information, or include your address in your submission.

Thanks again alani will put my address on submission then

Hello everyone, this is my project and pr, welcome to try or ask questions.

project: Near Node on Akash | Devpost
pr: Add near node. by Glacier-Luo · Pull Request #247 · ovrclk/awesome-akash · GitHub

1 Like

Hello everyone, this is my pr, I just find this.
and I think I’m the first one to commit~

pr: feature: add NEAR validator node and chain node deploy.yaml file by jiangydev · Pull Request #241 · ovrclk/awesome-akash · GitHub