public_address_wallet

Creator: coderz1093

Last updated:

0 purchases

public_address_wallet Image
public_address_wallet Images
Add to Cart

Description:

public address wallet

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;
});
copied to clipboard
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;
});
copied to clipboard
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);
});
copied to clipboard
Credits #

Tai Phan Van
Tomas Verhelst
Tom Friml
All Contributors

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.