Skip to content

Add optional HTTP/HTTPS proxy support for RPC requests#19

Merged
Johnaverse merged 3 commits intomainfrom
copilot/add-proxy-support-rpc
Feb 14, 2026
Merged

Add optional HTTP/HTTPS proxy support for RPC requests#19
Johnaverse merged 3 commits intomainfrom
copilot/add-proxy-support-rpc

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 14, 2026

Adds configurable proxy support for all outbound RPC and data fetching operations. Disabled by default.

Changes

  • New fetchUtil.js: Proxy-aware fetch wrapper using https-proxy-agent

    • Drops in as fetch() replacement
    • Auto-initializes from PROXY_URL env var
    • Masks credentials in logs (http://user:****@proxy:8080)
  • Updated RPC clients: rpcMonitor.js and dataService.js now use proxyFetch()

    • RPC health checks (web3_clientVersion, eth_blockNumber)
    • Data source fetching (The Graph, Chainlist, etc.)
  • Configuration: Added PROXY_URL and PROXY_ENABLED to config.js

Usage

# Enable proxy
PROXY_URL=http://proxy.example.com:8080 npm start

# With authentication
PROXY_URL=http://user:pass@proxy.example.com:8080 npm start

Notes

  • Zero breaking changes - falls back to standard fetch when unconfigured
  • Added https-proxy-agent@7.0.6 dependency
  • 7 new unit tests for proxy functionality

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits February 14, 2026 03:37
Co-authored-by: Johnaverse <110527930+Johnaverse@users.noreply.github.com>
Co-authored-by: Johnaverse <110527930+Johnaverse@users.noreply.github.com>
Copilot AI changed the title [WIP] Add proxy support for making RPC requests Add optional HTTP/HTTPS proxy support for RPC requests Feb 14, 2026
Copilot AI requested a review from Johnaverse February 14, 2026 03:42
@Johnaverse Johnaverse marked this pull request as ready for review February 14, 2026 04:07
@Johnaverse Johnaverse merged commit b6602ed into main Feb 14, 2026
1 check failed
Copilot AI requested a review from Johnaverse February 14, 2026 04:08
Copilot stopped work on behalf of Johnaverse due to an error February 14, 2026 04:08
@Johnaverse Johnaverse deleted the copilot/add-proxy-support-rpc branch February 17, 2026 21:35
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