Skip to content

fix: allow partial custom provider URLs#359

Merged
Destiner merged 4 commits intomainfrom
fix/optional-custom-provider-urls
Feb 24, 2026
Merged

fix: allow partial custom provider URLs#359
Destiner merged 4 commits intomainfrom
fix/optional-custom-provider-urls

Conversation

@Destiner
Copy link
Contributor

Addresses user feedback: users should be able to provide custom URLs only for the chains they need, rather than being required to specify URLs for all chains in the sourceChains array.

Changes

  • Modified getCustomUrl to return undefined instead of throwing when a chain ID is not found
  • Updated createTransport to fall back to default public provider when custom URL is not configured
  • Added changeset

Behavior

Before: If you specified sourceChains: [chain1, chain2, chain3] but only provided custom URLs for chain1 and chain2, the SDK would throw an error when trying to use chain3.

After: Chains without a custom URL configured will use the default public provider, allowing users to mix custom and default providers as needed.

This improves DX and reduces configuration overhead for users who only need custom providers for specific chains.

@Destiner Destiner merged commit 841bb13 into main Feb 24, 2026
5 checks passed
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