Skip to content

Integrate in Mobile #1838

@quoctran1

Description

@quoctran1

I tried to integrate this to Phantom Mobile Wallet in Flutter App. But i got stuck when init DriftClient instance because it required a Wallet with private key, which i cant retrieve.

On the website, i can get the wallet adapter by using @solana/wallet-adapter-react to create DriftClient instance easily like this:

Image

To integrate this lib on mobile, i built a Web project, then import the dist folder into Flutter project and run it locally by show in a Webview.

Image

With Phantom Mobile Wallet, i already connected, sign message from my Flutter App to Phantom Mobile Wallet by using Deeplink.
Every thing worked, but i found a problem that i cant find a way get the wallet in Phantom Mobile Wallet to inject into DriftClient in the code above.

Could you help me in this case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions