public_address_wallet 0.0.6 copy "public_address_wallet: ^0.0.6" to clipboard
public_address_wallet: ^0.0.6 copied to clipboard

A package to get verified public address from wallet using WalletConnect protocol v1.

Introduction #

WalletConnect connects mobile & web applications to supported mobile wallets. The WalletConnect session is started by scanning a QR code (desktop) or by clicking an application deep link (mobile).

Once installed, you can simply get verified address from wallet.

Usage #

    /// Create a connector
    var connector = WalletConnector(
        const AppInfo(name: "Mobile App", url: "https://example.mobile.com"));
    /// create wallet need open 
    var rainbowMe = const Wallet(universalLink: 'https://rainbow.me/');
    /// Get address
    var address = await connector.publicAddress(wallet: rainbowMe).catchError((onError) {
      throw onError;
    });

Currently, package already have Wallet.metamask, Wallet.trustWallet and Wallet.rainbowMe constants.

    /// package open Metamask by default
    var address = await connector.publicAddress().catchError((onError) {
        throw onError;
    });

If you want open wallet by your self, use initSession and get uri

    connector.initSession((uri) {
        // use session uri and connect to wallet by your way
        print(uri);
    });

Credits #

4
likes
140
points
41
downloads

Publisher

unverified uploader

Weekly Downloads

A package to get verified public address from wallet using WalletConnect protocol v1.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

convert, cryptography, flutter, json_annotation, stack_trace, url_launcher, uuid, web_socket_channel

More

Packages that depend on public_address_wallet