Search Tokens
Search ERC20 tokens across supported EVM chains by symbol or name, with optional chain filters. Results are enriched with logo and decimals.
logo, and decimals so they can be rendered immediately.
Use it to power token-pickers, autocomplete inputs, and any UI flow where the user knows part of a token’s name or symbol but not its contract address.
Example Request
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | yes | Search term matched against the token’s symbol and name. Case-insensitive. Minimum 3 characters after trimming whitespace; shorter queries return an empty result set. |
chain_ids | string | no | Comma-separated chain IDs (1,8453) or a tag (mainnet, default). When omitted, all supported chains are searched. See the Supported Chains page. |
limit | integer | no | Maximum number of results to return. Default 10, maximum 50 — values above the maximum are clamped silently. Values below 1 are clamped to 1. |
Response Fields
The endpoint returns a JSON array of token objects. Each object has:| Field | Type | Description |
|---|---|---|
chain_id | integer | EVM chain ID where the token is deployed |
address | string | The token’s contract address (lowercase, 0x-prefixed) |
token_type | string | "ERC20" |
symbol | string | Token symbol (e.g. USDC, WETH) |
name | string | Token name (e.g. USD Coin, Wrapped Ether) |
logo | string | null | Logo URL when available; null for tokens without a known logo. |
decimals | integer | null | Token decimals; null for tokens without a known decimals value. |
How Search Works
Search is powered by an in-memory trigram index built over each token’ssymbol and name. Properties:
- Case-insensitive.
usdcandUSDCmatch the same set of tokens. - Substring-friendly.
TethmatchesTether,TetherUSD, and similar. - Three-character minimum. Queries of fewer than 3 characters (after trimming) return an empty array — trigrams need at least 3 characters of input.
- Ranked. Tokens with an internal ranking score (driven by activity / liquidity signals) appear first. Ties fall back to a deterministic
(chain_id ASC, address ASC)ordering, so repeat queries return stable results.
Filtering Examples
Restrict to a single chainError Responses
| Status | Cause |
|---|---|
400 Bad Request | query parameter is missing or empty after trimming, or a query parameter cannot be parsed |
401 Unauthorized | Missing or invalid X-Sim-Api-Key header |
Compute Unit Cost
The Search Tokens endpoint has a fixed CU cost of 2 per request. Thechain_ids query parameter does not change the CU cost. See the Compute Units page for detailed information.Authorizations
API key for authentication. Obtain your key from the Dune dashboard at sim.dune.com.
Query Parameters
Search term matched against the token's symbol and name. Case-insensitive. Minimum 3 characters after trimming whitespace; shorter queries return an empty result set.
3Filter by chain(s). Accepts numeric chain IDs and/or tags. Provide a single value (e.g. ?chain_ids=1 or ?chain_ids=mainnet) or a comma-separated list (e.g. ?chain_ids=1,8453,testnet). When omitted, all supported chains are searched. See the Supported Chains Tags section.
Maximum number of results to return. Default is 10 when not provided. Values above 50 are clamped to 50; values below 1 are clamped to 1.
1 <= x <= 50Response
An array of matching tokens, ranked by relevance.
EVM chain ID where the token is deployed.
1
The token's contract address (lowercase, 0x-prefixed).
^0x[a-fA-F0-9]{40}$"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
The token standard. Always ERC20.
ERC20 Token symbol (e.g. USDC, WETH).
"USDC"
Token name (e.g. USD Coin, Wrapped Ether).
"USD Coin"
Logo URL when available; null for tokens without a known logo.
"https://api.sim.dune.com/beta/token/logo/1/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
Token decimals; null for tokens without a known decimals value.
6