1.2.2 • Published 2 months ago

@unipasswallet/wagmi-connector v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

wagmi-connector

Installation

  npm install @unipasswallet/wagmi-connector

or

  yarn add @unipasswallet/wagmi-connector

Parameters

  • 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 { UniPassConnector } from "@unipasswallet/wagmi-connector'

  const unipass = new UniPassConnector({
    options: {
      connect: {
        chainId: 80001,
        returnEmail: false,
        appSettings: {
          appName: "wagmi demo",
          appIcon: "your icon url",
          theme: UniPassTheme.dark,
        },
      },
    },
  });

  const connectors = [
    unipass,
    new MetaMaskConnector({
      chains,
    }),
  ];
  
  const wagmiClient = createClient({
    autoConnect: false,
    connectors,
    provider,
  });

Example

A demo app for Wagmi is available here

1.2.2

2 months ago

1.2.0

10 months ago

1.2.1

10 months ago

1.1.9

1 year ago

1.1.0

1 year ago

1.0.2

1 year ago

1.0.1-alpha.6

1 year ago

1.0.1-alpha.5

1 year ago

1.0.1-alpha.4

1 year ago

1.0.1-alpha.3

1 year ago

1.0.1-alpha.2

1 year ago

1.0.1-alpha.1

1 year ago

1.0.1

1 year ago

0.0.1-alpha.7

1 year ago

0.0.1-alpha.6

1 year ago

0.0.1-alpha.5

1 year ago

0.0.1-alpha.4

1 year ago

0.0.1-alpha.3

1 year ago

0.0.1-alpha.2

1 year ago

0.0.1-alpha.1

1 year ago