1.2.3 • Published 2 years ago
@unipasswallet/rainbowkit-plugin v1.2.3
rainbowkit-plugin
Installation
  npm install @unipasswallet/rainbowkit-pluginor
  yarn add @unipasswallet/rainbowkit-pluginParameters
- chains-- Chains supported by app. This is the same parameter as would be passed to other RainbowKit wallets..
- options.connect-- Connection options for the default networkId, name of the app.
- options.connect.chainId-- Default chainId.
- options.connect.returnEmail-- If true, email will return when connect function been called.
- options.connect.appSettings-- Config appName, appIcon and theme.
Usage
  import { unipassWallet } from "@unipasswallet/rainbowkit-plugin'
  const connectors = connectorsForWallets([
    {
      groupName: "Recommended",
      wallets: [
        injectedWallet({ chains, shimDisconnect: true }),
        metaMaskWallet({ chains, shimDisconnect: true }),
        rainbowWallet({ chains }),
        unipassWallet({
          chains,
          connect: {
            chainId: polygonMumbai.id,
            returnEmail: false,
            appSettings: {
              appName: "wagmi demo",
              appIcon: "your icon url",
            },
          },
        }),
      ],
    },
  ]);
  const wagmiClient = createClient({
    autoConnect: true,
    connectors,
    provider,
  });Example
A demo app for RainbowKit is available here
1.2.3
2 years ago
1.2.2
2 years ago
1.2.1
2 years ago
1.1.9
3 years ago
1.1.8
3 years ago
1.1.0
3 years ago
1.0.1
3 years ago
0.0.1-alpha.7
3 years ago
0.0.1-alpha.6
3 years ago