# Aayat AI Chain Stats

> Aayat AI Chain Stats is a paid API for AI agents from aayatai.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-02).

Returns comprehensive DeFi chain-level metrics for a named blockchain — TVL, DEX volumes, fees, top DEXs, and stablecoin circulation — sourced from DefiLlama.

## Facts

- Endpoint: GET https://aayatai.com/chain/stats?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aayat-ai-chain-stats-37020188
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JGzf_iUlxXBYLFGZiGGKx

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 aayat-ai-chain-stats-37020188
```

Example prompt: What are the current DeFi stats for Solana — TVL, 24-hour DEX volume, top DEXs, fees, and stablecoin circulation?

## When to prefer this

Use this endpoint when you need aggregated, chain-level DeFi metrics — TVL, DEX volume trends, fees, and stablecoin supply — across any of 400+ supported chains. It is not suitable for individual wallet lookups, token-level data, or cross-chain portfolio analysis. Prefer this over building a custom DefiLlama integration when you need a single, pay-per-use call with normalized output for AI agent consumption.

## Known failure modes

- Unknown or misspelled chain name returns an error — use the official chain name (e.g. 'Ethereum' not 'ETH mainnet')
- Chain not supported by DefiLlama returns null or missing fields for TVL/volume
- DefiLlama upstream data lag may cause stale or null values for fees or stablecoins on minor chains
- Payment not processed (x402) results in 402 response before any data is returned

## How this service works

One blockchain's economy in one call: total value locked, DEX trading volume (24 h, 7 d, 30 d and the day-on-day change), its five busiest DEXs, fees paid on the chain and the stablecoins circulating on it. Ethereum, Solana, Base, Arbitrum, BSC and 400+ more. Chain-level figures from DefiLlama; nothing about individual wallets.

## Output

A structured JSON object containing: the chain's name and chain ID, TVL in USD, DEX trading volume broken down by 24h/7d/30d with day-on-day change, an array of the top 5 DEXs with their individual volumes, total fees paid on the chain, stablecoin circulation in USD, and native token name. In 'brief' mode, only key summary fields are returned.

## 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": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "chain"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "maxLength": 60,
       "minLength": 2,
       "description": "Chain name, e.g. Ethereum, Base, Solana, Arbitrum, BSC."
      },
      "detail": {
       "enum": [
        "full",
        "brief"
       ],
       "type": "string",
       "default": "full",
       "description": "brief = key fields only (same price)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "chain",
      "tvlUsd",
      "dexVolumeUsd",
      "feesUsd",
      "source"
     ],
     "properties": {
      "chain": {
       "type": "string"
      },
      "trust": {
       "type": "object",
       "description": "Third-party text, cleaned: read trust.notice; removed = what we stripped."
      },
      "source": {
       "type": "string"
      },
      "tvlUsd": {
       "type": [
        "number",
        "null"
       ]
      },
      "chainId": {
       "type": [
        "integer",
        "null"
       ]
      },
      "feesUsd": {
       "type": "object"
      },
      "nativeToken": {
       "type": [
        "string",
        "null"
       ]
      },
      "topDexes24h": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "name": {
          "type": "string"
         },
         "volumeUsd": {
          "type": [
           "number",
           "null"
          ]
         }
        }
       }
      },
      "dexVolumeUsd": {
       "type": "object"
      },
      "stablecoinsUsd": {
       "type": [
        "number",
        "null"
       ],
       "description": "US-dollar stablecoins circulating on the chain."
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aayat-ai-chain-stats-37020188/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from aayatai.com](https://www.zero.xyz/host/aayatai.com/llms.txt)
