Connect to multiple chains simultaneously #454
Replies: 3 comments 1 reply
-
You can export the key from the web3auth provider and instantiate your own provider for the different chains needed |
Beta Was this translation helpful? Give feedback.
-
Hey @yurayavorski We don't have an example for this case, but I can explain to you how the code will look like. You can use this private key provider: https://web3auth.io/docs/sdk/web/providers/other to get the private key of the user. Now suppose I want to use it for StarkEx and Tezos. Now I will make two different functions for getting StarkEx keys and Tezos keys like these:
Afterwards, you can use these keys for each blockchain to make calls accordingly. You can check our StarkEx and Tezos blockchain pages to know how to make calls. |
Beta Was this translation helpful? Give feedback.
-
Hey @yurayavorski Please see https://github.com/Web3Auth/examples/tree/main/web-modal-sdk/multi-chain |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using web3auth JS SDK. I have found the example of how to implement switching to different chains. But I need to have access to multiple chains at the same time (e.g. to list user assets from multiple chains). Is there a way to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions