# ScriptMasterLabs DeFi TVL Ranking API

> ScriptMasterLabs DeFi TVL Ranking API is a paid API for AI agents from acp-x402-scriptmasterlabs.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-13).

Returns a ranked list of DeFi protocols by Total Value Locked (TVL), paid per-call in USDC via x402 protocol on Base.

## Facts

- Endpoint: GET https://acp-x402-scriptmasterlabs.onrender.com/x402/defi-tvl-ranking?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scriptmasterlabs-defi-tvl-ranking-api-6b8cf0ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oBm2Eva-akm55_8_12vD1

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability scriptmasterlabs-defi-tvl-ranking-api-6b8cf0ab
```

Example prompt: Can you pull the current DeFi TVL ranking so I can see which protocols are leading by total value locked right now?

## When to prefer this

Choose this endpoint when you need a quick, low-cost ($0.001 USDC) ranked snapshot of DeFi protocols by TVL, paid permissionlessly via x402 on Base. Prefer it in agentic workflows where micropayment-settled crypto data APIs are required without API key management. Less suitable if you need detailed per-protocol breakdowns, historical TVL trends, or guaranteed real-time freshness.

## Known failure modes

- Payment not settled — x402 payment in USDC on Base required before data is returned
- Empty or minimal response schema — actual field names and structure not documented, agent must handle unknown JSON shape
- Service may be unavailable on free-tier Render hosting during cold starts or inactivity
- Rate limiting or payment failure if USDC balance is insufficient
- Data freshness unknown — TVL figures may be cached or delayed

## How this service works

Pay-per-call crypto, RWA, federal, SEC, and compliance APIs. Settled in USDC on Base via x402. Hyphen routes only (e.g. /x402/rwa-aggregates, /x402/gas-tracker).

## Output

A ranked list of DeFi protocols ordered by Total Value Locked (TVL), including protocol names and their respective TVL figures, enabling comparison and analysis of DeFi ecosystem size and dominance.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scriptmasterlabs-defi-tvl-ranking-api-6b8cf0ab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from acp-x402-scriptmasterlabs.onrender.com](https://www.zero.xyz/host/acp-x402-scriptmasterlabs.onrender.com/llms.txt)
