Skip to content

andrii1890/sarb-rpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

Sepolia Arbitrum Node

HTTP request will be available on: http://<YOUR_IP>:8547

WS request will be available on: ws://<YOUR_IP>:8548

RECOMMENDATION: configure please your firewall rules (block all income to port 8547,8548,8647,8648 and use whitelist to access to your rpc, more about that can be found: https://github.com/chaifeng/ufw-docker)

Hardware Requirements

  • At least 4 cores, 4 threads
  • 16-GB RAM or more
  • 1Tb-NVMe SSD
  • Internet Connection: A stable, high-speed internet connection and uninterrupted power supply is crucial!

Software Requirements

Setting Up Arbitrum Database Snapshot:

Let’s start by setting the Arbitrum database snapshot. To access all the snapshots use the link provided before. On the first step of startup, you should utilize the parameter --init.url to initialize the Nitro database. Here’s an example:

--init.url="https://snapshot.arbitrum.foundation/sepolia/nitro-pruned.tar"

If you’re setting up multiple nodes, it’s more efficient to download the snapshot image once and host it locally for all your nodes.

For setting more then one Arbitrum node, as well as to run an Arbitrum One Classic node you should use the required parameter:

--init.url="file:///path/to/snapshot/in/container/snapshot-file.tar due to the presence of classic blocks. However, for running just an Arbitrum One Nitro node this param is optional.

!!! Note that if a database already exists, this setting will be ignored !!!

First Step

  • Create new user/ skip if already created user

    adduser administrator
    

    Either way, you will be required to respond to a series of questions:

    -Assign and confirm a password for the new user.

    -Enter any additional information about the new user. This is optional and can be skipped by pressing ENTER if you don’t wish to utilize these fields.

    -Finally, you’ll be asked to confirm that the information you provided was correct. Press Y to continue.

    Your new user is now ready for use and can be logged into with the password that you entered

  • Grant privilages

    usermod -aG sudo administrator
    
  • Login as new user

    su administrator
    
  • Update packages

    sudo apt update && sudo apt upgrade -y
    
  • Install dependencies

    sudo apt install curl build-essential git wget jq make gcc nano htop tmux -y
    
  • Install docker and docker compose

    curl -fsSL https://get.docker.com -o get-docker.sh
    sudo sh ./get-docker.sh
    docker version && docker compose version
    
  • Run Docker as a non-root user

    sudo usermod -aG docker administrator
    

Relogin to your server to take effect from usermod !!!

Second Step

  • Clone this repo to your server, navigate to arbitrum-rpc folder and spin up all docker containers

    cd $HOME/ && git clone https://github.com/andrii1890/sarb-rpc.git
    cd sarb-rpc && mkdir .arbitrum && chmod -fR 777 .arbitrum
    

    !!!Cange your L1 RPC URL and L2 BEACON RPC URL (8545 and 5052) in docker-compose.yml

    nano docker-compose.yml
    
    docker compose up -d
    

Third step

  • Add alias for docker logs
    echo "#Sepolia Arbitrum Node Logs" >> $HOME/.profile
    echo 'alias sarb_log="docker logs sarb-rpc-one-nitro-node-1 -f"' >> $HOME/.profile
    source $HOME/.profile
    
    now you can simply find logs: sarb_log

You are free to make any changes in docker-compose.yml if you know what you do 😉

About

Sepolia Arbitrum RPC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published