# SLAMai Trending Tokens

> SLAMai Trending Tokens is a paid API for AI agents from api.slamai.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Returns trending tokens across the blockchain ranked by growth in active wallets over a specified activity window, with optional category filtering.

## Facts

- Endpoint: POST https://api.slamai.dev/chain/tokens/trending
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-slamai-dev-edcde4ae
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LXpPsSyfYpotSjcgoNC6B

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 api-slamai-dev-edcde4ae -d '<json body>'
```

Example prompt: What tokens are trending on-chain over the last 24 hours? Show me the top results in the DeFi category, ranked by growth in active wallets.

## When to prefer this

Use this endpoint when you need to identify which tokens are gaining momentum across the blockchain as measured by wallet activity growth — ideal for discovering emerging trends, hot new tokens, or category-specific surges. Prefer this over price-based trending endpoints when you want social/adoption signal rather than purely price-driven ranking.

## Known failure modes

- Invalid or unsupported activity window value returns an error
- Invalid category filter returns empty results or error
- Payment failure (x402) returns 402 status if USDC payment is not processed
- Missing required fields in POST body returns 400 bad request
- Network or service unavailability returns 5xx error

## How this service works

Returns trending tokens across the entire blockchain for a specified activity window and optional category.
The size of the increase in active wallets over the activity window determines the token's trending rank.

## Output

A ranked list of trending tokens on the blockchain, ordered by the size of increase in active wallets during the specified activity window. Each entry includes token identifiers and ranking signal derived from wallet activity growth, optionally filtered by category.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "blockchain"
 ],
 "properties": {
  "num": {
   "type": "integer",
   "description": "The maximum number of tokens to return. Maximum: 250."
  },
  "category": {
   "type": "string",
   "description": "Filters to a specific subset of tokens. Currently only 'virtuals' is supported on Base."
  },
  "blockchain": {
   "type": "string",
   "description": "The blockchain name."
  },
  "estimate_cost": {
   "type": "boolean",
   "description": "When true, returns only the SLAM token cost estimation."
  },
  "activity_window": {
   "type": "string",
   "description": "The length of time over which activity is measured."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "status": 200,
 "content": {
  "application/json": {
   "schema": {
    "oneOf": [
     {
      "type": "object",
      "properties": {
       "utc": {
        "type": "string",
        "description": "The UTC timestamp of the block used for the response (ISO 8601 format)"
       },
       "slam": {
        "type": "number",
        "format": "double",
        "description": "The SLAM token cost for this API call"
       },
       "block": {
        "type": "integer",
        "format": "int32",
        "description": "The block number at which this data snapshot was generated"
       },
       "chain": {
        "type": "string",
        "description": "The name of the blockchain network (e.g., 'base')"
       },
       "tokens": {
        "type": "array",
        "items": {
         "type": "object",
         "properties": {
          "fdv": {
           "type": "number",
           "format": "double",
           "description": "The token’s fully diluted valuation in USD"
          },
          "usd": {
           "type": "object",
           "properties": {
            "cur": {
             "type": "number",
             "format": "double",
             "description": "The current token price in USD"
            },
            "prev": {
             "type": "array",
             "items": {
              "type": "object",
              "properties": {
               "change": {
                "type": "string",
                "description": "Price change percentage."
               },
               "minutes": {
                "type": "integer",
                "format": "int32",
                "description": "Lookback period in minutes."
               }
              }
             },
             "description": "Previous price data for comparison"
            }
           }
          },
          "name": {
           "type": "string",
           "description": "The full name of the token"
          },
          "rank": {
           "type": "integer",
           "format": "int32",
           "description": "The token’s trending rank, determined by change in active wallets."
          },
          "symbol": {
           "type": "string",
           "description": "The token’s symbol (e.g., 'SLAM')"
          },
          "address": {
           "type": "string",
           "description": "The token contract address"
          },
          "liquidity": {
           "type": "number",
           "format": "double",
           "description": "The liqui
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-slamai-dev-edcde4ae/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.slamai.dev](https://www.zero.xyz/host/api.slamai.dev/llms.txt)
