Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 818 Bytes

walletconnect.md

File metadata and controls

38 lines (29 loc) · 818 Bytes

WalletConnect

For more info please refer to Torus documentation

  1. Install Provider Package
npm install --save @walletconnect/ethereum-provider

# OR

yarn add @walletconnect/ethereum-provider
  1. Set Provider Options
import { EthereumProvider } from '@walletconnect/ethereum-provider'

const providerOptions = {
  walletconnect: {
    package: EthereumProvider,
    options: {
      projectId: <projectId>,
      chains: [1],
      showQrModal: true,
      metadata: {
        name: 'XDEFI Swap & Bridge',
        description: 'XDEFI Swap & Bridge',
        url: 'https://app.xdefi.io',
        icons: ['https://app.xdefi.io/logo512.png']
      }
    }
  }
}

https://docs.walletconnect.com/advanced/providers/ethereum