Web3Modal

Doc

Here is the react demo, please refer to the official website for more information.

Install

npm install @web3modal/wagmi wagmi@1.4.13 viem@1.21.4

Config OneKey

Add the OneKey Wallet Id when createWeb3Modal.

createWeb3Modal({
  wagmiConfig,
  projectId,
  chains,
  featuredWalletIds: [
    // OneKey Wallet Id more see https://explorer.walletconnect.com/onekey
    "1aedbcfc1f31aade56ca34c38b0a1607b41cccfa3de93c946ef3b4ba2dfab11c",
  ],
  includeWalletIds: [
    // OneKey Wallet Id more see https://explorer.walletconnect.com/onekey
    "1aedbcfc1f31aade56ca34c38b0a1607b41cccfa3de93c946ef3b4ba2dfab11c",
  ],
});

Quickstart & Demo

Last updated