Earn

List earn lending actions

Returns a paginated list of lending actions (deposits and withdrawals) for the authenticated tenant.

get/earn/actions

Request

Query parameters

pageCursorstring

Cursor for the next or previous page of results.

pageSizeinteger

Number of items per page (default 100, max 100).

sortBy'createdAt' | 'updatedAt'

Field to sort results by.

order'ASC' | 'DESC'
Example:ASC

Sort order (ASC or DESC).

Response

OK

nextstring

Opaque cursor for the next page; empty when there is no next page.

prevstring

Opaque cursor for the previous page; empty when there is no previous page.

totalinteger required

Total number of items matching the query.

Example response

{
  "data": [
    {
      "id": "660e8400-e29b-41d4-a716-446655440001",
      "vaultAccountId": "0",
      "userId": "550e8400-e29b-41d4-a716-446655440000",
      "status": "IN_PROGRESS",
      "providerId": "MORPHO",
      "actionType": "DEPOSIT",
      "opportunityId": "morpho-usdc-vault-1",
      "amount": "1500.5",
      "createdAt": "2025-01-15T10:00:00Z",
      "updatedAt": "2025-03-20T08:30:00Z",
      "records": [
        {
          "actionType": "APPROVE",
          "status": "COMPLETED",
          "txId": "tx_abc123",
          "txHash": "0xabc...",
          "updatedAt": "2025-03-20T08:29:00Z"
        }
      ]
    }
  ],
  "total": 1
}

Changes

No recorded changes to this operation across all 1 revision of this API.