buildERC721TransactionEndpoint method

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

Implementation

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