Skip to main content

Single Proc

Install NodeJS, Docker

  • Docker Git
sudo apt-get update && sudo apt install git -y && sudo apt install apt-transport-https ca-certificates curl software-properties-common -y && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - && sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" && sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin -y
  • NodeJS
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
source ~/.bashrc
nvm install 18
nvm use 18

Install Subsquid cli

npm install --global @subsquid/cli@latest

Create Folder & init

mkdir proc
cd proc
sqd init single-proc -t https://github.com/subsquid-quests/single-chain-squid
cd single-proc

Download key

Start Docker

docker compose up -d

build

npm ci
sqd build
sqd migration:apply

Run

sqd run .

Wait after 100%

After done

  • Stop proc use CTRL+C

  • Stop Docker

    docker compose down -v