Skip to content
This repository was archived by the owner on Aug 5, 2026. It is now read-only.

chore: Update RPC configuration guidance and validation - #890

Merged
lightwalker-eth merged 16 commits into
mainfrom
340-improve-the-default-configuration-for-rpc-endpoints-and-rate-limits
Aug 7, 2025
Merged

chore: Update RPC configuration guidance and validation#890
lightwalker-eth merged 16 commits into
mainfrom
340-improve-the-default-configuration-for-rpc-endpoints-and-rate-limits

Conversation

@djstrong

@djstrong djstrong commented Jul 25, 2025

Copy link
Copy Markdown
Contributor
  • Enhanced comments in docker-compose and example files to clarify the need for proper RPC endpoint configuration.
  • Updated .env.local.example files to emphasize the requirement for private (paid) RPC services.
  • Added validation in the ENSIndexer startup process to ensure critical RPC configurations are set, with clear error messages for missing configurations.
  • Improved documentation to highlight the performance limitations of public RPC endpoints.

Resolves:

- Enhanced comments in docker-compose and example files to clarify the need for proper RPC endpoint configuration.
- Updated .env.local.example files to emphasize the requirement for private (paid) RPC services.
- Added validation in the ENSIndexer startup process to ensure critical RPC configurations are set, with clear error messages for missing configurations.
- Improved documentation to highlight the performance limitations of public RPC endpoints.
@djstrong
djstrong requested a review from a team as a code owner July 25, 2025 22:26
@djstrong djstrong linked an issue Jul 25, 2025 that may be closed by this pull request
@changeset-bot

changeset-bot Bot commented Jul 25, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 37e3edd

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Jul 25, 2025

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
admin.ensnode.io ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 7, 2025 1:33pm
ensnode.io ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 7, 2025 1:33pm
ensrainbow.io ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 7, 2025 1:33pm

Comment thread .github/workflows/test_ci.yml Outdated
@djstrong
djstrong requested a review from Copilot July 26, 2025 08:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances RPC configuration guidance and validation for ENSIndexer to ensure proper setup with private (paid) RPC endpoints. The changes address performance issues caused by users attempting to use public rate-limited RPC endpoints that cannot handle the high-volume requests required by ENSIndexer.

  • Added startup validation to check for required RPC configurations and provide clear error messages
  • Enhanced documentation and example files to emphasize the need for private RPC services
  • Updated default rate limits and comments to reflect proper infrastructure requirements

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
apps/ensindexer/src/config/index.ts Added startup validation function to check for required RPC configurations
apps/ensindexer/src/config/config.schema.ts Enhanced schema validation with better error messages for RPC configurations
apps/ensindexer/.env.local.example Updated with comprehensive guidance on RPC endpoint requirements
docs/ensnode.io/src/content/docs/ensindexer/usage/configuration.mdx Added critical warning section about RPC configuration requirements
docker-compose.yml Enhanced comments to clarify configuration requirements
examples/example-docker-compose/docker-compose.yml Enhanced comments to clarify configuration requirements
apps/ensadmin/.env.local.example Updated RPC URL guidance for consistency
apps/ensindexer/src/lib/lib-config.ts Added clarifying comments about rate limit assumptions
.changeset/many-coins-wait.md Added changeset entry for the updates
Comments suppressed due to low confidence (1)

apps/ensindexer/src/config/config.schema.ts:140

  • [nitpick] The error message is too verbose and could be clearer. Consider breaking this into multiple lines or simplifying the message to focus on the immediate action needed.
      "No RPC configurations found. You must configure RPC endpoints for the chains required by your enabled plugins. See .env.local.example for guidance. Public (rate limited) RPC endpoints will not provide acceptable performance - use only private (paid) endpoints.",

Comment thread apps/ensindexer/.env.local.example Outdated
Comment thread apps/ensindexer/src/config/index.ts Outdated
Comment thread apps/ensindexer/src/config/config.schema.ts Outdated
Comment thread apps/ensindexer/src/config/config.schema.ts Outdated
- Added example for using Alchemy as an RPC provider in the configuration file.
- Clarified the requirement for the Ethereum Mainnet RPC URL when using the subgraph plugin.
…-and-rate-limits' of https://github.com/namehash/ensnode into 340-improve-the-default-configuration-for-rpc-endpoints-and-rate-limits

@lightwalker-eth lightwalker-eth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

@lightwalker-eth
lightwalker-eth merged commit 95c9140 into main Aug 7, 2025
7 checks passed
@lightwalker-eth
lightwalker-eth deleted the 340-improve-the-default-configuration-for-rpc-endpoints-and-rate-limits branch August 7, 2025 13:37
@github-actions github-actions Bot mentioned this pull request Aug 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

devops DevOps related docs Docs related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove ENSRainbow.io default API url in ENSIndexer Improve the default configuration for RPC endpoints and rate limits

4 participants