A tutorial that teaches how to set up and run a Base Node.
https://mainnet.base.org
https://sepolia.base.org
io2 block express
is recommended.OP_NODE_L1_ETH_RPC
& OP_NODE_L1_BEACON
(in the .env.*
file if using docker-compose
). If running your own L1 node, it needs to be synced before Base will be able to fully sync..env.sepolia
, or .env.mainnet
) under the 2 env_file
keys in docker-compose.yml
.docker compose up
. Confirm you get a response from:geth-data
or reth-data
. If you already have this folder, remove it to clear the existing state and then recreate it. Next, run the following code and wait for the operation to complete.
Network | Client | Snapshot Type | Command |
---|---|---|---|
Testnet | Geth | Full | wget https://sepolia-full-snapshots.base.org/$(curl https://sepolia-full-snapshots.base.org/latest) |
Testnet | Reth | Archive | wget https://sepolia-reth-archive-snapshots.base.org/$(curl https://sepolia-reth-archive-snapshots.base.org/latest) |
Mainnet | Geth | Full | wget https://mainnet-full-snapshots.base.org/$(curl https://mainnet-full-snapshots.base.org/latest) |
Mainnet | Reth | Archive | wget https://mainnet-reth-archive-snapshots.base.org/$(curl https://mainnet-reth-archive-snapshots.base.org/latest) |
geth
subfolder inside of it in the geth-data
folder you created (unless you changed the location of your data directory).
Return to the root of your Base node folder and start your node.
Error: nonce has already been used
if you try to deploy using your node.