Skip to content

Infer NetworkController RPC endpoint types from URLs - #10033

Draft
mcmire wants to merge 7 commits into
mainfrom
cursor/infer-rpc-endpoint-type-8f15
Draft

Infer NetworkController RPC endpoint types from URLs#10033
mcmire wants to merge 7 commits into
mainfrom
cursor/infer-rpc-endpoint-type-8f15

Conversation

@mcmire

@mcmire mcmire commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Explanation

NetworkController previously required callers and persisted state to include an RPC endpoint type. This change makes the type derived from the endpoint URL instead. Infura URLs matching the controller project ID or {infuraProjectId} are normalized to infura; all other URLs are normalized to custom.

The normalization runs for initial state, addNetwork, and updateNetwork, so existing state is corrected on the next initialization and mutation validation/client registration use the normalized endpoint shape. Infura network client IDs can also be derived from the URL when an inferred Infura endpoint does not provide one. The endpoint URL type is widened to support dynamically configured Infura subdomains.

References

None.

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them
Open in Web Open in Cursor 

cursoragent and others added 7 commits August 31, 2026 17:34
Co-authored-by: elliot.winkler <elliot.winkler@consensys.net>
Co-authored-by: elliot.winkler <elliot.winkler@consensys.net>
Co-authored-by: elliot.winkler <elliot.winkler@consensys.net>
Co-authored-by: elliot.winkler <elliot.winkler@consensys.net>
Co-authored-by: elliot.winkler <elliot.winkler@consensys.net>
Co-authored-by: elliot.winkler <elliot.winkler@consensys.net>
Co-authored-by: elliot.winkler <elliot.winkler@consensys.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants