# x4o2 StonkFun On-chain Stats

> x4o2 StonkFun On-chain Stats is a paid API for AI agents from stonk.x4o2.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-31).

Returns protocol coverage, pool counts, token metrics, and data ingestion freshness for the StonkFun on-chain platform

## Facts

- Endpoint: GET https://stonk.x4o2.com/v1/stats?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x4o2-stonkfun-on-chain-stats-d9a1b5c4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cOmV5jQkYV4rvRREZkeCA

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 x4o2-stonkfun-on-chain-stats-d9a1b5c4
```

Example prompt: Pull the current StonkFun protocol stats for me — I want to see how many pools and tokens are tracked, whether the data is fresh, and if there are any indexing gaps right now.

## When to prefer this

Use this endpoint when you need a high-level health check or summary overview of the StonkFun protocol — including how many pools and tokens are indexed, whether the ingestion pipeline is current, and whether there are any gaps in on-chain data coverage. Prefer this over token- or pool-specific endpoints when you need platform-wide metrics rather than data on a specific asset or market.

## Known failure modes

- Payment required (402) if x402 micropayment not included
- Stale or partial data when indexer is lagging (partial flag set to true)
- Null fields when full scan has not yet completed (gapAt populated)
- Network timeout if upstream on-chain node is slow
- Empty pools array if no pools have been indexed yet

## How this service works

Protocol coverage, pool counts and ingestion freshness

## Output

Returns a data object containing pool array, token count, pairings count, platform configs list, pending transaction count, last chain timestamp, last receipt timestamp, gap timestamp, full scan timestamp, partial flag, and metadata including data age in milliseconds, source, commitment level, observed timestamp, discovery timestamp, and freshness in seconds.

## 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"
    },
    "pathParams": {
     "type": "object",
     "required": [],
     "properties": {}
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": [
      "object",
      "null"
     ],
     "properties": {
      "data": {
       "type": [
        "object",
        "null"
       ],
       "properties": {
        "gapAt": {},
        "pools": {
         "type": [
          "array",
          "null"
         ],
         "items": {
          "type": [
           "object",
           "null"
          ]
         }
        },
        "tokens": {
         "type": [
          "number",
          "null"
         ]
        },
        "partial": {
         "type": [
          "boolean",
          "null"
         ]
        },
        "pairings": {
         "type": [
          "number",
          "null"
         ]
        },
        "fullScanAt": {},
        "revenueUsd": {},
        "lastChainAt": {
         "type": [
          "string",
          "null"
         ]
        },
        "totalHolders": {},
        "lastReceiptAt": {
         "type": [
          "string",
          "null"
         ]
        },
        "platformConfigs": {
         "type": [
          "array",
          "null"
         ],
         "items": {
          "type": [
           "string",
           "null"
          ]
         }
        },
        "pendingTransactions": {
         "type": [
          "number",
          "null"
         ]
        }
       }
      },
      "meta": {
       "type": [
        "object",
        "null"
       ],
       "properties": {
        "ageMs": {
         "type": [
          "number",
          "null"
         ]
        },
        "source": {
         "type": [
          "string",
          "null"
         ]
        },
        "partial": {
         "type": [
          "boolean",
          "null"
         ]
        },
        "commitment": {
         "type":
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x4o2-stonkfun-on-chain-stats-d9a1b5c4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stonk.x4o2.com](https://www.zero.xyz/host/stonk.x4o2.com/llms.txt)
