Sitelet https://github.com/alloy-rs/examples/pull/250
Skip to content

fix(examples): require explicit RPC configuration - #250

Merged
mattsse merged 2 commits into
mainfrom
mattsse/examples-rpc-configuration
Jul 16, 2026
Merged

mattsse merged 2 commits into
mainfrom
mattsse/examples-rpc-configuration

Conversation

@mattsse

@mattsse mattsse commented Jul 16, 2026 •

Copy link
Copy Markdown
Member

Summary

  • add minimal shared helpers for required environment configuration
  • replace baked-in HTTP, WebSocket, IPC, Ethereum, and Arbitrum endpoints across networked examples
  • replace placeholder authorization and signing values with explicit environment variables
  • document endpoint, Anvil, hardware-wallet, and cloud-signer prerequisites

Why

The shared Ethereum endpoint used throughout the repository is unavailable, so otherwise-correct examples fail for reasons unrelated to Alloy. Public defaults and placeholder credentials are also brittle and make behavior vary by provider.

Impact

Networked examples now use caller-supplied endpoints and fail early with actionable configuration errors. The fallback example accepts at least two comma-separated endpoints. Offline examples are unchanged.

This PR is stacked on #249 so it inherits the compatible dependency lockfile and deterministic CI baseline.

@mattsse
mattsse requested a review from onbjerg July 16, 2026 11:01
@mattsse
mattsse changed the base branch from mattsse/examples-ci-reliability to main July 16, 2026 14:34
@mattsse
mattsse force-pushed the mattsse/examples-rpc-configuration branch from 706ead8 to 2e018c2 Compare July 16, 2026 14:35
@mattsse
mattsse merged commit 611cab0 into main Jul 16, 2026
6 checks passed
@github-project-automation github-project-automation Bot moved this to Done in Alloy Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant