Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve client creation UX #39

Open
AgustinRamiroDiaz opened this issue Dec 9, 2024 · 0 comments
Open

Improve client creation UX #39

AgustinRamiroDiaz opened this issue Dec 9, 2024 · 0 comments

Comments

@AgustinRamiroDiaz
Copy link
Contributor

Problem

I find myself doing this in all my projects in order to handle different rpc endpoints

createClient({
        chain: rpcUrl
            ? {
                  ...simulator,
                  rpcUrls: {
                      default: {
                          http: [rpcUrl],
                      },
                  },
              }
            : simulator,
        account: createAccount(accountPrivateKey),
    });

Expected solution

I expect some way to actually create a client by configuring its RPC endpoint, something like createClient({rpcEndpoint?: string})

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

No branches or pull requests

1 participant