getBlockEndpoint method

String getBlockEndpoint({
  1. required int start,
  2. required int limit,
  3. String? producer,
  4. bool descending = true,
  5. int? startTimestamp,
  6. int? endTimestamp,
})

Implementation

String getBlockEndpoint({
  required int start,
  required int limit,
  String? producer,
  bool descending = true,
  int? startTimestamp,
  int? endTimestamp,
}) {
  // final sort = descending ? "-" : "+";
  return "$baseURL/block?sort=&start=${start.asQueryString}&limit=${limit.asQueryString}&producer=${producer.asQueryString}&start_timestamp=${startTimestamp.asQueryString}&end_timestamp=${endTimestamp.asQueryString}";
}