# ScriptMasterLabs DeFi Protocol TVL Lookup

> ScriptMasterLabs DeFi Protocol TVL Lookup 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-11).

Returns the Total Value Locked (TVL) for a specified DeFi protocol, paid per-call in USDC via x402.

## Facts

- Endpoint: GET https://acp-x402-scriptmasterlabs.onrender.com/x402/defi-protocol-tvl?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scriptmasterlabs-defi-protocol-tvl-lookup-385840ff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_G6qkuNKXTNzB35cyFY3kc

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-protocol-tvl-lookup-385840ff
```

Example prompt: What's the current total value locked for Aave? Pull it from ScriptMasterLabs' DeFi TVL endpoint.

## When to prefer this

Use this endpoint when you need quick, pay-per-call TVL lookups for a named DeFi protocol without committing to a subscription. It is ideal for agents that need occasional or on-demand DeFi TVL data settled in USDC on Base via the x402 protocol, particularly when cost-per-call pricing at $0.001 USDC is acceptable. Prefer this over subscription APIs when usage is sporadic or when crypto-native payment rails are required.

## Known failure modes

- Unknown or misspelled protocol name returns empty or error response
- Protocol not tracked by the data source returns null TVL
- x402 payment failure results in 402 status with no data returned
- Rate limiting or server unavailability on the Render-hosted service
- Stale or delayed TVL data if upstream aggregator is lagging

## 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 the total value locked (TVL) for the specified DeFi protocol, typically including the protocol name and its current TVL expressed in USD or a relevant denomination. The response schema is minimal and the example is sparse, so exact field names should be confirmed at runtime.

## Request schema (JSON Schema)

```json
{
 "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": {
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "protocol": {
       "type": "string",
       "example": "aave"
      }
     }
    }
   }
  },
  "output": {
   "properties": {
    "example": {}
   }
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scriptmasterlabs-defi-protocol-tvl-lookup-385840ff/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)
