phantom_connect 0.0.1
phantom_connect: ^0.0.1 copied to clipboard
A flutter plugin to connect phantom wallet
Phantom Connect #
Features #
This package has all these provider methods implemented for easy to use:
- ✅ Connect
- ✅ Disconnect
- ✅ SignAndSendTransaction
- ✅ SignAllTransactions
- ✅ SignTransaction
- ✅ SignMessage
Getting Started #
We need to have deeplink for our application for handling returned data from phantom.
A few resources to get you started:
Usage #
First and foremost, import the widget.
import 'package:phantom_connect/phantom_connect.dart';
Initialise the object with required Parameters.
appUrlA url used to fetch app metadata i.e. title, icon.deepLinkThe URI where Phantom should redirect the user upon connection. Deep Link we used in our application.
final PhantomConnect phantomConnect = PhantomConnect(
appUrl: "https://solana.com",
deepLink: "samepl://exampledeeplink.io",
);
Example #
- A full example application will be released soon.