buildTransactionEndpoint method

String buildTransactionEndpoint({
  1. required String address,
  2. int? startblock,
  3. int? endblock,
  4. int? page,
  5. int? offset,
  6. Sorting? sorting,
})

Implementation

String buildTransactionEndpoint({
  required String address,
  int? startblock,
  int? endblock,
  int? page,
  int? offset,
  Sorting? sorting,
}) =>
    "$base&module=account&action=txlist&address=$address"
        .addOptionalParameter('startblock', startblock)
        .addOptionalParameter('endblock', endblock)
        .addOptionalParameter('page', page)
        .addOptionalParameter('offset', offset)
        .addOptionalParameter('sort', sorting?.name);