checkPassword method

Future<bool> checkPassword({
  1. required String address,
  2. required String pass,
})

check password of account

Implementation

Future<bool> checkPassword(
    {required String address, required String pass}) async {
  final res = await serviceRoot.webView!
      .evalJavascript('eth.keyring.checkPassword("$address", "$pass")');
  //An error Message is displayed if it fails :{ success: false, error: err.message }
  return res["success"];
}