README.md
Base is a secure, low-cost, developer-friendly Ethereum L2 built on Optimism's OP Stack. This repository contains Docker builds to run your own node on the Base network.
Ensure you have an Ethereum L1 full node RPC available
Choose your network:
.env.mainnet.env.sepoliaConfigure your L1 endpoints in the appropriate .env file:
OP_NODE_L1_ETH_RPC=<your-preferred-l1-rpc>
OP_NODE_L1_BEACON=<your-preferred-l1-beacon>
OP_NODE_L1_BEACON_ARCHIVER=<your-preferred-l1-beacon-archiver>
Start the node:
# For mainnet (default):
docker compose up --build
# For testnet:
NETWORK_ENV=.env.sepolia docker compose up --build
# To use a specific client (optional):
CLIENT=reth docker compose up --build
# For testnet with a specific client:
NETWORK_ENV=.env.sepolia CLIENT=reth docker compose up --build
reth (default)gethnethermindThe following are the hardware specifications we use in production:
/dev/nvme*)/dev/nvme*)[!NOTE] To run the node using a supported client, you can use the following command:
CLIENT=supported_client docker compose up --build
Supported clients:
OP_NODE_L1_ETH_RPC: Your Ethereum L1 node RPC endpointOP_NODE_L1_BEACON: Your L1 beacon node endpointOP_NODE_L1_BEACON_ARCHIVER: Your L1 beacon archiver endpointOP_NODE_L1_RPC_KIND: The type of RPC provider being used (default: "debug_geth"). Supported values:
alchemy: Alchemy RPC providerquicknode: QuickNode RPC providerinfura: Infura RPC providerparity: Parity RPC providernethermind: Nethermind RPC providerdebug_geth: Debug Geth RPC providererigon: Erigon RPC providerbasic: Basic RPC provider (standard receipt fetching only)any: Any available RPC methodstandard: Standard RPC methods including newer optimized methodsRETH_CHAIN=baseOP_NODE_NETWORK=base-mainnethttps://mainnet-sequencer.base.orgGETH_CACHE="20480" (20GB)GETH_CACHE_DATABASE="20" (4GB)GETH_CACHE_GC="12"GETH_CACHE_SNAPSHOT="24"GETH_CACHE_TRIE="44"For full configuration options, see the .env.mainnet file.
Snapshots are available to help you sync your node more quickly. See docs.base.org for links and more details on how to restore from a snapshot.
| Network | Status |
|---|---|
| Mainnet | ✅ |
| Testnet | ✅ |
For support please join our Discord post in 🛠|node-operators. You can alternatively open a new GitHub issue.
THE NODE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. We make no guarantees about asset protection or security. Usage is subject to applicable laws and regulations.
For more information, visit docs.base.org.