phantom_wallet_connector 0.0.1-dev.1 copy "phantom_wallet_connector: ^0.0.1-dev.1" to clipboard
phantom_wallet_connector: ^0.0.1-dev.1 copied to clipboard

A Flutter package to connect and interact with Phantom Wallet to Capsule, enabling seamless integration with Solana blockchain applications.

Phantom Wallet Connector #

The Phantom Wallet Connector package allows developers to easily integrate the Phantom Wallet into their Dart and Flutter applications. This package provides a seamless way to connect, authenticate, and interact with the Phantom Wallet, enabling users to manage their Solana-based assets directly within your app.

Features #

  • Connect to Phantom Wallet
  • Authenticate users
  • Retrieve wallet information
  • Send and receive SOL and SPL tokens
  • Sign transactions

Getting started #

To start using the Phantom Wallet Connector package, ensure you have the following prerequisites:

  • Dart SDK: >=2.12.0 <3.0.0
  • Flutter SDK: >=2.0.0

Add the following dependency to your pubspec.yaml file:

dependencies:
  phantom_wallet_connector: ^0.0.1

Then, run flutter pub get to install the package.

Usage #

Here is a simple example of how to use the Phantom Wallet Connector package:

import 'package:phantom_wallet_connector/phantom_wallet_connector.dart';

void main() async {
  final connector = PhantomWalletConnector();

  // Connect to Phantom Wallet
  final address = await connector.connect();

  print('Connected to wallet: $address');

  // Sign a transaction
  final signedTransaction = await connector.signTransaction(transaction);
}

Thank you for using the Phantom Wallet Connector package!

0
likes
100
points
44
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package to connect and interact with Phantom Wallet to Capsule, enabling seamless integration with Solana blockchain applications.

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

app_links, capsule, flutter, pinenacl, solana_web3, url_launcher, web3dart

More

Packages that depend on phantom_wallet_connector