List DeFi protocols available through the Trails earn system
Documentation Index
Fetch the complete documentation index at: https://docs.trails.build/llms.txt
Use this file to discover all available pages before exploring further.
YieldGetProviders returns the DeFi protocols (providers) available through Trails’ earn system — Aave, Morpho, Yearn, and others. Use the returned provider IDs as filter values for YieldGetMarkets.
The SDK’s useEarnProviders hook wraps this endpoint — prefer it in React apps.
| Field | Type | Description |
|---|---|---|
limit | number | Number of providers to return |
offset | number | Pagination offset |
payload containing an array of provider objects. Each provider includes:
| Field | Description |
|---|---|
id | Provider identifier — use as the provider filter in YieldGetMarkets |
name | Human-readable protocol name |
url | Protocol website |
logoUrl | Protocol logo image URL |
useEarnProviders hook: