futantan / rainbowkit-kaikas

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a RainbowKit + wagmi + Next.js project bootstrapped with create-rainbowkit.

Here are some attempts to integrate kaikas wallet with RainbowKit, testing with safari on iPhone

import { kaikasWallet } from '@rainbow-me/rainbowkit/wallets'

source code

Click Kaikas wallet icon on the website, it will open kaikas, but nothing happened, it will not ask the user to connect the wallet.

The url schema doesn't work, so I have changed

kaikas://walletconnect?uri=${encodeURIComponent(uri)}

to:

kaikas://wallet/browser?url=${encodeURI(window.location.origin)}

Now, it will open the website inside Kaikas wallet, but when user click the wallet icon, nothing happened.

One possible reason is that the Kaikas wallet inside iPhone doesn't implement https://eips.ethereum.org/EIPS/eip-1193

Rainbowkit is the most popular web3 wallet for mobile, but it will be great if we can integrate kaikas with RainbowKit. A PR to RainbowKit to update the kaikasWallet.ts will be great

About


Languages

Language:TypeScript 86.1%Language:CSS 13.0%Language:JavaScript 0.9%