# TokenGuard Lightning Crypto/DeFi Data API

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

Provides on-demand crypto and DeFi intelligence including ERC-20 token safety checks, market data, DeFi analytics, and on-chain data for AI agents via micropayment-gated POST endpoint.

## Facts

- Endpoint: POST https://eltociear-tokenguard.hf.space/lightning
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tokenguard-lightning-crypto-defi-data-api-d9eb74e6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qsuepN2ezf-1qjn7RUC_H

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-lightning-crypto-defi-data-api-d9eb74e6 -d '<json body>'
```

Example prompt: Can you check whether the ERC-20 token at contract address 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum is safe to buy — I want a risk assessment and any red flags before I invest.

## When to prefer this

Choose this endpoint when you need fast, per-call crypto/DeFi intelligence without a subscription — especially for ERC-20 token safety checks, rug pull detection, or DeFi analytics paid via x402 USDC micropayments on Base. Ideal for AI agents making autonomous token evaluation decisions at low cost ($0.01/call).

## Known failure modes

- Invalid or unrecognized contract address returns an error or empty result
- Unsupported blockchain network yields no data
- Micropayment not fulfilled causes 402 Payment Required response
- Token not indexed or too new may return incomplete data
- Rate limiting or HuggingFace Space downtime causes 503 or timeout

## How this service works

lightning data for AI agents.

## Output

Returns a JSON object containing requested crypto/DeFi data such as token safety scores, risk flags, market prices, liquidity metrics, on-chain analytics, or DeFi protocol statistics depending on the query type submitted.

## 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-lightning-crypto-defi-data-api-d9eb74e6/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)
