getTableRows method
Get table rows (AMAX get table ...)
Implementation
Future<List<Map<String, dynamic>>> getTableRows(
String code,
String scope,
String table, {
bool json = true,
String tableKey = '',
String lower = '',
String upper = '',
int indexPosition = 1,
String keyType = '',
int limit = 10,
bool reverse = false,
}) async {
dynamic result = await this._post('/chain/get_table_rows', {
'json': json,
'code': code,
'scope': scope,
'table': table,
'table_key': tableKey,
'lower_bound': lower,
'upper_bound': upper,
'index_position': indexPosition,
'key_type': keyType,
'limit': limit,
'reverse': reverse,
});
if (result is Map) {
return result['rows'].cast<Map<String, dynamic>>();
}
return [];
}