Full Node
How to launch a Madara Full Node?

How to launch a Madara Full Node

This guide will walk you through the process of installing and launching a Madara Full Node.

Quick start tutorial

As an introduction to the following section, we created a video tutorial to give you more context how to launch your Madara Full Node.

/video goes here/

ℹ️

We recommend continuing with the Next Section, which will help you better understand the different components of Madara by building from source.

Step by step tutorial

Install your Full Node

Install dependencies

We first need to make sure you have everything needed to complete this tutorial.

DependencyVersionInstallation
Rustrustc 1.78curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs sh
ClangLatestsudo apt-get install clang
Scarbv2.8.2curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | sh

Get code

Fetch the code from the Official Madara (opens in a new tab) repository in the folder of your choice.

cd <your-destination-path>
git clone https://github.com/madara-alliance/madara .

Build program

Then let's build the dependencies. You can choose between 3 different build modes:

  • Debug (fastest build mode, but lower performances, for testing purpose only)
cargo build
  • Release (the recommend build mode)
cargo build --release
  • Production (the recommend build mode for production performances)
cargo build --profile=production

Run Madara

This command will start the Madara client with a basic set arguments synchronizing directly with Starknet mainnet. For further configuration we recommend you to head up to the Configure Your Node section down below.

    cargo run --release -- \
    --name Madara \
    --full
    --base-path /var/lib/madara \
    --network mainnet \
    --l1-endpoint ${ETHEREUM_API_URL}
ℹ️

If you don't have an L1 endpoint url we recommend you to head up to the Verification section to get one