CosmoBook nodes
  • README
  • Cosmos validator node guides
    • defund
      • defund_on_akash
      • old_defund-private-1
        • install_node
    • haqq
      • install_node
    • humans
      • commands
      • install_mainnet
      • install_testnet
      • Statesync instructions
      • Upgrade mainnet validator node
    • hypersign
      • install_node
    • ollo
      • install_node
    • paloma
      • install_node
    • quicksilver
      • install_node
    • rebus
      • install_node
      • install_with_cosmovisor
    • sei
      • Gentx for Sei Incentivized testnet (chain-id atlantic-1)
      • install_node
      • old_sei-testnet-2
        • install_node
    • stafi
      • install_node
    • stride
      • install_node
      • old_stride1
        • install_node
      • old_stride2
        • install_node
    • ununifi
      • install_node
  • polkadot
    • subspace
      • install_node
  • starknet
    • StarkNet node
  • usefull utils
    • List of usefull commands
    • cosmos_monitoring
      • install_guide
    • relayer_hermes
      • Hermes relayer
    • relayer_ibc_go_v.2.0.0
    • Faucet
  • blockclique
    • massa
      • install_node
  • ethereum
    • masa_finance
      • install_node
    • obol
      • Charon Distributed Validator Node
Powered by GitBook
On this page
  • Install guide
  • Update packages
  • Install Pyton
  • Install Rust
  • Install Cargo
  • Update Rust to the latest version
  • Clone Pathfinder github repository
  • Create a virtual environment for a node
  • Assemble node
  • Create Infura or Alchemy account
  • Run node
  • Update node
  1. starknet

StarkNet node

Install guide

Update packages

sudo apt update && sudo apt upgrade -y

Install Pyton

Install Pip to manage software packages for Python.

sudo apt install -y python3-pip

Install a few more packages and development tools

sudo apt install -y curl git screen build-essential libssl-dev libffi-dev python3-dev
sudo apt-get install libgmp-dev
pip3 install fastecdsa
sudo apt-get install -y pkg-config

Install Rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Install Cargo

sudo apt install cargo -y
source $HOME/.cargo/env

Update Rust to the latest version

rustup update stable

Clone Pathfinder github repository

ver=""
git clone --branch $ver https://github.com/eqlabs/pathfinder.git

Create a virtual environment for a node

sudo apt install python3.8-venv

# Open separate terminal to run node
screen -S stark

# Move to py folder
cd pathfinder/py

# Create the virtual environment called venv
python3 -m venv .venv

# and activate it
source .venv/bin/activate

# Install some more tools for node
PIP_REQUIRE_VIRTUALENV=true pip install --upgrade pip
PIP_REQUIRE_VIRTUALENV=true pip install -r requirements-dev.txt

# Test if previous steps were successful
pytest

Assemble node

cargo build --release --bin pathfinder

Create Infura or Alchemy account

  • On dashboard click on Create App

  • Give new app a name and choose either Mainnet or Goerli Network

  • You will now be able to see the endpoint on your dashboard. Copy the https one

Run node

cargo run --release --bin pathfinder -- --ethereum.url https://mainnet.infura.io/v3/xxxxx

# or

cargo run --release --bin pathfinder -- --ethereum.url https://eth-goerli.alchemyapi.io/v2/xxxxx

To exit from screen tap CTRL+a and than d.

Update node

Enter to screen

screen -r stark

To stop node tap CTRL+c, than CTRL+a and d

Update bin

cd pathfinder
rm -rf pathfinder
git fetch
ver=""
git checkout $ver
git clone --branch $ver https://github.com/eqlabs/pathfinder.git

Enter to screen

screen -r stark

Run node

cd $HOME/pathfinder/py
python3 -m venv .venv
source .venv/bin/activate
PIP_REQUIRE_VIRTUALENV=true pip install --upgrade pip
PIP_REQUIRE_VIRTUALENV=true pip install -r requirements-dev.txt
pytest
cargo build --release --bin pathfinder

# run node
cargo run --release --bin pathfinder -- --ethereum.url https://mainnet.infura.io/v3/xxxxx

# or

cargo run --release --bin pathfinder -- --ethereum.url https://eth-goerli.alchemyapi.io/v2/xxxxx

To exit from screen tap CTRL+a and than d.

PreviousstarknetNextusefull utils

Last updated 1 year ago

Go to (for ex.) and sing up.

Alchemy