{"uid":"cap_NwLgXAvXw7rf0lxwhuzuW","slug":"defillama-fees-revenue-by-chain-e916797f","name":"DefiLlama Fees & Revenue by Chain","description":"Fees & revenue for one chain by DefiLlama — protocol fees and revenue on a single chain.","url":"https://defillama.use.x402atlas.com/fees-chain","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["chain"],"properties":{"chain":{"type":"string","pattern":"^[^/?#]+$","maxLength":100,"minLength":1,"description":"Chain slug (e.g. ethereum, arbitrum)"},"dataType":{"type":"string","maxLength":200,"description":"Optional data type (e.g. dailyFees, dailyRevenue)"},"excludeTotalDataChart":{"type":"string","maxLength":200,"description":"Optional true/false to exclude the aggregate data chart"},"excludeTotalDataChartBreakdown":{"type":"string","maxLength":200,"description":"Optional true/false to exclude the per-protocol chart breakdown"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["queried_at","data"],"properties":{"data":{"type":"object","properties":{"total24h":{"type":"number","description":"Aggregate 24h fees or revenue in USD, per dataType"},"protocols":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"total24h":{"type":"number"}}}}},"description":"Raw DefiLlama per-chain fees overview payload","additionalProperties":true},"queried_at":{"type":"string","format":"date-time","description":"When this bridge fetched the upstream data"}}}}}}},"responseSchema":{"type":"json","example":{"data":{"total24h":1230000,"protocols":[{"name":"Uniswap","total24h":120000}]},"queried_at":"2026-07-01T12:00:00Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DoimbMn7j6TR_6895N3sS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns protocol fees and revenue data for a single blockchain chain via DefiLlama.","exampleAgentPrompt":"Can you pull the DefiLlama fee and revenue data for Arbitrum, including the daily breakdown by protocol?","exampleUseCases":[{"title":"Track protocol earnings by blockchain","prompt":"I need to monitor which chains are generating the most DeFi protocol revenue right now. Can you pull the fee and revenue data for Ethereum, Solana, and Arbitrum so I can compare their economic performance?"},{"title":"Monitor daily fee activity on L2s","prompt":"Show me the daily fee breakdown for Base and Optimism over the last week. I want to see which protocols are contributing most to each chain's revenue."},{"title":"Analyze chain financial health metrics","prompt":"Can you get the total protocol fees and revenue figures for Avalanche and BNB Chain? I'm trying to understand the economic health of these networks compared to each other."}],"resultDescription":"Returns an object containing protocol fees and revenue figures for the specified chain, including aggregate time-series data and optionally a per-protocol breakdown of daily fees and daily revenue.","failureModes":["Invalid or unrecognized chain slug returns an error or empty result","Missing required 'chain' query parameter causes a 400-level error","Chain slug misspelling (e.g. 'eth' instead of 'ethereum') may return no data","Temporary DefiLlama data unavailability may result in stale or missing charts","Payment of $0.005 USDC not fulfilled causes 402 Payment Required response"],"whenToPreferThis":"Use this endpoint when you need fee and revenue metrics scoped to a single blockchain chain rather than aggregated across all chains. Prefer this over options volume or TVL endpoints when the specific question is about economic activity (fees paid, revenue earned) on one chain. Ideal for chain-level financial performance comparisons in DeFi analytics.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:48:52.021Z","isFirstParty":false}