Reputation: 31
I've been trying for a while to connect Flutter App to Metamask wallet, but most packages are only for one platform either mobile or web.
I've tried installing Metamask and WalletConnect_dart packages, but their issues are as below.
Metamask package is only for web: https://pub.dev/packages/metamask
WalletConnect package is for connecting your own wallet: https://pub.dev/packages/walletconnect_dart
I'd like to connect to wallet then send and sign transactions using web3dart. Kindly assist!
Upvotes: 3
Views: 637
Reputation: 40493
So there's a few issues here. The first is that Metamask is more of a service than just a wallet as far as I can tell. So when you're interacting with it, it's not going to be as a wallet but rather as a consumer of their services. As such a package such as walletconnect_dart probably won't help much unless they explicitly support Metamask.
The metamask package linked to unfortunately doesn't really seem to do most of what is actually intended with the metamask SDK as you noted only supports the web (barely, at time of writing), so it's not going to be much help either.
There are packages that might be able to help such as webthree, but they might not provide for all the functionality that metamask has.
If webthree isn't sufficient, this probably isn't what you want to hear, but if you want to create a mobile app using metamask you're probably stuck with two main options:
This could be a medium to large challenge depending on your experience with native coding on iOS and Android, but is not impossible.
Upvotes: 0