Get list of earn providers
Get list of earn providers.
GET
TypeScript
Query Parameters
Cursor for the next or previous page of results.
Number of items per page.
Required range:
1 <= x <= 100Field to sort results by.
Sort order (ASC or DESC).
Available options:
ASC, DESC Example:
"ASC"
Response
OK
Page of integrated lending providers.
Example:
[
{
"providerId": "MORPHO",
"displayName": "Morpho",
"logoUrl": "https://cdn.example.com/morpho.svg",
"supportedChainIds": [1, 8453],
"isTermsApprovalRequired": true,
"termsOfServiceUrl": "https://example.com/morpho/tos",
"isTermsOfServiceApproved": false
}
]Total number of items matching the query.
Example:
1
Opaque cursor for the next page; empty when there is no next page.
Example:
""
Opaque cursor for the previous page; empty when there is no previous page.
Example:
""
Previous
Approve earn provider terms of serviceApproves earn provider terms of service for this workspace (one-time per tenant).
When `isTermsApprovalRequired` is true on a provider (see list providers),
call this once before creating or executing earn actions with providers that require it.
After success, `GET /earn/providers` reflects `isTermsOfServiceApproved`.
Next
TypeScript