getAccounts method

Future<List<String>> getAccounts()

Returns List of accounts the node controls.

Implementation

Future<List<String>> getAccounts() async =>
    (await request<List<dynamic>>('eth_accounts'))
        .map((e) => e.toString())
        .toList();