Coder Social home page Coder Social logo

akash-near's Introduction

Akash-NEAR

This project contains everything you need to deploy a NEAR node on Akash network from scratch. Akash is a distributed peer-to-peer marketplace for cloud compute. NEAR is a development platform built on a layer-one blockchain. There are three different types of NEAR nodes, and you can run them all on Akash in a single set of deployment files.

Quick start

Simply use deploy.yaml as your Akash SDL file. By default, it runs a mainnet RPC node. Of course, you can change the environment variables in the file to run a different type of node. As in any other SDL file, you can change the resources and pricing as well. There are several methods to deploy on Akash (i.e. GUI, CLI, and web app). Check out the deployment guide for more information.

Configuration

If you're about to run something rather than a mainnet RPC node, you need to edit deploy.yaml to change some environment variables. There are four main variables you may change:

  • CHAIN_ID: selects the network (available options: mainnet (default) / testnet / localnet)
  • ACCOUNT_ID: your staking pool account name if this is a validator node (leave it empty otherwise)
  • DISABLE_RPC: set to true if you want to disable RPC (leave it empty otherwise)
  • ARCHIVE: set to true if this is an archive node (leave it empty otherwise)

Example configurations

Here are some example configurations to make things easier.

Mainnet archive node without RPC

CHAIN_ID=
ACCOUNT_ID=
DISABLE_RPC=true
ARCHIVE=true

Testnet validator with RPC (no archiving)

CHAIN_ID=testnet
ACCOUNT_ID=icanblowlikeelephantsdo.pool.f863973.m0
DISABLE_RPC=
ARCHIVE=

Note: You should change ACCOUNT_ID to your own staking pool. You can create a staking pool by following the official guide. You can find your validator key at /srv/near/validator_key.json inside the container. You can run akash provider lease-shell --from <key-name> --dseq <dseq-number> --provider=<provider-address> near cat /srv/near/validator_key.json with your own variables to access it. You may want to learn more about how to execute a shell command and how to access shell on Akash deployments.

Notes

  • When the container is deployed for the first time, it starts to download the huge data file for testnet/mainnet. It takes some time for the node to be ready. You can check the logs to track the progress.

  • Make sure your SDL resources configuration meets the recommended hardware specification or you might face problems.

Maintenance

When you build an image from the Dockerfile, it automatically checks for the latest stable version of NEAR core, so if NEAR is updated to a new version in future, all you have to do is to rebuild the image with docker build.

The customized run.sh script takes care of all manual node setup. Everything will be fine unless there is a big fundamental change in NEAR.

akash-near's People

Contributors

nickyharpor avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.