Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.17 KB

arbitrum_manual.md

File metadata and controls

40 lines (31 loc) · 1.17 KB

Update your server and install Docker.

sudo apt update && sudo apt upgrade -y
sudo apt install docker.io -y

Open Arbitrum file and give permission.

mkdir -p ~/data/arbitrum
chmod -fR 777 ~/data/arbitrum

Run your node. Don't forget to change<L1URL> part with the https part that you copied from Alchemy.

Run command below to get latest image

curl -s https://api.github.com/repos/OffchainLabs/nitro/releases/latest | grep -oP 'Docker image on Docker Hub at `\K(.*)(?=`\\)'

and then run, replace <latest_image> with result run command above

docker run -d -v ~/data/arbitrum:/home/user/.arbitrum -p 0.0.0.0:8547:8547 -p 0.0.0.0:8548:8548 <latest_image> --l1.url <L1URL> --l2.chain-id=42161 --http.api=net,web3,eth,debug --http.corsdomain=* --http.addr=0.0.0.0 --http.vhosts=* --init.url="https://snapshot.arbitrum.io/mainnet/nitro.tar"

Learn Docker Container ID with following command.

docker ps

After that, check your node logs. Change part with the Container ID that you obtained from the command above.

docker logs -f <ID>

or latest 100 line

docker logs --tail 100 -f {container_id}