I am using this api to get all transactions at an address, however I see it returns the last 1000 transactions, is there any way to make it return first 1000 transactions by date?


Try adding &sort=asc to the end of the query: https://api-ropsten.etherscan.io/api?module=account&action=txlist&address=0x25BEADE120E501D7b984498D196eFe4AbE6a11F6&sort=asc

  • It did not worked, the timestamp is same with or without sort for the first and last result
    – Paras
    Apr 12 '19 at 11:29
  • For me it returns the oldest transactions when I specify sort=asc and the newest for sort=desc. Though, sort=asc seems to be default behavior, i.e. without sort parameter it returns me the oldest transacitons as well. Apr 12 '19 at 11:34
  • Aah, I get it, I wanted the latest, so desc works.
    – Paras
    Apr 12 '19 at 12:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.