getTRXTransferList method

Future<JSON> getTRXTransferList({
  1. required String address,
  2. int start = 0,
  3. int limit = 20,
  4. int direction = 0,
  5. bool fee = false,
  6. int? start_timestamp,
  7. int? end_timestamp,
})

Implementation

Future<JSON> getTRXTransferList({
  required String address,
  int start = 0,
  int limit = 20,
  int direction = 0,
  bool fee = false,
  int? start_timestamp,
  int? end_timestamp,
}) {
  final endpoint =
      "$baseURL/transfer/trx?address=${address}?start=${start.asQueryString}&limit=${limit.asQueryString}&direction=${direction.asQueryString}&fee=${fee.asQueryString}?start_timestamp=${start_timestamp.asQueryString}&end_timestamp=${end_timestamp.asQueryString}";

  return getCall<JSON>(endpoint);
}