Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Copy link

Copilot AI commented Dec 18, 2025

Adds comprehensive documentation for integrating OKX Wallet (com.okex.wallet) into dapps using the EIP-6963 multi-wallet detection standard.

Changes

  • New guide: wallet/how-to/connect-to-okx-wallet.md

    • Complete TypeScript interfaces (EIP-6963, EIP-1193)
    • Three integration approaches: generic EIP-6963 detection, OKX-specific filtering, third-party libraries (Wagmi, MIPD)
    • Production-ready React component example with state management and event handling
  • Enhanced wallet-interoperability.md

    • Added "Common wallet RDNS identifiers" section mapping wallet names to RDNS strings
    • Code example for filtering specific wallets
  • Updated connect-extension.md

    • Now mentions OKX Wallet alongside MetaMask and Coinbase as EIP-6963 compatible examples
  • Sidebar navigation

    • Added "Connect to OKX Wallet" entry under How-to section

Example: Filtering for OKX Wallet

window.addEventListener('eip6963:announceProvider', (event: EIP6963AnnounceProviderEvent) => {
  if (event.detail.info.rdns === 'com.okex.wallet') {
    const okxProvider = event.detail.provider
    await okxProvider.request({ method: 'eth_requestAccounts' })
  }
})

window.dispatchEvent(new Event('eip6963:requestProvider'))

RDNS Identifiers Reference

  • MetaMask: io.metamask
  • OKX Wallet: com.okex.wallet
  • Coinbase Wallet: com.coinbase.wallet
  • Trust Wallet: com.trustwallet.app
  • Rainbow: me.rainbow

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • metamask.github.io
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/Miago.AI/Miago.AI/node_modules/.bin/docusaurus build (dns block)
  • sot-network-methods.vercel.app
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/Miago.AI/Miago.AI/node_modules/.bin/docusaurus build (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Connect all repositories to my okx wallet


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Connect all repositories to OKX wallet Add OKX Wallet integration documentation with EIP-6963 support Dec 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants