# x4o2 StonkFun On-chain Market Pools Lookup

> x4o2 StonkFun On-chain Market Pools Lookup 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 paginated on-chain liquidity pool listings filtered by token mint, quote mint, pool program kind, and lifecycle stage on Solana

## Facts

- Endpoint: GET https://stonk.x4o2.com/v1/markets?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-market-pools-lookup-a52ee03b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lkVqEHwdjBYeFKzp3L2Tq

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-market-pools-lookup-a52ee03b
```

Example prompt: Show me all graduated LaunchLab pools on StonkFun for the Solana token mint So11111111111111111111111111111111111111112, using a page size of 20.

## When to prefer this

Use this endpoint when you need to discover or enumerate Solana liquidity pools on the StonkFun/x4o2 platform filtered by exact token mint, quote mint, pool program type, or lifecycle stage. It is ideal for agents doing on-chain market discovery, lifecycle tracking (bonding vs graduated), or building pool directories. Prefer this over generic DEX aggregators when you specifically need StonkFun on-chain data with freshness metadata and Solana commitment signals.

## Known failure modes

- Missing required parameters for candles (pool and quoteMint must both be provided)
- Invalid mint address format returns empty results or error
- Offset exceeding 250000 rejected by schema validation
- No pools found for the given filter combination returns empty items array
- Rate limit or payment failure (x402 micropayment not processed) blocks the response
- Lifecycle or kind enum value typo causes 400 bad request

## How this service works

Pools by exact token/quote and lifecycle

## Output

A paginated JSON object containing an array of on-chain pool records matching the filters, along with total count, page limit and offset, a partial-result flag, and metadata including data age in milliseconds, observed-at timestamp, Solana commitment level, and discovery timestamp.

## 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": {
      "kind": {
       "enum": [
        "launchlab",
        "cpmm",
        "amm-v4"
       ],
       "type": "string",
       "description": "Pool program"
      },
      "mint": {
       "type": "string",
       "description": "Exact Solana token mint"
      },
      "pool": {
       "type": "string",
       "description": "Exact pool address; required for candles"
      },
      "limit": {
       "type": "integer",
       "default": 20,
       "maximum": 100,
       "minimum": 1,
       "description": "Page size"
      },
      "offset": {
       "type": "integer",
       "default": 0,
       "maximum": 250000,
       "minimum": 0,
       "description": "Offset"
      },
      "lifecycle": {
       "enum": [
        "bonding",
        "migrating",
        "graduated"
       ],
       "type": "string",
       "description": "Lifecycle"
      },
      "quoteMint": {
       "type": "string",
       "description": "Exact quote mint; required for ranking or candles"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": [
      "object",
      "null"
     ],
     "properties": {
      "data": {
       "type": [
        "object",
        "null"
       ],
       "properties": {
        "items": {
         "type": [
          "array",
          "null"
         ],
         "items": {
          "type": [
           "object",
           "null"
          ]
         }
        },
        "limit": {
         "type": [
          "number",
          "null"
         ]
        },
        "total": {
         "type": [
          "number",
          "null"
         ]
        },
        "offset": {
         "type": [
          "number",
          "null"
         ]
        },
        "partial": {
         "type": [
          "boolean",
          "null"
         ]
  
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x4o2-stonkfun-on-chain-market-pools-lookup-a52ee03b/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)
