81trust / 100

Chain Stats

by Aayat AI in Onchain & crypto

x402 APIPassing, checked 3 h ago

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.

GET https://aayatai.com/chain/stats

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
55 ms typical, 55 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://aayatai.com/chain/stats?chain=Base"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Faayatai.com%2Fchain%2Fstats
const res = await pay("https://aayatai.com/chain/stats?chain=Base");
console.log(await res.json());

Example input

{
  "chain": "Base"
}

Example output

{
  "chain": "Base",
  "chainId": 8453,
  "dexVolumeUsd": {
    "change1dPct": 10.39,
    "last24h": 1365912253,
    "last30d": 27799532582,
    "last7d": 6813316151
  },
  "feesUsd": {
    "last24h": 2100000,
    "last30d": 61000000
  },
  "nativeToken": null,
  "source": "DefiLlama",
  "stablecoinsUsd": 5058940425,
  "topDexes24h": [
    {
      "name": "Aerodrome Slipstream",
      "volumeUsd": 659297523
    },
    {
      "name": "Uniswap V3",
      "volumeUsd": 364493611
    }
  ],
  "tvlUsd": 4300000000
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed40255 ms$0.003