Skip to content

Submitter: add viem client proxys to use RPC from BlockService RPC selection#988

Merged
norswap merged 2 commits intomasterfrom
ns/select-rpc
Jul 24, 2025
Merged

Submitter: add viem client proxys to use RPC from BlockService RPC selection#988
norswap merged 2 commits intomasterfrom
ns/select-rpc

Conversation

@norswap
Copy link
Collaborator

@norswap norswap commented Jul 24, 2025

Following up on the work in #987 and implementing the missing part described there:

The main issue is not in the block subscription anymore, but in all the others RPC calls, which simply attempt to use the RPCs in the defined order, falling back in list order. The fix (for later) will be to implement a Viem client proxy that uses the RPC selected by the block service as its default block.

Copy link
Collaborator Author

norswap commented Jul 24, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@norswap norswap changed the title update Fn type Submitter: add viem client proxys to use RPC selection globally Jul 24, 2025
@norswap norswap changed the title Submitter: add viem client proxys to use RPC selection globally Submitter: add viem client proxys to use RPC from BlockService RPC selection Jul 24, 2025
@norswap norswap marked this pull request as ready for review July 24, 2025 14:04
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jul 24, 2025

Deploying happychain with  Cloudflare Pages  Cloudflare Pages

Latest commit: e97ded2
Status: ✅  Deploy successful!
Preview URL: https://f69c451f.happychain.pages.dev
Branch Preview URL: https://ns-select-rpc.happychain.pages.dev

View logs

@norswap norswap merged commit 0da4a9a into master Jul 24, 2025
4 checks passed
@norswap norswap deleted the ns/select-rpc branch July 24, 2025 14:12
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.

1 participant