node README

The project's README from github.com/base/node. As one markdown file: README.md.

[!CAUTION]

This repository is archived

Use releases from base/base for all new installations and upgrades. Development and releases have moved to base/base; this repository is no longer maintained.

Base

Base Node

Base is a secure, low-cost, developer-friendly Ethereum L2 built on Optimism's OP Stack. This repository contains a Docker build for running a Base node with base-reth-node and base-consensus.

Website base.org Docs Discord Twitter Base Farcaster Base

Quick Start

  1. Ensure you have an Ethereum L1 full node RPC and beacon endpoint available.

  2. Choose your network:

    • For mainnet: use .env.mainnet
    • For testnet: use .env.sepolia
  3. Configure your L1 endpoints in the appropriate .env file:

    BASE_NODE_L1_ETH_RPC=<your-preferred-l1-rpc>
    BASE_NODE_L1_BEACON=<your-preferred-l1-beacon>
    
  4. Start the node:

    # For mainnet (default):
    docker compose up --build
    
    # For testnet:
    NETWORK_ENV=.env.sepolia docker compose up --build
    

Supported Clients

Requirements

Minimum Requirements

Production Hardware Specifications

The following are the hardware specifications we use in production:

Configuration

Required Settings

Network Settings

Optional Features

For full configuration options, see .env.mainnet or .env.sepolia.

Testing Flashblocks RPC Methods

When running in Flashblocks mode, you can query a pending block using the Flashblocks RPC:

curl -X POST \
  --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["pending", false],"id":1}' \
  http://localhost:8545

Snapshots

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.

Supported Networks

Network Status
Mainnet ✅
Testnet ✅

Troubleshooting

For support please join our Discord and post in 🛠|node-operators. You can alternatively open a new GitHub issue.

Disclaimer

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.

node (base/node)

Searching Database…

68.3K ·GitHub
archived
这是什么?一个用于运行 Base 节点的 Docker 构建。Base 是一个安全、低成本、对开发者友好的以太坊 L2,基于 Optimism 的 OP Stack 构建,执行客户端为 base-reth-node,共识客户端为 base-consensus。
把节点跑起来需要做什么?准备好一个以太坊 L1 全节点的 RPC 和信标(beacon)端点,根据你的网络选择 .env.mainnet 或 .env.sepolia,在该文件中设置 L1 端点,然后启动节点。
这台机器需要什么配置?至少需要一颗现代多核 CPU、32GB 内存(推荐 64GB)、一块 NVMe 固态硬盘,以及主机上安装好的 Docker 和 Docker Compose。
这个仓库还是我该下载节点软件的地方吗?不是——开发和发布已经迁移到 base/base。这个仓库已归档,不再维护,新安装和升级请使用 base/base 的发布版本。
必须在 Linux 服务器上运行吗?这是一个 Docker 构建,所以凡是 Docker 和 Docker Compose 能运行的地方它都能运行;生产环境的参考硬件是带本地 NVMe 硬盘的 AWS 实例。
许可证或免责方面有什么需要注意的吗?GitHub 上标注的是 MIT,但节点软件附带很强的免责声明:按“原样”提供,对资产保护或安全性不作任何保证。
有没有比从创世块开始同步更快的办法?有——官方提供了快照(snapshot),可以帮你更快地同步节点;docs.base.org 上有快照下载链接和恢复步骤说明。
磁盘空间大概要预留多少?至少要够放当前链数据大小的两份,加上快照大小,再留出 20% 的增长缓冲;生产环境归档节点的参考配置是在 AWS i7i.12xlarge 上把所有本地 NVMe 硬盘组建成 RAID 0。
Flashblocks 选项是做什么的?设置 RETHFBWEBSOCKETURL 会把执行客户端切换到 Flashblocks 模式,增加一个用于查询待处理区块的 Flashblocks RPC;不设置的话,节点以普通模式运行。
Creator
base
Size
3 MB
Stars
68.3K
Age
3y
Commits · 90 Days