Skip to content

indexer: add a --dry-run mode that validates config and RPC connectivity without writing to the database #468

Description

@Idaonoli

Scope

index.ts connects to the configured RPC endpoint and opens the SQLite database as part of normal startup. There's no lightweight way to validate a .env configuration (RPC reachable, at least one contract ID set, DB path writable) before committing to a real indexing run — useful for CI or a new operator's first setup.

Acceptance criteria

  • Add a --dry-run (or npm run check-config) mode that validates config and RPC connectivity, prints a summary, and exits without opening/writing the database

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions