> ## Documentation Index
> Fetch the complete documentation index at: https://docs.metastreams.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Search

> Returns the tokens and wallets that match a search text: a symbol, a name, an address or a wallet name.

Returns the tokens and wallets that match a search text. Each result includes a `kind`: `spotToken` or `spotWallet`.

## Query

`q` can be a token symbol or name, a token, pool or wallet address, or a wallet name. Leading and trailing spaces are removed, and an empty `q` returns `400 VALIDATION_ERROR`.

| Search text | Results |
| - | - |
| A symbol or name, such as `bonk` | Tokens ranked by relevance. A wallet whose name equals the text is also returned, up to 3 of them, after the first token. |
| A name that starts with `@`, such as `@ansem` | Wallets whose name starts with the text after the `@`. No tokens. |
| A token or pool address | That token, on each chain where it is found |
| A wallet address | That wallet on each chain where it has a position |

A wallet name is a handle, a display name or a label from one of the wallet's `identities`. A text search does not return tokens with less than $1,000 of liquidity or more than $100 billion of market cap. An address search returns the token at any size.

## Filters

* `kind` limits results to `spotToken` or `spotWallet`. With `kind=spotWallet`, a text returns wallets whose name starts with it, as with `@`. With `kind=spotToken`, a text that starts with `@` searches tokens.
* `chain` takes one [chain slug](https://docs.metastreams.io/concepts/chains.md), and `chains` a comma-separated list. When both are sent, the results cover every chain listed in either. Omit both to search every chain.
* `graduated=true` returns only tokens that have left their launchpad, and `graduated=false` only tokens that have not, including tokens that never launched on one. It requires `kind=spotToken`.
* `sortBy` orders the results. The default is `relevance`. `volume24h`, `marketCap`, `liquidity` and `createdAt` order every matching token by that value and require `kind=spotToken`. `sortDirection` is `desc` by default, or `asc`.

## Response

The response is a list, not a page, and has no cursor. `limit` sets the number of results. The default is 10, and out-of-range values are clamped to 1–20. The list can be shorter than `limit`. A wallet address can return more than `limit` results, one per chain.

* A token result is the full [token object](https://docs.metastreams.io/reference/rest/token-details.md) with `"kind": "spotToken"`.
* A wallet result contains `kind`, `chain`, `address` and `identities`, in the same shape as a [holder's](https://docs.metastreams.io/reference/rest/token-holders.md#response) `identities`. `identities` is empty when no source names the wallet.

Wallets returned beside tokens are best effort. When their lookup is slow, the response is sent without them, or with wallets whose `identities` is empty.

An unknown text returns an empty list, not a `404`. Each request costs one [credit](https://docs.metastreams.io/concepts/errors.md#credits).

## Errors

| Code | When |
| - | - |
| `UNSUPPORTED_CHAIN` | A slug in `chain` or `chains` is not supported |
| `VALIDATION_ERROR` | A missing or empty `q`; `graduated`, or a `sortBy` other than `relevance`, without `kind=spotToken`; an unknown `kind`, `sortBy` or `sortDirection`; or an unknown parameter |
| `SERVICE_UNAVAILABLE` | The server is handling too many searches. Retry after a short delay. |

```bash cURL theme={null}
curl "https://api.metastreams.io/v1/search?q=bonk&chains=solana&limit=5" \
  -H "Authorization: Bearer $API_KEY"
```

```bash Wallet names theme={null}
curl "https://api.metastreams.io/v1/search?q=@ansem&kind=spotWallet" \
  -H "Authorization: Bearer $API_KEY"
```

```bash By volume theme={null}
curl "https://api.metastreams.io/v1/search?q=pepe&kind=spotToken&sortBy=volume24h" \
  -H "Authorization: Bearer $API_KEY"
```

```typescript Node.js theme={null}
const url = new URL("https://api.metastreams.io/v1/search");
url.searchParams.set("q", "bonk");
url.searchParams.set("chains", "solana");
url.searchParams.set("limit", "5");

const response = await fetch(url, {
  headers: { Authorization: `Bearer ${process.env.API_KEY}` },
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const results = await response.json();
const tokens = results.filter((result) => result.kind === "spotToken");
```

```rust Rust theme={null}
use serde_json::Value;

let results: Vec<Value> = reqwest::Client::new()
    .get("https://api.metastreams.io/v1/search")
    .query(&[("q", "bonk"), ("chains", "solana"), ("limit", "5")])
    .bearer_auth(std::env::var("API_KEY")?)
    .send()
    .await?
    .error_for_status()?
    .json()
    .await?;
let tokens: Vec<&Value> = results.iter().filter(|result| result["kind"] == "spotToken").collect();
```

```json Results (shortened) theme={null}
[
  {
    "kind": "spotToken",
    "chain": "solana",
    "address": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
    "name": "Bonk",
    "symbol": "Bonk",
    "decimals": 5,
    "price": { "native": "0.000000121", "usd": "0.0000216" },
    "marketCap": { "native": "10741962.1", "usd": "1917440000" },
    "liquidity": { "native": "51820.4", "usd": "9250000" },
    "updatedAt": 1789632012345
  },
  {
    "kind": "spotWallet",
    "chain": "solana",
    "address": "7YttLkHDoNj9wyDur5pM1ejNaAvT9X4eqaYcHQqtj2G5",
    "identities": [
      {
        "source": "gmgn",
        "displayName": "Bonk Whale",
        "handle": "bonkwhale",
        "twitter": "bonkwhale",
        "telegram": null,
        "farcaster": null,
        "avatar": null
      }
    ]
  }
]
```

```json No match theme={null}
[]
```


## OpenAPI

````yaml specs/openapi.json GET /v1/search
openapi: 3.1.0
info:
  title: Metastreams API
  description: >-
    The Metastreams market-data API. Amounts are decimal strings, timestamps are
    Unix milliseconds, and every field name is camelCase.
  license:
    name: Proprietary
  version: 1.0.0
servers:
  - url: https://{host}
    variables:
      host:
        default: api.metastreams.io
        description: API host.
security:
  - bearerKey: []
paths:
  /v1/search:
    get:
      tags:
        - search
      summary: Assets matching a text query.
      description: >-
        Token hits rank by relevance. A `sortBy` attribute orders the whole
        candidate set instead.

        A text finds a token by its symbol or name. It finds no token whose
        liquidity is under

        1,000 USD or whose market cap is over 100 billion USD. A pasted token or
        pool address finds

        that token alone, at any size.


        A text also finds a wallet by an identity name: a handle, a display name
        or a label. A text

        that equals a name adds up to three wallets after the first token. A
        text that opens with

        `@` answers the wallets whose name starts with it, and no token. So does
        `kind=spotWallet`.

        `kind=spotToken` searches tokens alone, even when the text opens with
        `@`.


        A pasted address that is no token answers its wallet on each chain where
        it has a position.

        `limit` does not cut these wallets, so they can exceed it.
      operationId: asset_search
      parameters:
        - name: q
          in: query
          description: >-
            Search text: a symbol, a name, a pasted token, pool or wallet
            address, or a wallet

            identity name. A leading `@` searches wallet names alone, unless
            `kind=spotToken`.
          required: true
          schema:
            type: string
        - name: kind
          in: query
          description: Scope hits to one asset kind. Omit to search every kind.
          required: false
          schema:
            $ref: '#/components/schemas/SearchKind'
          example: spotToken
        - name: chain
          in: query
          description: Scope hits to one chain. Omit to search every served chain.
          required: false
          schema:
            $ref: '#/components/schemas/SpotChain'
          example: bsc
        - name: chains
          in: query
          description: >-
            Scope hits to these chains, CSV of the chain slugs. Omit to search
            every served

            chain. Combined with `chain` when both are set.
          required: false
          schema:
            type: string
          example: robinhood,bsc
        - name: limit
          in: query
          description: >-
            Hits returned, clamped to 1-20; 10 when absent. The wallets of a
            pasted address can

            exceed it.
          required: false
          schema:
            type: integer
            format: int32
            default: 10
            maximum: 20
            minimum: 1
        - name: graduated
          in: query
          description: >-
            Scope hits to tokens that have left their launchpad (`true`) or have
            not (`false`).

            `false` also admits tokens that never launched through one. Needs
            `kind=spotToken`.
          required: false
          schema:
            type: boolean
        - name: sortBy
          in: query
          description: >-
            Order hits by this attribute over the whole candidate set, instead
            of by relevance.

            An attribute other than `relevance` needs `kind=spotToken`.
          required: false
          schema:
            $ref: '#/components/schemas/SearchSortField'
          example: volume24h
        - name: sortDirection
          in: query
          description: Direction for `sortBy`; `desc` when omitted.
          required: false
          schema:
            $ref: '#/components/schemas/SearchSortDirection'
      responses:
        '200':
          description: >-
            Matching assets, tagged by kind. Up to `limit`, 10 by default. The
            wallets of a pasted address can exceed `limit`.
          headers:
            X-Credits-Cost:
              schema:
                type: integer
              description: >-
                Credits charged for this request. Zero on any non-2xx. Sent on a
                metered tier only.
            X-Credits-Remaining:
              schema:
                type: integer
              description: Credit balance after this request. Sent on a metered tier only.
            X-RateLimit-Remaining:
              schema:
                type: integer
              description: >-
                Requests left in the bucket this request spent from. Not sent
                with a 401.
            X-Request-ID:
              schema:
                type: string
              description: >-
                This request's trace ID. Echoed from the request, or generated
                when it sent none.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/UiAssetSearchHit'
        '400':
          description: >-
            Blank text, an unsupported chain, a token filter or sort without
            `kind=spotToken`, or a malformed parameter.
          headers:
            X-Credits-Cost:
              schema:
                type: integer
              description: >-
                Credits charged for this request. Zero on any non-2xx. Sent on a
                metered tier only.
            X-Credits-Remaining:
              schema:
                type: integer
              description: Credit balance after this request. Sent on a metered tier only.
            X-RateLimit-Remaining:
              schema:
                type: integer
              description: >-
                Requests left in the bucket this request spent from. Not sent
                with a 401.
            X-Request-ID:
              schema:
                type: string
              description: >-
                This request's trace ID. Echoed from the request, or generated
                when it sent none.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '401':
          description: >-
            Missing or invalid credential: an API key, or a session token a key
            minted.
          headers:
            X-Credits-Cost:
              schema:
                type: integer
              description: >-
                Credits charged for this request. Zero on any non-2xx. Sent on a
                metered tier only.
            X-Credits-Remaining:
              schema:
                type: integer
              description: Credit balance after this request. Sent on a metered tier only.
            X-RateLimit-Remaining:
              schema:
                type: integer
              description: >-
                Requests left in the bucket this request spent from. Not sent
                with a 401.
            X-Request-ID:
              schema:
                type: string
              description: >-
                This request's trace ID. Echoed from the request, or generated
                when it sent none.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '402':
          description: >-
            The organization's credits this billing period reach its plan's
            limit.
          headers:
            X-Credits-Cost:
              schema:
                type: integer
              description: >-
                Credits charged for this request. Zero on any non-2xx. Sent on a
                metered tier only.
            X-Credits-Remaining:
              schema:
                type: integer
              description: Credit balance after this request. Sent on a metered tier only.
            X-RateLimit-Remaining:
              schema:
                type: integer
              description: >-
                Requests left in the bucket this request spent from. Not sent
                with a 401.
            X-Request-ID:
              schema:
                type: string
              description: >-
                This request's trace ID. Echoed from the request, or generated
                when it sent none.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '403':
          description: >-
            A key whose plan excludes this endpoint gets `FORBIDDEN`. A session
            token from an

            origin it does not name gets `ORIGIN_NOT_ALLOWED`.
          headers:
            X-Credits-Cost:
              schema:
                type: integer
              description: >-
                Credits charged for this request. Zero on any non-2xx. Sent on a
                metered tier only.
            X-Credits-Remaining:
              schema:
                type: integer
              description: Credit balance after this request. Sent on a metered tier only.
            X-RateLimit-Remaining:
              schema:
                type: integer
              description: >-
                Requests left in the bucket this request spent from. Not sent
                with a 401.
            X-Request-ID:
              schema:
                type: string
              description: >-
                This request's trace ID. Echoed from the request, or generated
                when it sent none.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Rate limit exceeded.
          headers:
            Retry-After:
              schema:
                type: integer
              description: Seconds to wait before retrying.
            X-Credits-Cost:
              schema:
                type: integer
              description: >-
                Credits charged for this request. Zero on any non-2xx. Sent on a
                metered tier only.
            X-Credits-Remaining:
              schema:
                type: integer
              description: Credit balance after this request. Sent on a metered tier only.
            X-RateLimit-Remaining:
              schema:
                type: integer
              description: >-
                Requests left in the bucket this request spent from. Not sent
                with a 401.
            X-Request-ID:
              schema:
                type: string
              description: >-
                This request's trace ID. Echoed from the request, or generated
                when it sent none.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '500':
          description: Unexpected server failure.
          headers:
            X-Credits-Cost:
              schema:
                type: integer
              description: >-
                Credits charged for this request. Zero on any non-2xx. Sent on a
                metered tier only.
            X-Credits-Remaining:
              schema:
                type: integer
              description: Credit balance after this request. Sent on a metered tier only.
            X-RateLimit-Remaining:
              schema:
                type: integer
              description: >-
                Requests left in the bucket this request spent from. Not sent
                with a 401.
            X-Request-ID:
              schema:
                type: string
              description: >-
                This request's trace ID. Echoed from the request, or generated
                when it sent none.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '503':
          description: Dependency down or maintenance.
          headers:
            X-Credits-Cost:
              schema:
                type: integer
              description: >-
                Credits charged for this request. Zero on any non-2xx. Sent on a
                metered tier only.
            X-Credits-Remaining:
              schema:
                type: integer
              description: Credit balance after this request. Sent on a metered tier only.
            X-RateLimit-Remaining:
              schema:
                type: integer
              description: >-
                Requests left in the bucket this request spent from. Not sent
                with a 401.
            X-Request-ID:
              schema:
                type: string
              description: >-
                This request's trace ID. Echoed from the request, or generated
                when it sent none.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
components:
  schemas:
    SearchKind:
      type: string
      description: >-
        The asset kinds a search can be scoped to. Metastreams is spot only, so
        both are spot kinds.
      enum:
        - spotToken
        - spotWallet
    SpotChain:
      type: string
      description: >-
        Chain slug. One spelling per chain, in paths and bodies alike. Only a
        chain with spot data is published.
      enum:
        - solana
        - bsc
        - robinhood
        - elysium
        - ethereum
        - base
    SearchSortField:
      type: string
      description: Sort field for search results.
      enum:
        - relevance
        - volume24h
        - marketCap
        - liquidity
        - createdAt
    SearchSortDirection:
      type: string
      description: Sort direction.
      enum:
        - asc
        - desc
    UiAssetSearchHit:
      oneOf:
        - allOf:
            - $ref: '#/components/schemas/UiSpotToken'
              description: 'A spot token: the object `GET /v1/tokens` answers.'
            - type: object
              required:
                - kind
              properties:
                kind:
                  type: string
                  description: Which asset kind this hit is.
                  enum:
                    - spotToken
          description: 'A spot token: the object `GET /v1/tokens` answers.'
        - allOf:
            - $ref: '#/components/schemas/UiSpotSearchWallet'
              description: A wallet.
            - type: object
              required:
                - kind
              properties:
                kind:
                  type: string
                  description: Which asset kind this hit is.
                  enum:
                    - spotWallet
          description: A wallet.
      description: >-
        One search hit. `GET /v1/search` answers an array of them. Tokens keep
        the order of

        `sortBy`, or of relevance when it is absent.
    ErrorEnvelope:
      type: object
      description: The complete error response body — every error is exactly this.
      required:
        - error
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
          description: The error.
    UiSpotToken:
      allOf:
        - $ref: '#/components/schemas/UiSpotPulseToken'
          description: The token's market state.
        - type: object
          required:
            - decimals
            - supply
          properties:
            decimals:
              type: integer
              format: int32
              description: Token decimals.
              minimum: 0
            supply:
              $ref: '#/components/schemas/Decimal'
              description: Total supply.
      description: >-
        One token: its market state, decimals and supply. `GET /v1/tokens`
        answers an array of them.
    UiSpotSearchWallet:
      type: object
      description: One wallet hit — the same identity a holders row carries.
      required:
        - chain
        - address
        - identities
      properties:
        address:
          type: string
          description: Wallet address on `chain`.
        chain:
          $ref: '#/components/schemas/SpotChain'
          description: Chain the wallet lives on.
        identities:
          type: array
          items:
            $ref: '#/components/schemas/UiWalletIdentity'
          description: >-
            Who the wallet is, one entry per source that named it; empty when no
            source did.
    ErrorDetail:
      type: object
      description: The `error` object inside the envelope.
      required:
        - code
        - message
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
          description: >-
            Stable, machine-readable. Clients switch on this, never on
            `message`.
        details:
          description: Optional; shape is fixed per code.
        message:
          type: string
          description: |-
            Human-readable, written for the integrating developer:
            `[What happened]. [What to do next — if actionable].`
    UiSpotPulseToken:
      type: object
      description: >-
        A token's market state, without its decimals and supply. A discovery
        column serves it.
      required:
        - chain
        - address
        - name
        - symbol
        - logo
        - creator
        - devFunding
        - createdAt
        - dexes
        - price
        - marketCap
        - liquidity
        - ath
        - stats
        - totals
        - holders
        - security
        - metadata
        - updatedAt
      properties:
        address:
          type: string
          description: Token address.
        anchorAddress:
          type:
            - string
            - 'null'
          description: >-
            Address of the quote asset in the token's deepest pool; `null` where
            it is not known.
        anchorSymbol:
          type:
            - string
            - 'null'
          description: Display symbol of that quote asset, on `anchorAddress`'s terms.
        annotations:
          type: array
          items:
            $ref: '#/components/schemas/TokenAnnotation'
          description: Platform-scoped quirk flags the launch carried.
          example:
            - kind: mayhem_mode
        ath:
          $ref: '#/components/schemas/UiTokenAth'
          description: All-time-high price and market cap.
        bondingCurvePct:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
              description: Bonding-curve completion, 0-100; `null` off launchpad curves.
          description: Bonding-curve completion, 0-100; `null` off launchpad curves.
        chain:
          $ref: '#/components/schemas/SpotChain'
          description: Chain the token trades on.
        createdAt:
          $ref: '#/components/schemas/UnixMilliseconds'
          description: Creation timestamp.
        creator:
          type: string
          description: Creator address.
        devFunding:
          $ref: '#/components/schemas/UiDevFunding'
          description: >-
            The creator wallet's first inbound funding. Always present; its
            status says whether the

            lookup has settled.
        dexes:
          type: array
          items:
            type: string
          description: Venues the token's top pools trade on, deepest first.
          example:
            - pumpswap
            - raydium
        fees:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/UiTokenTradeFees'
              description: >-
                What a trade costs here and where the tax goes; absent where no
                source states either.
          description: >-
            What a trade costs here and where the tax goes; absent where no
            source states either.
        graduatedAt:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/UnixMilliseconds'
              description: >-
                When the token graduated off its launchpad; `null` until
                graduation.
          description: When the token graduated off its launchpad; `null` until graduation.
        graduatedToDex:
          type:
            - string
            - 'null'
          description: Venue the graduation pool trades on; `null` until graduation.
        graduatedToPool:
          type:
            - string
            - 'null'
          description: Pool the launchpad pool migrated into; `null` until graduation.
        holders:
          $ref: '#/components/schemas/UiTokenHolders'
          description: Holder-risk breakdown.
        launchpad:
          type:
            - string
            - 'null'
          description: >-
            Launchpad the token launched through; `null` for non-launchpad
            tokens.
        liquidity:
          $ref: '#/components/schemas/UiMoney'
          description: Current liquidity.
        logo:
          $ref: '#/components/schemas/UiTokenLogo'
          description: Token artwork on the CDN.
        marketCap:
          $ref: '#/components/schemas/UiMoney'
          description: Current market cap.
        metadata:
          $ref: '#/components/schemas/UiTokenMetadata'
          description: Off-chain project metadata.
        name:
          type: string
          description: Token name.
        platforms:
          type: array
          items:
            $ref: '#/components/schemas/UiPlatform'
          description: The token's external-platform listings.
        pools:
          type: array
          items:
            $ref: '#/components/schemas/UiTokenPool'
          description: The token's top pools by liquidity, deepest first.
        price:
          $ref: '#/components/schemas/UiMoney'
          description: Current price.
        security:
          $ref: '#/components/schemas/UiTokenSecurity'
          description: On-chain security flags.
        stats:
          $ref: '#/components/schemas/UiTokenStats'
          description: Trailing-window stats, one key per rolling window.
        symbol:
          type: string
          description: Token symbol.
        totals:
          $ref: '#/components/schemas/UiTokenTotals'
          description: All-time volume and fee totals.
        updatedAt:
          $ref: '#/components/schemas/UnixMilliseconds'
          description: Last update timestamp.
    Decimal:
      type: string
      format: decimal
      description: An exact decimal, as a string.
      example: '123.456789'
    UiWalletIdentity:
      type: object
      description: One source's resolved profile for a trade's trader.
      required:
        - source
      properties:
        avatar:
          type:
            - string
            - 'null'
          description: >-
            CDN URL of the avatar to render; `null` until the picture is
            mirrored.
        displayName:
          type:
            - string
            - 'null'
          description: Human-readable name to render.
        farcaster:
          type:
            - string
            - 'null'
          description: The wallet's Farcaster handle, where the source links one.
        handle:
          type:
            - string
            - 'null'
          description: The wallet's handle on the source.
        source:
          type: string
          description: >-
            Who resolved a trader's identity. This is an open enumeration: keep
            a value you do not recognize.
          examples:
            - codex
            - fomo
            - pump
            - gmgn
            - axiom
            - arkham
            - registry
            - unknown
        telegram:
          type:
            - string
            - 'null'
          description: The wallet's Telegram handle, where the source links one.
        twitter:
          type:
            - string
            - 'null'
          description: The wallet's bare X handle, where the source links one.
    ErrorCode:
      type: string
      description: |-
        Every wire error code the API can return.

        Append-only: a new code is non-breaking, since clients fall back on the
        HTTP status for one they do not recognize, and a published code is never
        renamed or removed.
      enum:
        - UNAUTHORIZED
        - FORBIDDEN
        - VALIDATION_ERROR
        - UNSUPPORTED_CHAIN
        - NOT_FOUND
        - RATE_LIMITED
        - CREDITS_EXHAUSTED
        - INTERNAL_ERROR
        - SERVICE_UNAVAILABLE
        - RANGE_TOO_LARGE
        - INVALID_CREDENTIALS
        - ORIGIN_NOT_ALLOWED
        - NOT_ORG_MEMBER
        - MEMBERSHIP_INACTIVE
        - EMAIL_NOT_VERIFIED
        - EMAIL_TAKEN
        - ALREADY_MEMBER
        - INVITATION_ALREADY_SENT
        - INVITATION_ALREADY_ACCEPTED
        - LAST_ADMIN
        - CANNOT_REMOVE_SELF
        - KEY_LIMIT_REACHED
        - TOKEN_EXPIRED
        - PAYLOAD_TOO_LARGE
        - UNSUPPORTED_MEDIA_TYPE
        - IMAGE_TOO_LARGE
        - DEMO_LIMIT_REACHED
        - DEMO_BUILD_IN_FLIGHT
        - DEMO_CHALLENGE_FAILED
        - STAFF_ADMIN_REQUIRED
        - DEMO_PUBLISH_LIMIT_REACHED
    TokenAnnotation:
      oneOf:
        - type: object
          required:
            - kind
          properties:
            kind:
              type: string
              description: Which annotation this is.
              enum:
                - mayhem_mode
        - type: object
          required:
            - kind
          properties:
            kind:
              type: string
              description: Which annotation this is.
              enum:
                - cashback_coin
        - type: object
          required:
            - kind
          properties:
            kind:
              type: string
              description: Which annotation this is.
              enum:
                - anchor
        - type: object
          required:
            - kind
          properties:
            kind:
              type: string
              description: Which annotation this is.
              enum:
                - x_mode
        - type: object
          required:
            - kind
          properties:
            kind:
              type: string
              description: Which annotation this is.
              enum:
                - tax_token
        - type: object
          required:
            - kind
          properties:
            kind:
              type: string
              description: Which annotation this is.
              enum:
                - stock_quote
        - type: object
          required:
            - kind
          properties:
            kind:
              type: string
              description: Which annotation this is.
              enum:
                - stock_dividend
        - type: object
          required:
            - kind
          properties:
            kind:
              type: string
              description: Which annotation this is.
              enum:
                - ai_vault
        - type: object
          required:
            - kind
          properties:
            kind:
              type: string
              description: Which annotation this is.
              enum:
                - tax_vault
      description: A platform-scoped flag the launch carried, tagged by `kind`.
    UiTokenAth:
      type: object
      description: All-time-high price and market cap, each with the timestamp it was set.
      required:
        - price
        - priceAt
        - marketCap
        - marketCapAt
      properties:
        marketCap:
          $ref: '#/components/schemas/UiMoney'
          description: All-time-high market cap.
        marketCapAt:
          $ref: '#/components/schemas/UnixMilliseconds'
          description: When the all-time-high market cap was set.
        price:
          $ref: '#/components/schemas/UiMoney'
          description: All-time-high price.
        priceAt:
          $ref: '#/components/schemas/UnixMilliseconds'
          description: When the all-time-high price was set.
    UnixMilliseconds:
      type: integer
      format: int64
      description: An instant, as milliseconds since the Unix epoch.
    UiDevFunding:
      type: object
      description: >-
        The creator wallet's first inbound funding.


        `status` separates a lookup still in flight from one that settled on a
        wallet with no

        funder to name. Every other field is `null` in both cases.
      required:
        - status
      properties:
        address:
          type:
            - string
            - 'null'
          description: Funder wallet or exchange address.
        amount:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
              description: Amount the first funding moved, in the chain's native asset.
          description: Amount the first funding moved, in the chain's native asset.
        fundedAt:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/UnixMilliseconds'
              description: When the first funding executed.
          description: When the first funding executed.
        sourceKind:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/FundingSourceKind'
              description: What the funder is (exchange, bridge, wallet, …).
          description: What the funder is (exchange, bridge, wallet, …).
        sourceLabel:
          type:
            - string
            - 'null'
          description: Display label for the funder, e.g. an exchange name.
        status:
          $ref: '#/components/schemas/FundingStatus'
          description: Whether the lookup has settled.
    UiTokenTradeFees:
      type: object
      description: What a trade at this token's venue costs, and where its tax goes.
      properties:
        allocation:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/UiTokenFeeAllocation'
              description: Where the tax goes. Absent where the venue states nothing.
          description: Where the tax goes. Absent where the venue states nothing.
        breakdown:
          type: array
          items:
            $ref: '#/components/schemas/UiTokenFeeComponent'
          description: >-
            The layers the totals are made of. A layer nobody states is absent,
            never zero.
        rewards:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/UiTokenFeeRewards'
              description: >-
                What a wallet holds to qualify for a payout. Absent at a venue
                gating on nothing.
          description: >-
            What a wallet holds to qualify for a payout. Absent at a venue
            gating on nothing.
        totalBuyBps:
          type:
            - integer
            - 'null'
          format: int32
          description: >-
            What a buy costs in total, in basis points — every layer below,
            summed.
          example: 25
          minimum: 0
        totalSellBps:
          type:
            - integer
            - 'null'
          format: int32
          description: What a sell costs in total, in basis points; see `totalBuyBps`.
          example: 125
          minimum: 0
    UiTokenHolders:
      type: object
      description: Holder-risk breakdown. Every `*Pct` field is a percent.
      required:
        - count
        - top10Pct
        - devPct
        - sniperPct
        - sniperCount
        - bundlerPct
        - bundlerCount
        - insiderPct
        - insiderCount
        - phishingPct
        - phishingCount
        - freshWalletPct
        - freshWalletCount
        - fomoPct
        - fomoCount
        - proTraderPct
        - proTraderCount
        - fundedByCexPct
      properties:
        bundlerCount:
          type: integer
          format: int64
          description: Bundler wallet count.
          minimum: 0
        bundlerPct:
          $ref: '#/components/schemas/Decimal'
          description: Bundler wallets' share of supply.
        count:
          type: integer
          format: int64
          description: Current holder count.
          minimum: 0
        devPct:
          $ref: '#/components/schemas/Decimal'
          description: Dev wallet's share of supply.
        fomoCount:
          type: integer
          format: int64
          description: fomo.family wallet count.
          minimum: 0
        fomoPct:
          $ref: '#/components/schemas/Decimal'
          description: fomo.family wallets' share of supply.
        freshWalletCount:
          type: integer
          format: int64
          description: Fresh wallet count.
          minimum: 0
        freshWalletPct:
          $ref: '#/components/schemas/Decimal'
          description: Fresh-wallet share of supply.
        fundedByCexPct:
          $ref: '#/components/schemas/Decimal'
          description: >-
            Share of current holders a known exchange funded, 0-100. Counted
            against every holder,

            so a token with funding lookups still in flight reads low rather
            than absent.
        insiderCount:
          type: integer
          format: int64
          description: Insider wallet count.
          minimum: 0
        insiderPct:
          $ref: '#/components/schemas/Decimal'
          description: Insider wallets' share of supply.
        phishingCount:
          type: integer
          format: int64
          description: >-
            Wallets that ever traded this token while carrying a malicious-actor
            label. The count

            never falls, unlike `phishingPct`.
          minimum: 0
        phishingPct:
          $ref: '#/components/schemas/Decimal'
          description: Phishing wallets' share of supply.
        proTraderCount:
          type: integer
          format: int64
          description: Pro-trader wallet count.
          minimum: 0
        proTraderPct:
          $ref: '#/components/schemas/Decimal'
          description: Pro-trader wallets' share of supply.
        sniperCount:
          type: integer
          format: int64
          description: Sniper wallet count.
          minimum: 0
        sniperPct:
          $ref: '#/components/schemas/Decimal'
          description: Sniper wallets' share of supply.
        top10Pct:
          $ref: '#/components/schemas/Decimal'
          description: Share of supply held by the top 10 current holders.
    UiMoney:
      type: object
      description: >-
        A chain-denominated value with its USD equivalent. The enclosing object
        carries the

        `chain` that names `native`'s unit.
      required:
        - native
      properties:
        native:
          $ref: '#/components/schemas/Decimal'
          description: Value in the owning chain's gas asset.
        usd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
              description: Value in USD; `null` when the native asset is unpriced.
          description: Value in USD; `null` when the native asset is unpriced.
    UiTokenLogo:
      type: object
      description: >-
        A token's artwork on the CDN, one URL per size. Each answers 404 while
        the CDN holds no

        artwork for the token.
      required:
        - small
        - medium
        - large
      properties:
        large:
          type: string
          description: The artwork at full size.
          examples:
            - >-
              https://cdn.example.com/So11111111111111111111111111111111111111112.webp
        medium:
          type: string
          description: 60×60 pixels, for list rows.
          examples:
            - >-
              https://cdn.example.com/So11111111111111111111111111111111111111112_60x60.webp
        small:
          type: string
          description: 16×16 pixels, for inline icons.
          examples:
            - >-
              https://cdn.example.com/So11111111111111111111111111111111111111112_16x16.webp
    UiTokenMetadata:
      type: object
      description: Off-chain project metadata; every field nullable.
      required:
        - twitterReuseCount
      properties:
        description:
          type:
            - string
            - 'null'
          description: Project description.
        discord:
          type:
            - string
            - 'null'
          description: Project Discord invite URL.
        telegram:
          type:
            - string
            - 'null'
          description: Project Telegram handle or URL.
        twitter:
          type:
            - string
            - 'null'
          description: Project Twitter/X handle or URL.
        twitterReuseCount:
          type: integer
          format: int64
          description: >-
            How many other tokens have claimed the same Twitter/X account; above
            zero, the handle

            is recycled. Not yet counted, so always `0`.
          minimum: 0
        website:
          type:
            - string
            - 'null'
          description: Project website.
    UiPlatform:
      oneOf:
        - type: object
          description: >-
            fomo.family, the terminal that routed the trade. The trader's
            profile is the `fomo`

            element of `identities`.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - fomo
        - type: object
          description: >-
            A token's DexScreener listing; present only while its profile is
            paid.
          required:
            - isPaid
            - platform
          properties:
            isPaid:
              type: boolean
              description: Whether the token's DexScreener profile is paid.
            paidAt:
              oneOf:
                - type: 'null'
                - $ref: '#/components/schemas/UnixMilliseconds'
                  description: Earliest profile payment time.
              description: Earliest profile payment time.
            platform:
              type: string
              description: Which platform this is.
              enum:
                - dexScreener
        - type: object
          description: Axiom.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - axiom
        - type: object
          description: '"Banana Gun".'
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - bananaGun
        - type: object
          description: Bloom.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - bloom
        - type: object
          description: '"BONKbot".'
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - bonkbot
        - type: object
          description: BtcTurk.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - btcTurk
        - type: object
          description: BullX.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - bullX
        - type: object
          description: Click.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - click
        - type: object
          description: '"GMGN".'
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - gmgn
        - type: object
          description: '"Lucky Block".'
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - luckyBlock
        - type: object
          description: Maestro.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - maestro
        - type: object
          description: '"Manifold Trading".'
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - manifoldTrading
        - type: object
          description: '"MEVX".'
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - mevx
        - type: object
          description: Mintech.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - mintech
        - type: object
          description: Nighthawk.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - nighthawk
        - type: object
          description: Nova.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - nova
        - type: object
          description: '"OX.FUN".'
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - oxFun
        - type: object
          description: Padre.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - padre
        - type: object
          description: PepeBoost.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - pepeBoost
        - type: object
          description: Phantom.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - phantom
        - type: object
          description: Photon.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - photon
        - type: object
          description: SexBotSolana.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - sexBotSolana
        - type: object
          description: Shuriken.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - shuriken
        - type: object
          description: '"SOL Sniper Bot".'
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - solSniperBot
        - type: object
          description: '"Sol Trading Bot".'
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - solTradingBot
        - type: object
          description: Trojan.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - trojan
      description: >-
        A platform attached to a token, a wallet, or a trade.


        The fieldless variants are trading terminals, each described by its
        display name.
    UiTokenPool:
      type: object
      description: One of a token's top pools.
      required:
        - pool
        - dex
        - liquidity
      properties:
        dex:
          type: string
          description: Venue the pool trades on.
        liquidity:
          $ref: '#/components/schemas/UiMoney'
          description: Pool liquidity.
        pool:
          type: string
          description: Pool address; the `pool` parameter of the candles endpoint.
        quote:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/UiPoolQuote'
              description: >-
                The asset the pool quotes the token in; `null` until a swap
                names it.
          description: >-
            The asset the pool quotes the token in; `null` until a swap names
            it.
    UiTokenSecurity:
      type: object
      description: >-
        Contract-security flags. Solana reads them on-chain; a contract scan
        reads them on the EVM

        chains.
      required:
        - mintDisabled
        - transferBlockable
        - rugPct
      properties:
        buyTaxBps:
          type:
            - integer
            - 'null'
          format: int32
          description: >-
            The token contract's own cut of a buy, in basis points; one layer of
            `totalBuyBps`.

            `null` when the launchpad states no rate.
          example: 100
          minimum: 0
        dividendMinHolding:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
              description: >-
                Balance of this token a wallet holds to qualify for a payout, in
                whole tokens.
          description: >-
            Balance of this token a wallet holds to qualify for a payout, in
            whole tokens.
        dividendToken:
          type:
            - string
            - 'null'
          description: >-
            Address of the asset the token pays its tax back to holders in.

            `null` where no holder payout is known; it does not prove the token
            pays none.
        lpBurntPct:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
              description: LP permanently unavailable (burnt + locked), 0-100.
          description: LP permanently unavailable (burnt + locked), 0-100.
        mintDisabled:
          type: boolean
          description: Mint authority revoked.
        rugPct:
          $ref: '#/components/schemas/Decimal'
          description: Share of supply held by wallets scored as rug risks, 0-100.
        sellTaxBps:
          type:
            - integer
            - 'null'
          format: int32
          description: >-
            The token contract's own cut of a sell, in basis points; see
            `buyTaxBps`.
          example: 200
          minimum: 0
        totalBuyBps:
          type:
            - integer
            - 'null'
          format: int32
          description: >-
            What a buy costs in total, in basis points — every fee layer the
            token's venue charges,

            summed. `null` when no source states a rate.
          example: 100
          minimum: 0
        totalSellBps:
          type:
            - integer
            - 'null'
          format: int32
          description: What a sell costs in total, in basis points; see `totalBuyBps`.
          example: 200
          minimum: 0
        transferBlockable:
          type: boolean
          description: Freeze authority present.
        transferFeeBps:
          type:
            - integer
            - 'null'
          format: int32
          description: >-
            Transfer fee the token's own contract charges, in basis points —
            `250` is 2.50%.

            `null` when no source has scored the contract.
          example: 250
          minimum: 0
    UiTokenStats:
      type: object
      description: Trade stats over a trailing window that ends now, not a calendar bucket.
      required:
        - 5m
        - 30m
        - 1h
        - 6h
        - 24h
      properties:
        1h:
          $ref: '#/components/schemas/UiTokenWindowStats'
          description: Trailing 1 hour.
        24h:
          $ref: '#/components/schemas/UiTokenWindowStats'
          description: Trailing 24 hours.
        30m:
          $ref: '#/components/schemas/UiTokenWindowStats'
          description: Trailing 30 minutes.
        5m:
          $ref: '#/components/schemas/UiTokenWindowStats'
          description: Trailing 5 minutes.
        6h:
          $ref: '#/components/schemas/UiTokenWindowStats'
          description: Trailing 6 hours.
    UiTokenTotals:
      type: object
      description: All-time trade volume and fee totals.
      required:
        - volume
        - fees
      properties:
        fees:
          $ref: '#/components/schemas/UiTokenFees'
          description: All-time fee totals by kind.
        volume:
          $ref: '#/components/schemas/UiMoney'
          description: All-time trade volume.
    FundingSourceKind:
      type: string
      description: Whether a known exchange or another wallet funded the creator.
      enum:
        - cex
        - wallet
    FundingStatus:
      type: string
      description: Whether the creator wallet's funding lookup has settled.
      enum:
        - unresolved
        - resolved
    UiTokenFeeAllocation:
      type: object
      description: Where a token's tax goes, and to whom.
      required:
        - kind
      properties:
        kind:
          $ref: '#/components/schemas/UiTokenFeeAllocationKind'
          description: What the recipients are.
        recipients:
          type: array
          items:
            $ref: '#/components/schemas/UiTokenFeeRecipient'
          description: Who is paid, and what share each takes.
    UiTokenFeeComponent:
      type: object
      description: 'One layer of a total: who charges it, and what each side pays.'
      required:
        - kind
      properties:
        asset:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/UiFeeAsset'
              description: >-
                The asset the layer is charged in, where it is not the traded
                token.
          description: The asset the layer is charged in, where it is not the traded token.
        buyBps:
          type:
            - integer
            - 'null'
          format: int32
          description: >-
            Taken from a buy, in basis points. A layer that varies states its
            floor here.
          example: 0
          minimum: 0
        buyBpsMax:
          type:
            - integer
            - 'null'
          format: int32
          description: The most a varying buy layer takes. A fixed layer leaves this unset.
          example: 1000
          minimum: 0
        kind:
          $ref: '#/components/schemas/UiTokenFeeKind'
          description: Which layer this is.
        sellBps:
          type:
            - integer
            - 'null'
          format: int32
          description: >-
            Taken from a sell, in basis points. A layer that varies states its
            floor here.
          example: 100
          minimum: 0
        sellBpsMax:
          type:
            - integer
            - 'null'
          format: int32
          description: >-
            The most a varying sell layer takes. A fixed layer leaves this
            unset.
          example: 1000
          minimum: 0
    UiTokenFeeRewards:
      type: object
      description: What a wallet holds to qualify for a payout.
      required:
        - minHolding
      properties:
        minHolding:
          $ref: '#/components/schemas/Decimal'
          description: The qualifying balance, in whole tokens of the taxed token.
        minHoldingUsd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
              description: >-
                That balance at the token's current price. `null` until the
                token prices.
          description: >-
            That balance at the token's current price. `null` until the token
            prices.
    UiPoolQuote:
      type: object
      description: The asset a pool quotes its token in.
      required:
        - address
      properties:
        address:
          type: string
          description: Quote asset's address.
        symbol:
          type:
            - string
            - 'null'
          description: Quote asset's display symbol; `null` where none is known.
    UiTokenWindowStats:
      type: object
      description: Trade activity over one trailing window.
      required:
        - priceChangePct
        - volume
        - buyCount
        - sellCount
        - buyVolume
        - sellVolume
      properties:
        buyCount:
          type: integer
          format: int64
          description: Buy-side trade count.
          minimum: 0
        buyVolume:
          $ref: '#/components/schemas/UiMoney'
          description: Buy-side volume.
        priceChangePct:
          $ref: '#/components/schemas/Decimal'
          description: Price change over the window, percent.
        sellCount:
          type: integer
          format: int64
          description: Sell-side trade count.
          minimum: 0
        sellVolume:
          $ref: '#/components/schemas/UiMoney'
          description: Sell-side volume.
        volume:
          $ref: '#/components/schemas/UiMoney'
          description: Trade volume over the window.
    UiTokenFees:
      type: object
      description: All-time fee totals by kind.
      required:
        - transaction
        - validator
        - platform
      properties:
        dex:
          $ref: '#/components/schemas/UiMoney'
          description: 'Venue fees: what traders paid the pools and launchpads.'
        platform:
          $ref: '#/components/schemas/UiMoney'
          description: Platform fees.
        transaction:
          $ref: '#/components/schemas/UiMoney'
          description: >-
            Transaction fees. On some older Solana trades, this also holds the
            venue fee.
        validator:
          $ref: '#/components/schemas/UiMoney'
          description: Validator fees.
    UiTokenFeeAllocationKind:
      type: string
      description: What a venue does with the tax it takes.
      enum:
        - holders_dividend
        - creator
        - custom_wallet
        - staking
        - lottery
        - buyback
        - protocol
        - none
    UiTokenFeeRecipient:
      type: object
      description: One party a token's tax is paid to.
      properties:
        address:
          type:
            - string
            - 'null'
          description: >-
            The address paid. Absent where the venue names a payout without
            naming who holds it.
        payoutAsset:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/UiFeeAsset'
              description: The asset this recipient is paid in.
          description: The asset this recipient is paid in.
        shareBps:
          type:
            - integer
            - 'null'
          format: int32
          description: >-
            This recipient's share of the tax, in basis points; `10000` is all
            of it.
          example: 10000
          minimum: 0
    UiFeeAsset:
      type: object
      description: An asset a fee is charged or paid in.
      required:
        - address
      properties:
        address:
          type: string
          description: The asset's contract address.
        symbol:
          type:
            - string
            - 'null'
          description: Its display symbol; `null` where none is known.
    UiTokenFeeKind:
      type: string
      description: The layers a venue can charge.
      enum:
        - protocol_fee
        - creator_tax
        - quote_token_fee
        - pool_fee
        - dex_protocol_fee
        - hook_fee
        - snipe_tax
        - transfer_fee
        - creator_fee
        - holder_fee
  securitySchemes:
    bearerKey:
      type: http
      scheme: bearer
      description: >-
        Send an API key, or a session token a key minted, as `Authorization:
        Bearer <credential>`. A browser opening `/v1/stream` offers its session
        token in `Sec-WebSocket-Protocol` instead.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.