Skip to content

colonyairdrops/unichain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 

Repository files navigation

Unichain Node by @ColonyAirdrops

Hardware requirements:

Hardware Minimum Requirement
CPU 6 Cores
RAM 8 GB
Disk 100 GB SSD

Install Docker

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
docker version

Install Docker-Compose

VER=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep tag_name | cut -d '"' -f 4)

curl -L "https://github.com/docker/compose/releases/download/"$VER"/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

chmod +x /usr/local/bin/docker-compose
docker-compose --version

Docker Permission to User

sudo groupadd docker
sudo usermod -aG docker $USER

Clone UniChain Node :

git clone https://github.com/Uniswap/unichain-node
cd unichain-node

Edit env file:

nano .env.sepolia
  • CTRL X Y Enter to save the file

  • Get Endpoints

Start Node:

docker compose up -d
  • Once you shoot up the container you might get daemon error if your ports are occupied, you just need to change the ports in yaml file (Watch Video on Youtube to understand better)

Check Occupied Port

sudo lsof -i :PORT_NUM

Save Node PrivateKey:

cat $HOME/unichain-node/geth-data/geth/nodekey

Unichain Status:

curl -d '{"id":1,"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["latest",false]}' -H "Content-Type: application/json" http://localhost:8545

How to update to new releases

docker compose down
git stash
git pull
  • After this you need to edit .env.sepolia and docker file again

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published