WalletConnect / WalletConnectFlutterV2

WalletConnect v2 client made in Dart for Flutter.
https://pub.dev/packages/walletconnect_flutter_v2
Apache License 2.0
117 stars 61 forks source link

tron_signTransaction JsonRpcError(code: 5201, message: Unknown method(s) requested) #279

Closed AmjadKhan2k18 closed 8 months ago

AmjadKhan2k18 commented 8 months ago

Describe the bug I have connected Tron network on TrustWallet but can't sign transaction, I am getting error

sonRpcError(code: 5201, message: Unknown method(s) requested)

is there any example available in flutter except EVM chains? I tested the web example of dapp from WalletConnect V2 and I was able to see sign transaction in TrustWallet but doesn't work in Flutter, am I doing something wrong or anything missing ? if anyone have done sign transaction on tron chain Please share example

method : tron_signTransaction chain : tron:0x2b6653dc params :{from: TD7Ve4TigHpR4PzP6K5LFCyKsYBFRbApov, to: TQUiQy5Mdrdps8tTqj35WNHkVJCYjCsfvX, value: 0x16e364}

when connecting I have provided tron_signTransaction method

 optionalNamespaces: {
          'eip155': RequiredNamespace(
            chains: Web3Helper.getChains(wallet.web3Wallet),
            methods: Web3Helper.rpcOptionalMethods,
            events: Web3Helper.rpcEvents,
          ),
          'tron': RequiredNamespace(
            chains: [
              "tron:0x2b6653dc",
            ],
            methods: ['tron_signTransaction', 'tron_signMessage'],
            events: [],
          ),
        },

To Reproduce Steps to reproduce the behavior: 1 : connect Tron chain on trustwallet 2 : sign transaction

Reproducible code If applicable, add a minimum reproducible code snippet.

Screenshots In Trustwallet I get unkown error occur Screenshot_20240321-220124

Desktop (please complete the following information):

Smartphone (please complete the following information):

quetool commented 8 months ago

Hello @AmjadKhan2k18! Flutter SDK currently supports only EVM chains. We are working towards non-EVM chains but it might take some time.