-
Make the script executable: chmod +x setup-sepolia-node.sh
-
Run the script: ./setup-sepolia-node.sh
-
Go to the node folder: cd sepolia-node
-
Create the geth service file: nano geth-sepolia.service [Paste code] Save with: Ctrl+X → Y → Enter
-
Create the lighthouse service file: nano lighthouse-sepolia.service [Paste code] Save with: Ctrl+X → Y → Enter
-
Create JWT secret: cd data openssl rand -hex 32 > /root/sepolia-node/data/jwtsecret cd ..
-
Enable systemd services: sudo systemctl daemon-reexec sudo systemctl daemon-reload sudo systemctl enable geth-sepolia.service sudo systemctl enable lighthouse-sepolia.service
-
Start geth first: sudo systemctl start geth-sepolia.service
-
Start lighthouse next: sudo systemctl start lighthouse-sepolia.service
-
Check geth logs: sudo journalctl -u geth-sepolia.service -f
-
Check lighthouse logs: sudo journalctl -u lighthouse-sepolia.service -f
-
Test if Geth RPC is working: curl -X POST -H "Content-Type: application/json"
--data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
http://localhost:8545 -
Allow Rpc Port: sudo ufw allow 8545/tcp, sudo ufw allow 8551/tcp, sudo ufw allow 5052/tcp
-
Then enable (if not already): sudo ufw enable
-
Check status: sudo ufw status
-
Test if Beacon chain is syncing: curl http://localhost:5052/eth/v1/node/syncing
-
Notifications
You must be signed in to change notification settings - Fork 2
shakib30/Sepolia-Ethereum-and-Beacon-Chain-RPC-Node-Setup
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published