@usedapp/wallet-connect-v2-connector
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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>

Readme

Keywords

none

Package Sidebar

Install

npm i @usedapp/wallet-connect-v2-connector

Weekly Downloads

339

Version

1.0.4

License

MIT

Unpacked Size

205 kB

Total Files

17

Last publish

Collaborators

  • ethworks