Earn

Get a single earn lending action

Returns one lending action by its action sequence id (tenant-scoped).

get/earn/actions/{id}

Request

Path parameters

idstring required

Action sequence id (UUID).

Response

OK

idstring required

Action sequence id (UUID).

vaultAccountIdstring required

Fireblocks vault account that executed the action.

userIdstring required

User who initiated the action.

statusstring required

Intent status (e.g. CREATED, IN_PROGRESS, COMPLETED).

providerId'MORPHO' | 'AAVE' required

Lending protocol identifier.

actionType'DEPOSIT' | 'WITHDRAW' required

Whether this action is a deposit or withdraw flow.

opportunityIdstring required

Target lending opportunity identifier.

positionIdstring

Position id in the system when applicable.

amountstring required

Human-readable amount for the action.

createdAtstring required

Creation time (ISO-8601).

updatedAtstring required

Last update time (ISO-8601).

Example response

{
  "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",
  "positionId": "770e8400-e29b-41d4-a716-446655440002",
  "amount": "1500.5",
  "createdAt": "2025-01-15T10:00:00Z",
  "updatedAt": "2025-03-20T08:30:00Z",
  "records": [
    {
      "actionType": "APPROVE",
      "status": "COMPLETED",
      "txId": "tx_abc123def456",
      "txHash": "0x1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b",
      "updatedAt": "2025-03-20T08:30:00Z"
    }
  ]
}

Changes

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