5

I need to clarify a doubt in the development of Dapp, when creating a mobile app with flutter can I use web3 to connect with the wallet and the blockchain?

TylerH
  • 20,799
  • 66
  • 75
  • 101
Thaddeus
  • 51
  • 3

1 Answers1

3

[Edit 2021-12-02] I just found this https://pub.dev/packages/flutter_web3, it is web only but seems to be compatible with WalletConnect QR codes connection, so it is probably worth a try.

Original answer:

I believe you can check out flutter_web3_provider but it only works for web.

I believe you can also use WalletConnect to support mobile wallets like these ones, but I haven't found a wrapper/implementation for flutter so you would need to implement that. But the good news is you would be able to use it in native apps. I see there is a react-native implementation so hopefully somebody will write the flutter implementation soon. You can support/like the request here.

Also you can directly sign and send transactions to an RPC server (a more direct gate to the blockchain) using web3dart, but of course you would need to ask for and/or store the user's private key, which is probably not what you want.

josue.0
  • 775
  • 1
  • 10
  • 23
  • 1
    https://giters.com/Orange-Wallet/wallet-connect-dart It looks like here we have Dart implementation. – Volodymyr Bilovus Nov 23 '21 at 13:10
  • 1
    @VolodymyrBilovus sorry, I believe that implementation is building a wallet app themselves, not for dapps that want to connect to a wallet. – josue.0 Nov 30 '21 at 16:35
  • There is now [walletconnect_dart](https://pub.dev/packages/walletconnect_dart) package which also supports connecting to Wallets and sending requests to the Wallets. – Tom May 12 '22 at 23:04