Skip to content

Latest commit

 

History

History
75 lines (47 loc) · 1.93 KB

StarknetEN.md

File metadata and controls

75 lines (47 loc) · 1.93 KB

1) Before installing node, get your endpoint from Alchemy.

image

If you do not have an account on Alchemy, open an account and click Create App.

image

Enter a name and click Create App.

image

Click View key for the App you created.

image

Copy the https part in the opened section.

2) Install the node.

2a) Scripted installation

wget -O StarknetEN.sh https://raw.githubusercontent.com/thisislexar/Starknet-Node/main/StarknetEN.sh && chmod +x StarknetEN.sh && ./StarknetEN.sh

2b) Manual installation

You can also install the node manually to improve your Node knowledge.

3) Continue.

Open a screen.

screen -S starknet

Start your node.

mkdir -p $HOME/pathfinder
docker run \
  --rm \
  -p 9545:9545 \
  --user "$(id -u):$(id -g)" \
  -e RUST_LOG=info \
  -e PATHFINDER_ETHEREUM_API_URL="<HTTPS URL FROM ALCHEMY>" \
  -v $HOME/pathfinder:/usr/share/pathfinder/data \
  eqlabs/pathfinder

Here is a sample command.

mkdir -p $HOME/pathfinder
docker run \
  --rm \
  -p 9545:9545 \
  --user "$(id -u):$(id -g)" \
  -e RUST_LOG=info \
  -e PATHFINDER_ETHEREUM_API_URL="https://eth-mainnet.g.alchemy.com/v2/COsy1IzxkLxxxkRyxxxIpxwJxxxx" \
  -v $HOME/pathfinder:/usr/share/pathfinder/data \
  eqlabs/pathfinder

Your node is syncing

image