Skip to main content

Run an Avail Node

Common practice

Users often run nodes on a cloud server. You may consider using a VPS provider to run your node.

Prerequisites

The following list of standard hardware is a recommendation of hardware specs that your environment should have.

The hardware specs should at least have:

  • 4GB RAM
  • 2 core CPU
  • 20-40 GB SSD

Node prerequisites: Install Rust & dependencies

Installation steps by Substrate

Avail is a Substrate-based chain and requires the same configuration to run a Substrate chain.

Additional installation documentation is available in the Substrate getting started documentation.

Once you choose an environment to run your node, ensure Rust is installed. If you already have Rust installed, run the following command to make sure you are using the latest version.

rustup update

If not, start by running the following command to fetch the latest version of Rust:

curl https://sh.rustup.rs -sSf | sh -s -- -y

To configure your shell, run:

source $HOME/.cargo/env

Verify your installation with:

rustc --version

Run Avail Locally

Clone the Avail source code:

git clone [email protected]:maticnetwork/avail.git

Compile the source code:

cargo build --release
This process usually takes time

Run a local dev node with temporary datastore:

./target/release/data-avail --dev --tmp