safe-transaction-service icon indicating copy to clipboard operation
safe-transaction-service copied to clipboard

Paginate balances endpoint

Open moisses89 opened this issue 1 year ago • 2 comments

What is needed?

Currently we have some long balances lists, the idea of this issue is to paginate this list to split the list in several pages.

Related issues

https://github.com/safe-global/safe-transaction-service/issues/1408

Current endpoint

/api/v1/safes/{safe-address}/balances/

New endpoint

GET /api/v2/safes/{safe-address}/balances/

Response

Paginated list of tokens

{
 "count": <num_tokens>, 
 "next": "...", 
"previous": "...",
"results": [...]
}

moisses89 avatar Apr 26 '23 10:04 moisses89