tsmartdriver.scrollTo("temp");
I guess you're using java-client is bigger than 4.0 because: scrollTo() and scrollToExact() became deprecated from this version.
yes i am using the bigger version of java client so is there solution for the same?
I think...you should replace with swipe();
The info for your reference her: https://github.com/appium/java-client