DeFi dashboard
DeFi market overview: total TVL, ETH price, Base gas, and global crypto stats in one call.
$0.15
per call · one payment for the whole workflow
POST /api/skill/defi-dashboard
4 tools run server-side in one request. You pay once, settle once, and get a single response - no orchestration, no per-step payments, and a partial-success envelope if any step fails. USDC over x402 on any supported chain.
When to use this pack
Quick DeFi health check - TVL trends, ETH price context, gas costs, and market-wide metrics.
Tools in this pack
All 4 run inside the single $0.15 call above. Each is also callable on its own if you only need one part.
- DeFi protocol TVL POST /api/defi-tvl Look up the current Total Value Locked (TVL) for a DeFi protocol via DeFiLlama's public API. Identify the protocol by its DeFiLlama slug (uniswap, aave, lido, ethena, etc.). Returns the total TVL plus per-chain breakdown and 24h/7d/30d change where DeFiLlama exposes it.
- Crypto price GET /api/crypto-price Live crypto prices for one or many coins in any vs_currency (usd, eur, btc, eth, etc). Returns last price, 24h change %, 24h volume, and market cap per coin. The simplest crypto price read - for ranked market-cap tables use crypto-market, for candles use crypto-history, and when you need an oracle-grade price with a confidence interval use price-pyth. Accepts ticker symbols (BTC, ETH, SOL) for the top ~50 by market cap, or canonical CoinGecko ids (e.g. "render-token") for any of the ~15k tracked coins. Batched: up to 25 coins per call. Backed by CoinGecko's public API - keyless.
- Gas snapshot (slow / standard / fast) POST /api/gas-snapshot Live gas price snapshot for a chain - slow / standard / fast tiers in gwei, plus the latest base fee. Sampled from eth_feeHistory (last 4 blocks, 25th/50th/90th percentile priority fees). Use to estimate before broadcasting a transaction from another tool.
- Crypto global market GET /api/crypto-global Global crypto market snapshot: total market cap, total 24h volume, BTC dominance, ETH dominance, active coin count, active exchange count, and 24h market-cap change %. Returned in a chosen vs_currency (default usd). Backed by CoinGecko /global.
Workflow
- Pull total DeFi TVL across all chains.
- Get the live ETH price as the reference asset for DeFi.
- Check Base gas for current transaction costs.
- Pull global crypto market stats for total cap and dominance context.
Call it directly
Any x402 client pays the 402 and gets the whole workflow back in one response:
npx agent402-client call defi-dashboard {}
Run it in Claude
claude mcp add agent402 -s user -- npx -y agent402-mcp@latest
Then paste this prompt into Claude:
Give me a DeFi market overview using Agent402's defi-dashboard skill pack. Get (1) total DeFi TVL, (2) ETH price, (3) Base gas tiers, (4) global crypto stats. Summarize the health of DeFi right now.