# ScriptMasterLabs DeFi Chains TVL API

> ScriptMasterLabs DeFi Chains TVL 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 total value locked (TVL) data across DeFi chains, paid per-call in USDC via the x402 protocol

## Facts

- Endpoint: GET https://acp-x402-scriptmasterlabs.onrender.com/x402/defi-chains-tvl?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-chains-tvl-api-38dc3852
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MW-BasqGkZHwcBk85s27T

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-chains-tvl-api-38dc3852
```

Example prompt: Can you pull the current total value locked across all DeFi chains so I can see which networks have the most capital deployed right now?

## When to prefer this

Choose this endpoint when you need pay-per-call DeFi TVL data without a subscription, and you are already operating in an x402/USDC micropayment workflow on Base. It is well-suited for agents that need on-demand, low-cost TVL lookups across multiple DeFi chains without committing to a recurring API plan. Prefer DeFiLlama's free public API if you need no-cost access or richer schema documentation.

## Known failure modes

- Payment not settled — 402 response if USDC payment on Base is not properly attached
- Empty or minimal response if no chain data is available at query time
- Schema mismatch — input schema is loosely typed; malformed properties parameter may return errors or empty results
- Service unavailability — hosted on Render free tier, may have cold-start delays or downtime
- Rate limiting or quota errors if the underlying data provider is throttled

## 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

Returns a structured payload containing total value locked (TVL) data aggregated by DeFi chain, including individual chain TVL figures and potentially percentage share or rank. The response example is currently sparse, so exact field names may vary.

## 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-chains-tvl-api-38dc3852/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)
