fetchAccountRewards method

Future<Map?> fetchAccountRewards(
  1. String address,
  2. int eras
)

Implementation

Future<Map?> fetchAccountRewards(String address, int eras) async {
  final dynamic res = await serviceRoot.webView!.evalJavascript(
      'staking.loadAccountRewardsData(api, "$address", $eras)');
  return res;
}