Skip to main content

Connect UniPass Wallet

class UpAccount {
String address; // Ethereum address of user
String email; // Email of user
bool newborn; // Newly registered or not

UpAccount({required this.address, this.email = "", this.newborn = false});
}

/// {@params} BuildContext
try {
UpAccount upAccount = await uniPassWeb.connect(context);
} catch (err) {
// User refused the connection or connection error
}

newborn can be used to track new registration count.