# TokenGuard DeFi Bridge API

> TokenGuard DeFi Bridge 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-15).

Provides AI agents with crypto/DeFi intelligence including ERC-20 token safety analysis, market data, DeFi analytics, and on-chain intelligence via a micropayment-gated bridge endpoint.

## Facts

- Endpoint: POST https://eltociear-tokenguard.hf.space/bridge
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tokenguard-defi-bridge-api-1e408668
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FsKAuCgGy9cSE39C9Y99B

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-defi-bridge-api-1e408668 -d '<json body>'
```

Example prompt: Can you check if the ERC-20 token at contract address 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 on Ethereum is safe — look up its token safety score, liquidity, and any on-chain risk signals using TokenGuard?

## When to prefer this

Choose TokenGuard when you need broad crypto/DeFi intelligence across multiple data types (safety, market, on-chain) from a single micropayment-gated endpoint rather than stitching together multiple specialized APIs. Ideal for AI agents that need pay-per-call DeFi data without subscription overhead, especially when ERC-20 token safety assessment is a primary concern.

## Known failure modes

- Insufficient USDC payment — x402 payment of $0.01 not properly included, returning payment required error
- Invalid contract address format — malformed ERC-20 address returns validation error
- Unsupported blockchain network — querying a chain not covered by the 65 routes
- Unknown token — contract address not indexed returns empty or not-found response
- Rate limiting — too many rapid calls may trigger throttling
- Hugging Face Space cold start — Space may be sleeping, causing initial latency spike or timeout

## How this service works

bridge data for AI agents.

## Output

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

## 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-defi-bridge-api-1e408668/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)
