Rabby icon indicating copy to clipboard operation
Rabby copied to clipboard

Unable to add custom RPC with the same chainID

Open 0xGitGuy opened this issue 1 year ago • 6 comments

This issue was somewhat discuss before https://github.com/RabbyHub/Rabby/issues/261

I get an error when attempting to add a second RPC for ethereum.

The error: Chain already integrated by Rabby Wallet

Why can we only have one RPC per chain? Metamask supports multiple RPC for the same chain. This is not only useful for dev work but also as a quick backup for switching between RPC provider.

0xGitGuy avatar May 17 '24 18:05 0xGitGuy

"Modify RPC URL" feature is not a solution at all. Still could only have 1 RPC provider for a given chain.

Is there any particular reason for Rabby to force users to only have 1 RPC per chain since adding custom RPC intentionally checks for duplication chainID?

0xGitGuy avatar May 17 '24 18:05 0xGitGuy

it kinda makes sense that the chain id is the "unique identifier" in this context and may be used for chain selection.

what's your use case? connecting to the same chain with different rpcs?

xtools-at avatar Sep 04 '24 06:09 xtools-at

yes, same chain diff rpc. mevblock has different variants of rpc that produces different results (revert vs no revert). The public rpc produces the pending mempool txn. I use them for various trading and dev mainnet testing purposes. Sticking to 1 rpc means i have to toggle between rabby and metamask as a tradeoff, not a pleasant UX

0xGitGuy avatar Sep 04 '24 08:09 0xGitGuy