diff --git a/packages/connectors/wallet-connect-v2/README.md b/packages/connectors/wallet-connect-v2/README.md index 69a1d46db..e21e31628 100644 --- a/packages/connectors/wallet-connect-v2/README.md +++ b/packages/connectors/wallet-connect-v2/README.md @@ -1 +1,35 @@ # WalletConnectV2Connector for useDApp + +Connector for [WalletConnectV2](https://docs.walletconnect.com/) for useDApp. + +## Example usage + +Update your `usedapp` config: + +```ts +connectors: { + ... + walletConnectV2: new WalletConnectV2Connector({ + projectId: , + chains: [Mainnet], + rpcMap: { + 1: 'https://mainnet.infura.io/v3/', + }, + }), + ... + }, +``` + +Now you can use the connector: + +```tsx +import { useEthers } from '@usedapp/core' + +... + +const { activateBrowserWallet } = useEthers(); + +... + + +``` diff --git a/packages/docs/docs/02-Guides/01-Connecting/05-Wallet Connect.mdx b/packages/docs/docs/02-Guides/01-Connecting/05-Wallet Connect.mdx index 8d8b47c17..aa458f4c6 100644 --- a/packages/docs/docs/02-Guides/01-Connecting/05-Wallet Connect.mdx +++ b/packages/docs/docs/02-Guides/01-Connecting/05-Wallet Connect.mdx @@ -72,14 +72,14 @@ It is possible to create multiple instances of WalletConnectV2Connector, in case ```ts connectors: { ... - walletConnectV2-mainnet: new WalletConnectV2Connector({ + walletConnectV2_mainnet: new WalletConnectV2Connector({ projectId: , chains: [Mainnet], rpcMap: { 1: 'https://optimism.infura.io/v3/', }, }), - walletConnectV2-optimism: new WalletConnectV2Connector({ + walletConnectV2_optimism: new WalletConnectV2Connector({ projectId: , chains: [Optimism], rpcMap: {