WalletConnectFlutterV2 icon indicating copy to clipboard operation
WalletConnectFlutterV2 copied to clipboard

BTC chain doesn't connect

Open AmjadKhan2k18 opened this issue 1 year ago • 11 comments
trafficstars

Describe the bug Hi, last time I tested bip122 it was able to connect and get address of BTC from Trustwallet but now it's not showing in list of Chains, I used same namespace and chainId from this issue to connect

if I change anything namespace or chainId TrustWallet doesn't show Connect popup at all but if it's correct one it's shows popup but missing BTC in chain list

Does something change in WalletConnect? I tried different chains SOL, COSMOS, TRON every chain is working only BTC doesn't work

My goal is just to connect and get address of BTC so I can transfer from Our App to Trustwallet

          'bip122': const RequiredNamespace(
            chains: [
              "bip122:000000000019d6689c085ae165831e93",
            ],
            methods: [],
            events: [],
          ),

To Reproduce Steps to reproduce the behavior: 1 : Try to connect Trustwallet with bip122

Expected behavior User should be able to connect BTC network and get address

Reproducible code

        `bip122': const RequiredNamespace(
            chains: [
              "bip122:000000000019d6689c085ae165831e93",
            ],
            methods: [],
            events: [],
          ),

Desktop (please complete the following information):

  • OS: Android/IOS

Smartphone (please complete the following information):

  • Device: Iphone X
  • OS: IOS 16.7.x
  • Browser Dapp

AmjadKhan2k18 avatar Aug 19 '24 18:08 AmjadKhan2k18

Hello @AmjadKhan2k18! Not sure how you were able to connect before as Bitcoin support is not fully implemented yet. It will be very soon. I will anyway try to dig into this and come back to you! Thanks!

quetool avatar Aug 20 '24 07:08 quetool

@quetool Thanks, hopefully will hear back from you soon

AmjadKhan2k18 avatar Aug 20 '24 17:08 AmjadKhan2k18

Hello @AmjadKhan2k18! Lil update! https://github.com/WalletConnect/WalletConnectFlutterV2/discussions/309#discussioncomment-10416881

quetool avatar Aug 22 '24 09:08 quetool

@quetool that's great news Thanks, I tried again still nothing show up BTC or any other chain LTC, DOGE, I check documentation but didn't understand about namespace and chainid that should be used, will you make a new version to support all these chains or server side changes is enough?

if no new version is required can you write an example quickly to connect at least BTC and if possible signing a transfer transaction

AmjadKhan2k18 avatar Aug 22 '24 11:08 AmjadKhan2k18

No new version is required, I'll try to write up a quick example ASAP.

quetool avatar Aug 22 '24 13:08 quetool

@quetool any update? or any example from web app? I couldn't find any

AmjadKhan2k18 avatar Aug 25 '24 10:08 AmjadKhan2k18

@quetool ?

AmjadKhan2k18 avatar Aug 27 '24 04:08 AmjadKhan2k18

Hello @AmjadKhan2k18! As soon as we release example I'll let you know... I don't have an ETA but it should be soon!

quetool avatar Aug 27 '24 09:08 quetool

Hello @quetool!

  1. can you give me some direction, any update what's wrong that it doesn't connect ? if you can guide little I will do it.
  2. Were anyone in WalletConnect able to connect BTC chain and sign transaction ? I don't find any update in Web example too

AmjadKhan2k18 avatar Sep 06 '24 07:09 AmjadKhan2k18

Hello @AmjadKhan2k18! I didn't have time yet to write up a BTC example. I honestly don't know how you were able to connect before as the specs were not ready until few days ago on our side. It shouldn't have been possible honestly. But anyway, here are the specs for Bitcoin https://docs.walletconnect.com/advanced/multichain/rpc-reference/bitcoin-rpc and here there is a draft PR for BTC example from Web team https://github.com/WalletConnect/web-examples/pull/568/files, maybe you can use it as reference.

I promise I will write up an example for Flutter ASAP, this is really in my interests, believe me, I just didn't have time yet.

quetool avatar Sep 06 '24 10:09 quetool

@AmjadKhan2k18 great that you're working on Bitcoin. Can you please reach out to me via Telegram? @cyberdrk

arein avatar Sep 06 '24 10:09 arein