> ## Documentation Index
> Fetch the complete documentation index at: https://sonar-cf3aeac7.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# token-details channel

> Receive every trade of up to 100 tokens, each with the token's details, market cap and stats at that trade.

`token-details` follows a list of tokens. For every trade of any of them, it sends the trade together with the token's full details, re-priced at that trade. Use it for watchlists and token pages that show live price, market cap, liquidity and volume.

**Weight:** the number of distinct tokens in `tokens`. See [Subscription weight](https://sonar-cf3aeac7.mintlify.site/websocket/limits-and-errors.md#subscription-weight).

## Parameters

| Param | Type | Required | Description |
| - | - | - | - |
| `chain` | string | Yes | Chain in `evm:<chainId>` form, for example `"evm:8453"`. |
| `tokens` | string\[] | Yes | 1 to 100 token addresses (`0x` plus 40 hex characters). Duplicates are removed after the 100-item check. |
| `maxUpdatesPerMinute` | integer | No | 1 to 600. Samples the subscription: at most this many events per minute **per token**, no cursors, no resume. See [Sampling](https://sonar-cf3aeac7.mintlify.site/websocket/messages.md#sampling-with-maxupdatesperminute). |
| `excludeNoise` | boolean | No | Drop dust and low-value trades, with the same three conditions as [fast-trade](https://sonar-cf3aeac7.mintlify.site/websocket/channels/fast-trade.md#excluding-noise), applied to the token the trade is oriented to. |

The channel does not check that the tokens exist. A token that never trades produces no events.

## Which trades you receive

* Every trade of a listed token, in any pool, subject to the [quote-token rule](https://sonar-cf3aeac7.mintlify.site/websocket/channels/fast-trade.md#the-quote-token-rule). If you list WETH or USDC, you get only the trades where that token is the base, for example WETH/USDC, not every trade priced in WETH.
* Each trade is sent **once** per subscription, even if both sides of the pool are in your list.
* The trade is oriented to the **first token in your list** that is eligible in that trade. `data.token` is that token, and `tokenData` describes it. If you list both tokens of a pool, list the one you care about first.

## Event data

`data` is a trade event with one extra field, `tokenData`.

**token** `string`

Address of the token the trade is viewed from, lowercase. All `token*` fields describe this token and all `*Vs` fields describe the other side.

**tokenVs** `string`

Address of the other token in the pair, lowercase.

**pair** `string`

Pool address or 32-byte pool id, lowercase.

**poolType** `string | null`

Pool type id, for example `uniswap-v3`.

**date** `number`

Trade time in Unix epoch milliseconds (block time).

**timestamp** `number`

Same value as `date`.

**blockNumber** `number`

Block number of the trade.

**tokenPrice** `number`

USD price of `token` at the time of the trade.

**tokenPriceVs** `number`

USD price of `tokenVs` at the time of the trade.

**tokenAmount** `number`

Amount of `token` traded, adjusted for decimals. Always positive.

**tokenAmountVs** `number`

Amount of `tokenVs` traded, adjusted for decimals. Always positive.

**tokenAmountRaw** `string`

Amount of `token` as a raw integer string in base units. Always positive.

**tokenAmountRawVs** `string`

Amount of `tokenVs` as a raw integer string in base units. Always positive.

**tokenAmountUsd** `number`

USD value of the trade.

**tokenNativePrice** `number`

Price of `token` in the chain's native coin (for example ETH): `tokenPrice` divided by the native coin's USD price at the time of the trade. `0` when the native price is unknown.

**type** `"buy" | "sell"`

Direction from the point of view of `token`. `buy`: `token` left the pool (the trader received `token`). `sell`: `token` entered the pool (the trader gave up `token`).

**operation** `"regular"`

Always `regular`.

**blockchain** `string`

Chain display **name**, for example `Ethereum` or `Base`. This is not a chain id.

**hash** `string`

Transaction hash.

**sender** `string`

Address that initiated the transaction (the trader's wallet), lowercase.

**gasFeesUSD** `number | null`

Gas fee for this trade in USD: the transaction's gas cost, split evenly across the swaps in that transaction. `null` when unknown.

**tokenData** `object | null`

Details of `data.token`, in the same shape as the REST [`GET /token`](https://sonar-cf3aeac7.mintlify.site/api-reference/token/get-token) response. `null` when the details could not be loaded in time (see below).

**tokenData fields**

### Identity and metadata

**address** `string`

Token contract address, lowercase.

**chainId** `string`

Chain identifier in `evm:<id>` form, for example `"evm:8453"`.

**name** `string`

Token name.

**symbol** `string`

Token symbol.

**decimals** `number`

Token decimals. Use it to convert the raw supply strings.

**priceUSD** `number`

Latest USD price. `0` when no price is known.

**totalSupply** `string | null`

Total supply as a **raw integer string in base units** (not divided by `decimals`). Divide by `10^decimals` for a display value.

**circulatingSupply** `string | null`

Circulating supply as a raw integer string in base units.

**logo** `string | null`

Logo URL. Chosen in this order: the logo of the token's cross-chain asset, then a logo hosted by ChainQuery, then the token's own logo URL. `null` if none exists.

**description** `string | null`

Token description. An empty description is returned as `null`.

**socials** `object`

Social links. Each value is a URL or `null`.

**properties**

**twitter** `string | null`

X / Twitter link.

**website** `string | null`

Website link.

**telegram** `string | null`

Telegram link.

**deployer** `string | null`

Address that deployed the token, lowercase.

**createdAt** `string | null`

Token creation time as an ISO 8601 UTC string.

**assetId** `number | null`

ID of the cross-chain asset this token belongs to. Use it with the [asset endpoints](https://sonar-cf3aeac7.mintlify.site/api-reference/asset/get-asset-ohlcv.md). `null` when the token is not linked to an asset.

### Launchpad and bonding

**bonded** `boolean`

`true` once a launchpad token has completed its bonding curve and graduated.

**bondedAt** `string | null`

Graduation time as an ISO 8601 UTC string.

**bondingPercentage** `number | null`

Bonding-curve progress on a 0 to 100 scale. Set to `0` once the token is bonded. `null` when unknown.

**source** `string | null`

Launchpad ID when the token was created by a known launchpad on this chain, otherwise `null`. The IDs match the `launchpads[].id` values from [`GET /protocols`](https://sonar-cf3aeac7.mintlify.site/api-reference/protocols/get-protocols). See [Protocols and launchpads](https://sonar-cf3aeac7.mintlify.site/concepts/protocols-and-launchpads.md).

**sourceMetadata** `object | null`

Display metadata for `source`. `null` when `source` is `null`.

**properties**

**name** `string`

Launchpad display name.

**logo** `string | null`

Launchpad logo URL.

**sourceFactory** `string | null`

Launchpad factory address, found from the token's pools. Only looked up when `source` is set or the token is bonded.

**launchpadUrl** `string | null`

Link to the token's page on the launchpad website, when the launchpad has one.

### Market stats

Every stats field is a number and **defaults to `0`** when the token has no stats yet.

**liquidityUSD** `number`

Token liquidity in USD: the sum of the smaller side (in USD) of each of the token's top 5 pools by 24h volume.

**liquidityMaxUSD** `number`

Total liquidity in USD of the same top 5 pools, counting both sides.

**marketCapUSD** `number`

Circulating supply (or total supply, if circulating is unknown) multiplied by `priceUSD`. Set to `0` when the value is implausible compared with the token's liquidity.

**marketCapDilutedUSD** `number`

Fully diluted market cap: total supply multiplied by `priceUSD`.

**priceChange\{window}Percentage** `number`

Price change over the window, in percent (`6.42` means +6.42%). Windows: `1min`, `5min`, `1h`, `4h`, `6h`, `12h`, `24h`. There is no `15min` price change.

**volume\{window}USD** `number`

Volume in USD. `volumeBuy{window}USD` and `volumeSell{window}USD` split it into buys and sells.

**trades\{window}** `number`

Number of trades. `buys{window}` and `sells{window}` split it by side.

**traders\{window}** `number`

Distinct trading wallets. `buyers{window}` and `sellers{window}` count distinct wallets per side.

**feesPaid\{window}USD** `number`

Transaction (gas) fees paid by traders, in USD.

For these fields, `{window}` is one of `1min`, `5min`, `15min`, `1h`, `4h`, `6h`, `12h`, `24h`. See [Data formats](https://sonar-cf3aeac7.mintlify.site/concepts/data-formats.md) for how windows work.

> [accordion] All 87 windowed stats fields
>
> `priceChange1minPercentage`, `priceChange5minPercentage`, `priceChange1hPercentage`, `priceChange4hPercentage`, `priceChange6hPercentage`, `priceChange12hPercentage`, `priceChange24hPercentage`
>
> `volume1minUSD`, `volume5minUSD`, `volume15minUSD`, `volume1hUSD`, `volume4hUSD`, `volume6hUSD`, `volume12hUSD`, `volume24hUSD`
>
> `volumeBuy1minUSD`, `volumeBuy5minUSD`, `volumeBuy15minUSD`, `volumeBuy1hUSD`, `volumeBuy4hUSD`, `volumeBuy6hUSD`, `volumeBuy12hUSD`, `volumeBuy24hUSD`
>
> `volumeSell1minUSD`, `volumeSell5minUSD`, `volumeSell15minUSD`, `volumeSell1hUSD`, `volumeSell4hUSD`, `volumeSell6hUSD`, `volumeSell12hUSD`, `volumeSell24hUSD`
>
> `trades1min`, `trades5min`, `trades15min`, `trades1h`, `trades4h`, `trades6h`, `trades12h`, `trades24h`
>
> `buys1min`, `buys5min`, `buys15min`, `buys1h`, `buys4h`, `buys6h`, `buys12h`, `buys24h`
>
> `sells1min`, `sells5min`, `sells15min`, `sells1h`, `sells4h`, `sells6h`, `sells12h`, `sells24h`
>
> `buyers1min`, `buyers5min`, `buyers15min`, `buyers1h`, `buyers4h`, `buyers6h`, `buyers12h`, `buyers24h`
>
> `sellers1min`, `sellers5min`, `sellers15min`, `sellers1h`, `sellers4h`, `sellers6h`, `sellers12h`, `sellers24h`
>
> `traders1min`, `traders5min`, `traders15min`, `traders1h`, `traders4h`, `traders6h`, `traders12h`, `traders24h`
>
> `feesPaid1minUSD`, `feesPaid5minUSD`, `feesPaid15minUSD`, `feesPaid1hUSD`, `feesPaid4hUSD`, `feesPaid6hUSD`, `feesPaid12hUSD`, `feesPaid24hUSD`

### DexScreener

**dexscreenerListed** `boolean`

`true` when the token is listed on DexScreener.

**dexscreenerHeader** `string | null`

Header image URL from the token's DexScreener profile or boost.

**dexscreenerAdPaid** `boolean`

`true` when an approved DexScreener token ad was paid within the last 24 hours.

**dexscreenerAdPaidDate** `string | null`

When the latest approved DexScreener token ad was paid, as an ISO 8601 UTC string.

**dexscreenerSocialPaid** `boolean`

`true` once the token has a paid DexScreener token profile.

**dexscreenerSocialPaidDate** `string | null`

When ChainQuery first saw the paid DexScreener profile, as an ISO 8601 UTC string.

**dexscreenerPendingAt** `string | null`

Payment time of the latest DexScreener order that is still pending review, as an ISO 8601 UTC string. `null` when nothing is pending.

**dexscreenerBoosted** `boolean`

`true` once the token has been seen in DexScreener's boosts feed.

**dexscreenerBoostedAmount** `number`

Boost amount from DexScreener's boosts feed. `0` when none.

**dexscreenerBoostedDate** `string | null`

When ChainQuery last saw the boost, as an ISO 8601 UTC string.

### How tokenData is built

* Details are built by the same code as `GET /token`, then reused for about **5 seconds** per token. Stats such as volume, trade counts, liquidity and price changes come from the regularly refreshed token stats, plus that reuse, so they lag slightly behind the live trade.
* Each event re-prices the cached details at the trade:
  * `priceUSD` is set to the trade's `tokenPrice`.
  * `marketCapUSD` is recomputed as circulating supply × price, falling back to total supply when circulating supply is unknown. It is set to `0` when it is implausible: liquidity is less than 0.001% of the market cap, or there is no liquidity and the market cap is above \$1,000,000.
  * `marketCapDilutedUSD` is recomputed as total supply × price.
* `tokenData` is `null` when the lookup fails, for example for a token that is not indexed yet, or takes longer than **2 seconds**. The trade fields are still sent.
* Date fields such as `createdAt`, `bondedAt` and the `dexscreener*Date` fields are ISO 8601 strings, for example `"2026-11-30T12:00:00.000Z"`.
* `totalSupply` and `circulatingSupply` are raw integer strings in base units. Divide by `10^decimals` for display.

## Example

A two-token watchlist, refreshed at most once per second per token:

```json theme={null}
-> {"op":"subscribe","id":"watchlist","channel":"token-details","params":{"chain":"evm:8453","tokens":["0x1111111111111111111111111111111111111111","0x4444444444444444444444444444444444444444"],"maxUpdatesPerMinute":60}}
<- {"type":"subscribed","id":"watchlist","channel":"token-details"}
<- {"type":"event","id":"watchlist","channel":"token-details","data":{"token":"0x1111111111111111111111111111111111111111","tokenVs":"0x4200000000000000000000000000000000000006","pair":"0x2222222222222222222222222222222222222222","poolType":"uniswap-v3","date":1796292003000,"blockNumber":38123457,"tokenPrice":0.0102,"tokenPriceVs":3412.57,"tokenAmount":15000,"tokenAmountVs":0.044834,"tokenAmountUsd":153,"tokenNativePrice":0.00000298895,"type":"buy","operation":"regular","blockchain":"Base","hash":"0x9f1c4b0e7d2a6c8f3e5b1a0d4c7e9f2b6a8d0c3e5f7a9b1c2d4e6f8a0b2c4d6e","sender":"0x3333333333333333333333333333333333333333","tokenAmountRaw":"15000000000000000000000","tokenAmountRawVs":"44834000000000000","gasFeesUSD":0.0042,"timestamp":1796292003000,"tokenData":{"address":"0x1111111111111111111111111111111111111111","chainId":"evm:8453","name":"Example Meme","symbol":"MEME","decimals":18,"priceUSD":0.0102,"totalSupply":"1000000000000000000000000000","circulatingSupply":null,"logo":null,"description":null,"socials":{"twitter":null,"website":null,"telegram":null},"deployer":"0x5555555555555555555555555555555555555555","createdAt":"2026-11-01T00:00:00.000Z","bonded":true,"bondedAt":"2026-11-01T02:14:09.000Z","bondingPercentage":0,"source":"clanker","sourceMetadata":{"name":"Clanker","logo":null},"sourceFactory":null,"launchpadUrl":null,"assetId":null,"liquidityUSD":250000,"liquidityMaxUSD":210000,"marketCapUSD":10200000,"marketCapDilutedUSD":10200000,"priceChange24hPercentage":4.2,"volume24hUSD":1200000,"trades24h":5730,"...":"other stats and dexscreener fields","dexscreenerListed":true,"dexscreenerBoostedAmount":0}}}
```

The subscription is sampled, so `subscribed` and events have no `cursor`. Without `maxUpdatesPerMinute` you get every trade, with cursors, and you can [resume](https://sonar-cf3aeac7.mintlify.site/websocket/cursors-and-resume.md).

```javascript Browser theme={null}
const ws = new WebSocket("wss://api.example.com/v1/ws");

ws.onopen = () => ws.send(JSON.stringify({
  op: "subscribe",
  id: "watchlist",
  channel: "token-details",
  params: {
    chain: "evm:8453",
    tokens: [
      "0x1111111111111111111111111111111111111111",
      "0x4444444444444444444444444444444444444444",
    ],
    maxUpdatesPerMinute: 60,
  },
}));

ws.onmessage = (frame) => {
  const msg = JSON.parse(frame.data);
  if (msg.type !== "event") return;
  const { token, tokenPrice, tokenData } = msg.data;
  // tokenData can be null: keep the previous details and update only the price.
  console.log(token, tokenPrice, tokenData?.marketCapUSD, tokenData?.volume24hUSD);
};
```

```python Python (websockets) theme={null}
import asyncio
import json

import websockets

async def main():
    async with websockets.connect("wss://api.example.com/v1/ws") as ws:
        await ws.send(json.dumps({
            "op": "subscribe",
            "id": "watchlist",
            "channel": "token-details",
            "params": {
                "chain": "evm:8453",
                "tokens": [
                    "0x1111111111111111111111111111111111111111",
                    "0x4444444444444444444444444444444444444444",
                ],
                "maxUpdatesPerMinute": 60,
            },
        }))
        async for raw in ws:
            msg = json.loads(raw)
            if msg["type"] == "event":
                d = msg["data"]
                details = d["tokenData"] or {}
                print(d["token"], d["tokenPrice"], details.get("marketCapUSD"))

asyncio.run(main())
```

## Related

* [`GET /token`](https://sonar-cf3aeac7.mintlify.site/api-reference/token/get-token) for the initial snapshot of each token
* [market-details channel](https://sonar-cf3aeac7.mintlify.site/websocket/channels/market-details.md) to follow pools instead of tokens


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