For the complete documentation index, see llms.txt. This page is also available as Markdown.

Pathfinder Node

Install and synchronize Pathfinder on Starknet Mainnet.

Mainnet · SN_MAIN · Pathfinder v0.24.2

Run each command separately in the same shell. The configuration below uses a persistent data directory and a private local RPC endpoint.

Install Docker

On a fresh Ubuntu 24.04 server, use the following package installation. For a server with an existing container runtime, check Docker’s compatibility instructions first.

Refresh packages

Refresh APT metadata.

sudo apt update

Install basic tools

Install download and JSON tools.

sudo apt install -y ca-certificates curl jq

Create the key directory

Prepare Docker’s signing-key location.

sudo install -m 0755 -d /etc/apt/keyrings

Download the signing key

Get the Docker repository key.

Set key permissions

Allow APT to read the public key.

Add the package repository

Configure the official stable Ubuntu repository.

Refresh the new repository

Load Docker’s package list.

Install Docker

Install Engine and Compose from the configured repository.

Enable Docker

Start the runtime and enable it on boot.

Configure Pathfinder

Create the project directory

Keep configuration and persistent data together.

Open the directory

Run Compose commands from this directory.

Store your Ethereum WebSocket URL

Enter your private Mainnet wss:// endpoint at the prompt; it will not be echoed.

Write the private environment file

Store the endpoint with permissions restricted to your Linux account.

Clear the shell variable

Remove the temporary copy from the shell.

Write the Compose configuration

Pin the image and keep the database outside the container.

This configuration retains recent state tries while keeping block history. For historical storage proofs, choose --storage.state-tries=archive before creating the database and provision extra storage. Use a snapshot with a matching mode.

Download the image

Fetch the pinned release.

Optional: start from a snapshot

Follow Snapshots before first startup. Otherwise Pathfinder synchronizes from the network.

Start the node

Create the container and begin synchronization.

Follow logs

Check network selection and progressing blocks.

Verify chain ID

Expected result: 0x534e5f4d41494e (SN_MAIN).

Check sync

An object reports progress; false means the node has caught up. Confirm block height also advances.

Check block height

Repeat after a short interval to confirm new blocks arrive.

Setup reference · Configuration reference.

Last updated