GET /api/defi/yields/chain/{chain}
Yields by chain
DeFi yield farming opportunities
Endpoint​
GET https://api.web3identity.com/api/defi/yields/chain/{chain}
Parameters​
| Name | In | Type | Required | Description |
|---|---|---|---|---|
chain | path | string | âś… | Blockchain network (ethereum, base, polygon, etc) |
minApy | query | number | ❌ | Minimum APY filter |
stablecoin | query | boolean | ❌ | Only stablecoin pools |
Example Request​
curl -s "https://api.web3identity.com/api/defi/yields/chain/:chain" | jq
Responses​
200 Chain yields​
{
"chain": "Ethereum",
"pools": [
{
"pool": "USDC-USDT",
"apy": 5.67,
"tvl": 123456789.12,
"protocol": "Curve",
"ilRisk": "none",
"stablecoin": true
},
{
"pool": "ETH-USDC",
"apy": 8.45,
"tvl": 234567890.23,
"protocol": "Uniswap",
"ilRisk": "high",
"stablecoin": false
}
]
}
400 Bad request - invalid parameters​
{
"example": "response"
}
402 Payment required - free tier exhausted​
{
"example": "response"
}
404 Resource not found​
{
"example": "response"
}
429 Rate Limited​
{
"example": "response"
}
500 Internal Server Error - Something went wrong on our end​
{
"error": "Internal server error",
"code": "INTERNAL_ERROR"
}
Auto-generated from OpenAPI spec