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

Unable to use a custom rpc in wagmi #2324

Open
1 task done
nitishpatel opened this issue Dec 19, 2024 · 0 comments
Open
1 task done

Unable to use a custom rpc in wagmi #2324

nitishpatel opened this issue Dec 19, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@nitishpatel
Copy link

Current Behavior

No option to pass a custom rpc for a network for a wagmiConfig.
I tried all the ways by using createConfig or using the wagmiInit options however I couldn't pass an custom rpc for a specific network to be used and can't seem to find any documentation for the same.

export default init({
 wagmi // Unable to do anything here,
  // An array of wallet modules that you would like to be presented to the user to select from when connecting a wallet.
  wallets: [metamaskSDKWallet, walletConnect, injected],
  // An array of Chains that your app supports
  chains: [
    {
      id: '0x33',
      token: 'XDC',
      label: 'XinFin Apothem',
      rpcUrl: 'https://rpc.ankr.com/xdc_testnet'
    }
  ],

  },
  accountCenter: {
    desktop: {
      enabled: false
    },
    mobile: {
      enabled: false
    }
  }
  
});

Expected Behavior

A way to have a custom rpc for an network

Steps To Reproduce

No response

What package is effected by this issue?

@web3-onboard/core

Is this a build or a runtime issue?

Runtime

Package Version

2.22.2

Node Version

21.5.0

What browsers are you seeing the problem on?

Chrome

Relevant log output

No response

Anything else?

No response

Sanity Check

  • If this is a build issue, I have included my build config. If this is a runtime issue, I have included reproduction steps and/or a Minimal, Reproducible Example.
@nitishpatel nitishpatel added the bug Something isn't working label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants