requestAccount method

Future<CredentialsWithKnownAddress> requestAccount()

Asks the user to select an account and give your application access to it.

Implementation

Future<CredentialsWithKnownAddress> requestAccount() async {
  final res = await rawRequest('eth_requestAccounts');

  return MetaMaskCredentials((res as List).single as String, this);
}