Metamask & Dart

Hi, I’m completely new on Web3 and I’m just trying to connect my flutter (mobile, not web) app to Metamask. I can’t use any of the SDKs since they are all in js and moralis is the only thing I’ve found it uses REST API… Can someone give me suggestions on how to proceed?

What I’m trying to do is to force the user to login into the app by using his metamask wallet so I’m able to obtain his wallet address and his nfts… I’m using this approach because its the only way I can assure that the wallet address is owned by the user of the app.


Hey @stefanor, I have been using dart/flutter with Moralis as well and while I do not have a specific solution for your case I may have a similar experience that may help you.

First for your case trying to authenticate your users with Metamask you probably use dart library that I think should cover the connectivity between your app and the wallet, from there you can continue using the API Moralis provide or continue reading for the other solution.

The other way (Which I use and have no significant issues so far) is to set the user wallet in your app using the great package and make sure to secure it well enough and use the dart library for ParsePlatform .org (The SDK Moralis is originally based on) which work with Moralis very well (I only tried Objects and functions though).

One issue though is using Moralis authentication, that part is actually added in the Moralis SDK not provided by ParsePlatform, but thankfully can be implemented from your side in simple steps since it is added as a Parse custom authentication provider (Can be reverse-engineered from the Moralis-JS-SDK).

You can check this gist out to understand how to implement the authentication in your DApp.


1 Like

hi @stefanor did you solve your problems? have you ever tried flutter_web3 or anything? i can only connect my app with metamask…but i couldn’t find any refference on how to use abi commands on flutter…