Catalog action Blockchain Data

Look up real LP-pool APYs from DefiLlama Yields, filtered by chain, protocol, and tokens. Returns each pool's fee APR (apyBase), incentive APR (apyReward), total apy, 7-day APY change, TVL, and 24h volume — sorted and limited in memory; APY fields are passed through untouched (may be null). Ideal for: finding the highest-yielding pools for a token pair, comparing fee vs incentive APR across protocols, spotting pools whose APY dropped over the last week.

At a Glance

FieldValue
Action IDdefillama-get-pool-yields
CategoryBlockchain Data
ConnectorNot required
Requires gasNo
Funds movementNone declared
Tagsdefi, yield, apy, pool, liquidity, read

Payload Schema

FieldTypeRequiredDescription
chainsarrayNoFilter by chain. Case-insensitive names + aliases (eth/ethereum→Ethereum, arb→Arbitrum, base, rh/robinhood→Robinhood Chain, op/optimism→OP Mainnet, polygon/matic, bsc/bnb, avax). Unrecognized values match pool.chain case-insensitively.
projectsarrayNoFilter by protocol. A pool matches if its project equals OR starts with the value (uni/uniswap matches all uniswap versions; aerodrome matches aerodrome-v1 and aerodrome-slipstream).
tokensarrayNoFilter by tokens in the pool symbol (order-independent). A pool matches if its symbol contains ALL provided tokens, e.g. ['WETH','USDC'] matches 'USDC-WETH'.
minTvlUsdnumberNoDrop pools below this TVL in USD (default: 10000).
minApynumberNoKeep only pools with total apy >= this value (percent).
stablecoinOnlybooleanNoKeep only pools flagged as stablecoin pools.
sortBystringNoField to sort pools by, descending. Nulls sink to the bottom (default: apy).
limitnumberNoMaximum number of pools to return (default: 20, min: 1, max: 100).

Result Schema

FieldTypeRequiredDescription
poolsarrayYesMatching pools after sort + limit.
countnumberYesNumber of pools returned (after limit)
totalMatchednumberYesNumber of pools matching filters (before limit)

Examples

json
{ "type": "defillama-get-pool-yields", "payload": { "chains": [], "projects": [], "tokens": [ "ETH" ], "minTvlUsd": 10000, "minApy": 1 }, "children": []}

Payload fields can use workflow expressions such as {{$trigger.body.amount}}, {{$nodes.fetch.result.price}}, and {{$props.asset}} when the value should come from a trigger, prior node, or reusable workflow prop.