# TokenGuard Protocol Detail API

> TokenGuard Protocol Detail API is a paid API for AI agents from eltociear-tokenguard.hf.space, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Returns detailed on-chain and market data for a specific DeFi protocol, including analytics, safety metrics, and ecosystem intelligence.

## Facts

- Endpoint: POST https://eltociear-tokenguard.hf.space/protocol_detail
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tokenguard-protocol-detail-api-cc8d7747
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WNF7dvTSnPy8Tj4PRWYOj

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 tokenguard-protocol-detail-api-cc8d7747 -d '<json body>'
```

Example prompt: Pull up the full protocol details for Uniswap on TokenGuard — I want to see its DeFi analytics, market data, and any safety signals available.

## When to prefer this

Use this endpoint when you need rich, consolidated protocol-level DeFi data for a named protocol in a single call. Prefer it over generic blockchain explorers when you need aggregated analytics, safety scoring, and market data combined. Best suited for AI agents doing protocol research, risk assessment, or DeFi portfolio intelligence where per-protocol detail depth matters more than breadth.

## Known failure modes

- Protocol not found: returns empty or error if the protocol identifier is unknown
- Payment failure: x402 micropayment of $0.01 USDC not processed, request rejected
- Invalid input: missing or malformed protocol identifier returns error
- Service unavailability: Hugging Face Space may be sleeping or rate-limited
- Incomplete data: some protocols may have sparse or missing fields in the response

## How this service works

protocol detail data for AI agents.

## Output

A JSON object containing detailed information about the requested DeFi protocol, which may include market data, on-chain analytics, ecosystem intelligence, safety metrics, and protocol-specific statistics as available from the TokenGuard data platform.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [],
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tokenguard-protocol-detail-api-cc8d7747/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from eltociear-tokenguard.hf.space](https://www.zero.xyz/host/eltociear-tokenguard.hf.space/llms.txt)
