> ## 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.

# Get token

> Details, metadata, launchpad status, windowed trading stats and DexScreener flags for one token.

Returns everything ChainQuery knows about one token on one chain: identity and metadata, launchpad and bonding state, 91 market stats fields (4 totals plus 87 windowed values) and DexScreener flags.

The same object is pushed live by the [`token-details` WebSocket channel](https://sonar-cf3aeac7.mintlify.site/websocket/channels/token-details).

## Query parameters

**address** `string` *required*

Token contract address: `0x` followed by 40 hex characters. Case-insensitive.

**chain** `string` *required*

Chain ID, as a number (`8453`) or in `evm:<id>` form (`evm:8453`). Chain names are rejected. See [Chains and identifiers](https://sonar-cf3aeac7.mintlify.site/concepts/chains-and-identifiers.md).

## Response

**status** `string`

Always `"success"`.

**data** `TokenDetailsOutput`

The token. All fields are always present. Nullable fields are `null` rather than missing.

### `data` 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.

### Stats windows

Windowed stats are rolling windows that end at the time of the last stats update. They do not align to calendar boundaries.

| Window | Suffix in field names | Volume, trade and wallet counts, fees (`STATS_WINDOWS`) | Price change (`PRICE_CHANGE_WINDOWS`) |
| - | - | - | - |
| 1 minute | `1min` | Yes | Yes |
| 5 minutes | `5min` | Yes | Yes |
| 15 minutes | `15min` | Yes | **No** |
| 1 hour | `1h` | Yes | Yes |
| 4 hours | `4h` | Yes | Yes |
| 6 hours | `6h` | Yes | Yes |
| 12 hours | `12h` | Yes | Yes |
| 24 hours | `24h` | Yes | Yes |

No `priceChange15minPercentage` field exists. Every other combination of metric and window does.

Field names are built as `<metric><window><suffix>`:

| Pattern | Type | Meaning |
| - | - | - |
| `priceChange{window}Percentage` | number | Price change over the window, in percent (`6.42` means +6.42%). `0` when there is no earlier price to compare. |
| `volume{window}USD` | number | Traded volume in USD |
| `volumeBuy{window}USD` | number | Buy-side volume in USD |
| `volumeSell{window}USD` | number | Sell-side volume in USD |
| `trades{window}` | number | Number of trades |
| `buys{window}` | number | Number of buys |
| `sells{window}` | number | Number of sells |
| `buyers{window}` | number | Distinct buying wallets |
| `sellers{window}` | number | Distinct selling wallets |
| `traders{window}` | number | Distinct trading wallets |
| `feesPaid{window}USD` | number | Transaction (gas) fees paid by traders for these trades, in USD |

## Behavior

* **Only indexed tokens are returned.** The API reads ChainQuery's indexed data and doesn't look tokens up on-chain while it answers. A token that hasn't been indexed on that chain returns `404 TOKEN_NOT_FOUND`, even if the contract exists.
* **Stats default to `0`.** A token that is indexed but has no computed stats yet (for example, no trades) returns `0` for every stats field, including `liquidityUSD` and `marketCapUSD`. Don't read `0` as "known to be zero".
* **Supply values are raw strings.** `totalSupply` and `circulatingSupply` are integers in base units. Divide by `10^decimals` to display them, using a big-number library to avoid losing precision.
* **Supply may refresh in the background.** A successful request can trigger a background refresh of the token's supply, at most once per token every 24 hours. The current response isn't affected, but later calls may return updated supply and market cap values.
* **Logo priority.** `logo` is the cross-chain asset's logo if there is one, then a logo hosted by ChainQuery, then the token's own logo URL.

> [!NOTE]
>
> `priceChange*Percentage` values are real percentages: `6.42` means +6.42%. There is no `priceChange15minPercentage`, although the other 15-minute stats exist.

> [!WARNING]
>
> An unsupported but well-formed chain ID, such as `chain=137`, is not rejected with a `400`. It returns `404 TOKEN_NOT_FOUND` because nothing is indexed for it. Check supported chains with [`GET /protocols`](https://sonar-cf3aeac7.mintlify.site/api-reference/protocols/get-protocols).

## Errors

| HTTP | `code` | When |
| - | - | - |
| 400 | `INVALID_ADDRESS` | `address` is not a valid 40-hex address, and that is the only problem. |
| 400 | `INVALID_PARAMETERS` | A parameter is missing, `chain` is malformed (`must be a chain id like 1 or evm:1`), or there are several problems at once. |
| 404 | `TOKEN_NOT_FOUND` | `Token not found`: the token is not indexed on that chain. |
| 500 | `INTERNAL_ERROR` | Unexpected server error. |

See [Responses and errors](https://sonar-cf3aeac7.mintlify.site/concepts/responses-and-errors.md) for the error envelope.

```bash cURL theme={null}
curl "https://api.example.com/api/v1/token?address=0x4200000000000000000000000000000000000006&chain=evm:8453"
```

```javascript JavaScript theme={null}
const params = new URLSearchParams({
  address: "0x4200000000000000000000000000000000000006",
  chain: "evm:8453",
});
const res = await fetch(`https://api.example.com/api/v1/token?${params}`);
const body = await res.json();
if (body.status !== "success") throw new Error(`${body.code}: ${body.message}`);

const token = body.data;
const supply = BigInt(token.totalSupply ?? "0"); // raw base units
console.log(token.symbol, token.priceUSD, token.priceChange24hPercentage);
```

```python Python theme={null}
import requests

res = requests.get(
    "https://api.example.com/api/v1/token",
    params={"address": "0x4200000000000000000000000000000000000006", "chain": "evm:8453"},
    timeout=10,
)
body = res.json()
if body["status"] != "success":
    raise RuntimeError(f'{body["code"]}: {body["message"]}')

token = body["data"]
supply = int(token["totalSupply"] or 0) / 10 ** token["decimals"]
print(token["symbol"], token["priceUSD"], supply)
```

```json 200 theme={null}
{
  "status": "success",
  "data": {
    "address": "0x4200000000000000000000000000000000000006",
    "chainId": "evm:8453",
    "name": "Wrapped Ether",
    "symbol": "WETH",
    "decimals": 18,
    "priceUSD": 3412.57,
    "totalSupply": "182345671234567890123456",
    "circulatingSupply": "182345671234567890123456",
    "logo": "https://assets.coingecko.com/coins/images/2518/large/weth.png",
    "description": null,
    "socials": {
      "twitter": null,
      "website": "https://weth.io",
      "telegram": null
    },
    "deployer": null,
    "createdAt": "2023-06-15T00:00:00.000Z",
    "bonded": false,
    "bondedAt": null,
    "bondingPercentage": null,
    "source": null,
    "sourceMetadata": null,
    "sourceFactory": null,
    "launchpadUrl": null,
    "assetId": 2,
    "liquidityUSD": 21004512.77,
    "liquidityMaxUSD": 48210334.18,
    "marketCapUSD": 622264019.3,
    "marketCapDilutedUSD": 622264019.3,
    "priceChange1minPercentage": 0.12,
    "priceChange5minPercentage": -0.35,
    "priceChange1hPercentage": 1.84,
    "priceChange4hPercentage": 3.1,
    "priceChange6hPercentage": 2.7,
    "priceChange12hPercentage": -4.05,
    "priceChange24hPercentage": 6.42,
    "volume1minUSD": 1520.4,
    "volume5minUSD": 8410.77,
    "volume15minUSD": 25110.3,
    "volume1hUSD": 96250.12,
    "volume4hUSD": 402118.9,
    "volume6hUSD": 588340.55,
    "volume12hUSD": 1120455.2,
    "volume24hUSD": 2310987.64,
    "volumeBuy1minUSD": 790.61,
    "volumeBuy5minUSD": 4373.6,
    "volumeBuy15minUSD": 13057.36,
    "volumeBuy1hUSD": 50050.06,
    "volumeBuy4hUSD": 209101.83,
    "volumeBuy6hUSD": 305937.09,
    "volumeBuy12hUSD": 582636.7,
    "volumeBuy24hUSD": 1201713.57,
    "volumeSell1minUSD": 729.79,
    "volumeSell5minUSD": 4037.17,
    "volumeSell15minUSD": 12052.94,
    "volumeSell1hUSD": 46200.06,
    "volumeSell4hUSD": 193017.07,
    "volumeSell6hUSD": 282403.46,
    "volumeSell12hUSD": 537818.5,
    "volumeSell24hUSD": 1109274.07,
    "trades1min": 4,
    "trades5min": 21,
    "trades15min": 63,
    "trades1h": 240,
    "trades4h": 1012,
    "trades6h": 1480,
    "trades12h": 2851,
    "trades24h": 5730,
    "buys1min": 3,
    "buys5min": 11,
    "buys15min": 32,
    "buys1h": 121,
    "buys4h": 507,
    "buys6h": 741,
    "buys12h": 1426,
    "buys24h": 2866,
    "sells1min": 1,
    "sells5min": 10,
    "sells15min": 31,
    "sells1h": 119,
    "sells4h": 505,
    "sells6h": 739,
    "sells12h": 1425,
    "sells24h": 2864,
    "buyers1min": 2,
    "buyers5min": 7,
    "buyers15min": 21,
    "buyers1h": 80,
    "buyers4h": 337,
    "buyers6h": 493,
    "buyers12h": 950,
    "buyers24h": 1910,
    "sellers1min": 1,
    "sellers5min": 5,
    "sellers15min": 15,
    "sellers1h": 60,
    "sellers4h": 253,
    "sellers6h": 370,
    "sellers12h": 712,
    "sellers24h": 1432,
    "traders1min": 3,
    "traders5min": 11,
    "traders15min": 33,
    "traders1h": 128,
    "traders4h": 539,
    "traders6h": 789,
    "traders12h": 1520,
    "traders24h": 3056,
    "feesPaid1minUSD": 0.42,
    "feesPaid5minUSD": 2.31,
    "feesPaid15minUSD": 6.9,
    "feesPaid1hUSD": 26.4,
    "feesPaid4hUSD": 111.3,
    "feesPaid6hUSD": 162.8,
    "feesPaid12hUSD": 313.6,
    "feesPaid24hUSD": 630.2,
    "dexscreenerListed": true,
    "dexscreenerHeader": null,
    "dexscreenerAdPaid": false,
    "dexscreenerAdPaidDate": null,
    "dexscreenerSocialPaid": false,
    "dexscreenerSocialPaidDate": null,
    "dexscreenerPendingAt": null,
    "dexscreenerBoosted": false,
    "dexscreenerBoostedAmount": 0,
    "dexscreenerBoostedDate": null
  }
}
```

```json 400 theme={null}
{
  "status": "error",
  "statusCode": 400,
  "code": "INVALID_ADDRESS",
  "message": "address: must be a valid token or wallet address",
  "details": [
    { "field": "address", "message": "must be a valid token or wallet address" }
  ]
}
```

```json 404 theme={null}
{
  "status": "error",
  "statusCode": 404,
  "code": "TOKEN_NOT_FOUND",
  "message": "Token not found"
}
```


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