[bug] Rosetta API returning unlimited responses

The Search Transactions request is always returning all items. For certain accounts, this can return 21k+ items (21MB of data)

curl 'https://rosetta-api.internetcomputer.org/search/transactions' \
  -H 'content-type: application/json;charset=UTF-8' \
  --data-raw '{"limit":25,"network_identifier":{"blockchain":"Internet Computer","network":"00000000000000020101"},"account_identifier":{"address":"..."}}'

The limit and offset params should be implemented.

2 Likes

There’s another issue with transaction responses - memo (and timestamp) values are returned as numbers, which will break when parsed in JS (due to being too large). I recommend returning strings to be consistent with other number fields.