WalletConnect Integration

Use this guide if your app does not use RainbowKit.

CipherTrade accepts standard WalletConnect sessions and also supports a mobile deep-link flow using:

ciphertrade://wc?uri=<encoded_walletconnect_uri>


Basic example

npm install @walletconnect/ethereum-provider
import EthereumProvider from '@walletconnect/ethereum-provider'

const provider = await EthereumProvider.init({
  projectId: 'YOUR_PROJECT_ID',
  chains: [1],
  showQrModal: true,
})

await provider.connect()

Mobile deep linking

If you handle your own mobile redirect flow, build the CipherTrade deep link like this:

const uri = 'WALLETCONNECT_URI_HERE'
const deepLink = `ciphertrade://wc?uri=${encodeURIComponent(uri)}`
window.location.href = deepLink

Recommended behavior


When to use this guide