Linea RPC

image

Güncellemeler

sudo apt update
sudo apt install wget curl git jq lz4 snapd unzip bc -y
sudo apt upgrade -y

Docker + Docker Compose Kurulum

sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | \
sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] \
https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
docker --version

Linea Dosyalarını Çekelim

wget https://docs.linea.build/files/besu/besu-mainnet.zip
unzip besu-mainnet.zip
cd besu-mainnet

Ayar Dosyalarımızı Çekelim

curl -Ls https://raw.githubusercontent.com/molla202/lina-mainnet-rpc-node/refs/heads/main/docker-compose.yaml > $HOME/besu-mainnet/docker-compose.yaml
curl -Ls https://raw.githubusercontent.com/molla202/lina-mainnet-rpc-node/refs/heads/main/config-snap-mainnet.toml > $HOME/besu-mainnet/config/config-snap-mainnet.toml

Başlatalım

docker compose up -d

Loglara Bakalım

docker logs -f besu-mainnet -n 100

NOT: PORT 8549 dur. yani rpcniz şöyle http://sunucu_ip:8549

Last updated