Skip to content

Multi Inject Connectors #742

Answered by tmm
LaCocoRoco asked this question in Q&A
Discussion options

You must be logged in to vote

Using multiple injected wallets in tandem is unfortunately not very easy. Usually, the "first" one to attach itself to window.ethereum wins. When Coinbase Wallet is available as an injected wallet, it attempts to make this easier by setting window.ethereum.providers. Ideally there would be some standardization around multiple injected wallets (in practice most people only use one).

The name of the InjectedConnector can be changed but this does not use the specified wallet.

You can pass your own name field using the name(detectedName: string | string[]): string function. detectedName is one or more names based on what is detected from window.ethereum or window.ethereum.providers (see abo…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by LaCocoRoco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants