Skip to content

Support viem client directly for provider + bundler client #269

@KONFeature

Description

@KONFeature

Describe the feature you would like

It would be cool if we could reuse an existing viem client for both the provider, and the bundler client (providing directly a BundlerClient for a given chain, like the getBundlerClient).

Something like:
new RhinestoneSDK({ clientFactory: (chainId) => ... , bundlerClientFactory: (chainId) => ... })

It would help support other bundler / paymaster than pimlico & alchemy, and also (my use case), use the same transport for the 3 (everything under an eRPC instance, doing caching, rate limiting and LB across multiple providers) + support fallbacks and all the cool stuff from viem.

I can work on it and submit a PR if you want

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions