Skip to main content
basectl doctor runs a set of read-only health checks against one node and prints a result for each. It never changes anything on the node. The command exits with an error (1) if any check fails, and exits 0 when checks only pass, warn, are skipped, or report information. By default, doctor uses the rpc, l1_rpc, and consensus_node_rpc URLs from your selected config. Use --el-rpc and --cl-rpc to point it at a different node.

What it checks

  • The network your config says you’re on versus the chain ID the node actually reports
  • P2P endpoint details
  • Bootnode configuration
  • Whether the node’s advertised endpoint looks correct
  • Whether the node is reachable from the outside (via the Base telemetry service)
  • Execution-layer and consensus-layer peer counts
  • How far the node’s head is behind the public endpoint
  • How recent the safe head is
  • Optional reth.toml header/body limits
  • Whether a consensus-node RPC is configured
  • Whether the L1 RPC is reachable
The external reachability check uses the network detected from your --el-rpc. It’s skipped if the network can’t be detected or isn’t supported.

Flags

Examples

Run doctor
Because doctor exits with an error when a check fails, you can use it in health checks and CI. Adjust the threshold flags to make the warnings and failures fit your alerting.