Meta Mask Wallet Connector

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

Features

  • Connect to Meta Mask
  • Retrieve wallet information
  • Send and receive EVM tokens
  • Sign transactions
  • Sign Messages

Getting started

To start using the Meta Mask 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:
  capsule_metamask_connector: ^0.0.1

Then, run flutter pub get to install the package.

Usage

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

import 'package:capsule_metamask_connector/capsule_metamask_connector.dart';

void main() async {
    final capsuleClient = Capsule(
    environment: Environment.beta,
    apiKey: apiKey,
  );

  final metamaskConnector = CapsuleMetaMaskConnector(
    capsule: capsuleClient,
    appUrl: "https://example.com/",
    deepLink: "exampleapp"
  );

  // Connect to MetaMask Account
  await metamaskConnector.connect();

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

  // Sign a Message
  final signedMessage = await metamaskConnector.signMessage("Hello, World!");
}

Thank you for using the Capsule Meta Mask Connector package!