1.0.4-dev.999b916 • Published 2 years ago

@usedapp/wallet-connect-v2-connector v1.0.4-dev.999b916

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

WalletConnectV2Connector for useDApp

Connector for WalletConnectV2 for useDApp.

Example usage

Update your usedapp config:

connectors: {
    ...
    walletConnectV2: new WalletConnectV2Connector({
      projectId: <YOUR_WALLETCONNECT_PROJECT_ID>,
      chains: [Mainnet],
      rpcMap: {
        1: 'https://mainnet.infura.io/v3/<YOUR_INFURA_KEY>',
      },
    }),
    ...
  },

Now you can use the connector:

import { useEthers } from '@usedapp/core'

...

const { activateBrowserWallet } = useEthers();

...

<button onClick={() => activateBrowserWallet({ type: 'walletConnectV2' })}>Connect</button>
1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

3 years ago