Find the best DeFi yields across chains using real-time data from DeFiLlama.
Zero dependencies. Single file. Works with Node.js 18+.
- Real-time yield data from 16,000+ DeFi pools
- Filter by chain, TVL, APY, stablecoins, single-asset
- 8 chains supported: Ethereum, Solana, Arbitrum, Optimism, Polygon, BSC, Base, Avalanche
- JSON output for piping to other tools
- 7-day APY trend tracking
npx defi-yield-finder
# or
git clone https://github.com/aoi-dev-0411/defi-yield-finder.git
cd defi-yield-finder
node index.js# Top 20 yields across all chains
node index.js
# Solana yields above 5% APY
node index.js --chain Solana --min-apy 5
# Stablecoin pools with $10M+ TVL
node index.js --stables --min-tvl 10000000
# Single-asset pools (no impermanent loss)
node index.js --single --top 10
# JSON output
node index.js --json --top 5| Flag | Description | Default |
|---|---|---|
--chain <name> |
Filter by chain | all |
--min-tvl <usd> |
Minimum TVL | 1,000,000 |
--min-apy <pct> |
Minimum APY % | 1 |
--top <n> |
Number of results | 20 |
--stables |
Stablecoin pools only | off |
--single |
Single-asset pools only | off |
--json |
JSON output | off |
══════════════════════════════════════════════════════════════════════════════════════════
Top 10 DeFi Yields Across Chains
══════════════════════════════════════════════════════════════════════════════════════════
Protocol Pool Chain APY TVL Trend(7d)
──────────────────────────────────────────────────────────────────────────────────────────
lido STETH Ethereum 2.38% $21.08B -0.03%
aave-v3 WETH Ethereum 1.85% $5.23B +0.12%
...
All data is fetched from DeFiLlama Yields API — free, no API key required.
MIT
If you find this tool useful:
- ETH:
0xa977ED7922703Bf4F9A14cFd27c56d3Cc571908C - SOL:
3TcijsNw7kL97QmaLHNE8gDeKt177w4PsJd8XMWDQjUn