getAccountBlocksByPage method

Future<AccountBlockList> getAccountBlocksByPage(
  1. Address address, {
  2. int pageIndex = 0,
  3. int pageSize = rpcMaxPageSize,
})

pageIndex = 0 returns the most recent account blocks sorted descending by height

Implementation

Future<AccountBlockList> getAccountBlocksByPage(Address address,
    {int pageIndex = 0, int pageSize = rpcMaxPageSize}) async {
  var response = await client.sendRequest('ledger.getAccountBlocksByPage',
      [address.toString(), pageIndex, pageSize]);
  return AccountBlockList.fromJson(response!);
}