← Back to companies
[ OK ] Loaded —
[ INFO ]
$ cd
$ ls -lt
01
02
03
04
05
$ ls -lt
01
02
03
04
05
user@intervues:~/$
Design a paginated REST API endpoint that returns a list of transactions for a Coinbase wallet. The endpoint must support BOTH offset-based and cursor-based pagination and allow the caller to choose which method to use via a query parameter. Your task is to:
Assume the transactions table has columns: id (UUID), wallet_id, amount, currency, created_at (timestamp), and is_deleted (boolean). The primary read pattern is listing the most recent transactions first (ORDER BY created_at DESC, id DESC).