Multiple Connection Mode

Multiple Connection Mode

You can configure chainTypes property of TomoContextProvider to support multi-network mode. In this mode, wallets from various networks are accessible through separate tabs, allowing you to select and establish connections with them. Once connected, providers facilitate interactions with these wallets across different networks. Currently, support is extended to both Bitcoin and Cosmos networks.

Multiple connection mode

Single Wallet Mode

<TomoContextProvider
  chainTypes={['bitcoin']} // only show bitcoin wallets
  ...
>
  <ChildComponent />
</TomoContextProvider>

Multiple Wallets Mode

<TomoContextProvider
  chainTypes={['cosmos', 'bitcoin']} // show both bitcoin and cosmos wallets
  ...
>
  <ChildComponent />
</TomoContextProvider>

Last updated