WalletConnect / Web3ModalFlutter

The Web3Modal for WalletConnect built using Flutter.
https://pub.dev/packages/web3modal_flutter
Apache License 2.0
27 stars 30 forks source link

RPCError (RPCError: got code 19 with msg "Unable to perform request".) #118

Open kinggongzilla opened 3 weeks ago

kinggongzilla commented 3 weeks ago

After connecting with a wallet the web3modal package throws the error:

RPCError (RPCError: got code 19 with msg "Unable to perform request".)

function: "eth_getBalance"

multiple times.

The error is coming from the catch statement in makeRPCCall()

quetool commented 3 weeks ago

Please share your pubspec.yaml if possible, and a reproducible code. Thanks!

quetool commented 2 weeks ago

Hello @kinggongzilla, checking if you still need help here. That error looks like a direct error from web3dart package and it's most probably due to the wallet you are connecting to not supporting that method. On our side you should read WalletConnectError(code: 5101, message: Unsupported methods. The method eth_getBalance is not supported, data: null)

kinggongzilla commented 1 week ago

Hi Sorry for the delay. Yes I can confirm that WalletConnectError(code: 5101, message: Unsupported methods. The method eth_getBalance is not supported, data: null) is the error that is thrown.

Does this error have any impact on functionality apart from not being able to call eth_getBalance?

Thanks again for your help!

quetool commented 1 week ago

Hello @kinggongzilla! No impact whatsoever. Also balance for the selected chain is already embedded on Web3Modal but if this is a requested feature I could include it as a separate method inside W3MService in the near future.