personalListAccounts method
Returns all the Ethereum account addresses of all keys in the key store.
Implementation
Future<List<EthereumAddress>?> personalListAccounts() async {
const method = EthereumRpcMethods.listAccounts;
final dynamic res = await _client.rpcClient.request(method);
if (res != null && res.containsKey(EthereumConstants.ethResultKey)) {
return EthereumAddress.toList(
res[EthereumConstants.ethResultKey].cast<String>());
}
_client.processError(method, res);
return null;
}