public_address_wallet 0.0.5 public_address_wallet: ^0.0.5 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"));
/// Get address
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);
});