Pricing
Each request costs $0.01 USD (paid via x402 on Base Sepolia testnet).Get Top Yields
Retrieve the highest yield opportunities across all supported protocols.GET /api/x402/yield/top
Query Parameters
Filter by blockchain:
ethereumarbitrumoptimismbasepolygonbnbavalanche
Minimum APY percentage (e.g.,
5 for 5%+)Maximum APY percentage (useful to filter out unsustainable yields)
Filter by yield type:
staking- ETH staking (Lido)lending- Supply APY (Aave)vault- Auto-compounding vaults (Yearn, Beefy)lp- Liquidity pools (Curve)fixed- Fixed-rate yields (Pendle)
Filter by protocol:
aave, yearn, beefy, curve, pendle, lido, turtleNumber of results to return
Response
Whether the request succeeded
Array of yield opportunities
Protocol name (e.g., “Aave”, “Yearn”, “Curve”)
Yield opportunity name
Primary asset (e.g., “USDC”, “ETH”, “WBTC”)
Annual Percentage Yield
Total Value Locked in USD (if available)
Blockchain network
Risk assessment:
LOW, MEDIUM, or HIGHYield type:
staking, lending, vault, lp, fixedDirect link to protocol page
Total opportunities matching filters
ISO 8601 timestamp
x402 payment receipt
Get Yields for Asset
Find all yield opportunities for a specific token.GET /api/x402/yield/asset
Query Parameters
Token symbol (e.g.,
USDC, ETH, WBTC, DAI)Response
Returns array of yield opportunities matching the token, sorted by APY.Risk Assessment
Each opportunity includes a risk score based on:LOW Risk
- Tier 1 protocols: Lido, Aave, Pendle, Compound ($10B+ TVL, 5+ major audits)
- Sustainable APY (0-15%)
- Organic yield from protocol fees
- Staking, lending, or fixed-rate yields
MEDIUM Risk
- Tier 2 protocols: Yearn, Curve ($500M+ TVL, 3+ audits)
- APY 15-30%
- Some vault strategy risk
- Established protocols with strong track record
HIGH Risk
- Smaller protocols or high APY (30%+)
- Likely unsustainable yields
- Higher smart contract risk
- LP pools with impermanent loss exposure
x402 Payment Flow
All Yield Optimizer endpoints require payment via x402:- Price: $0.01 per request
- Network: Base Sepolia (eip155:84532)
- Seller Address:
0x095691C40335E7Da13ca669EE3A07eB7422e2be3
Supported Protocols
- Lido - Ethereum staking
- Aave - Lending markets (Ethereum, Arbitrum, Optimism, Base, Polygon)
- Yearn - Auto-compounding vaults
- Beefy - Multi-chain yield aggregator
- Curve - Stablecoin and token liquidity pools
- Pendle - Fixed and variable yield trading
- Turtle - Yield aggregation across protocols
Yield data is aggregated from official protocol APIs and updated in real-time.