Skip to main content

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​

NameInTypeRequiredDescription
chainpathstringâś…Blockchain network (ethereum, base, polygon, etc)
minApyquerynumber❌Minimum APY filter
stablecoinqueryboolean❌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