getBlockEndpoint method
String
getBlockEndpoint({ - required int start,
- required int limit,
- String? producer,
- bool descending = true,
- int? startTimestamp,
- 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}";
}