<ApiPlayground endpoint="token-search" />

Served from `https://api.gum.ag/ud`, the same base URL as
deposit addresses. No API key. CORS is not open, so call it from your server
or through a same-origin proxy.

## Query parameters

| Parameter      | Required | Description                                                                                                                                  |
| -------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `query`        | Yes      | Free text (name or symbol) or a token address. Sui coin types (`0x…::module::SYMBOL`) work as addresses.                                     |
| `quotableOnly` | No       | `true` returns only tokens Universal Deposit can convert (`isQuotable: true`), probing unchecked rows first. **Use this for a deposit picker.** |

Search is **cross-chain**: one query returns matches from every supported
chain, each row tagged with its `originChainId`. There is no chain filter on
the request; filter the response.

`ETH`, `WETH`, `BTC`, `WBTC`, `cbBTC`, and `SOL` also include that asset's
wrapped version on each supported chain (Arbitrum ETH, Base cbBTC, Solana
portal ETH, and so on). The canonical row stays first.

## Response

`results` is an array of token rows ordered by relevance. Rows carry full
market metadata, but these are the fields that matter for deposits:

| Field             | Meaning                                                                                                       |
| ----------------- | ------------------------------------------------------------------------------------------------------------- |
| `symbol`, `name`  | Display values. `name` and `uri` can be missing on some rows.                                                  |
| `originChainId`   | The chain this row lives on (`900`, `1`, `8453`, `42161`, `56`, `4663`, `101`).                                |
| `originChainMint` | The token address on that chain. EVM addresses are checksummed; compare them case-insensitively. Sui addresses are zero-padded to 64 hex characters, except native SUI which is `0x2::sui::SUI`. |
| `uri`             | Icon URL.                                                                                                     |
| `isQuotable`      | `true` when the token passed a live swap round trip within the last 30 minutes. **Absent** when it hasn't been checked, `false` when it failed. |
| `isTradable`      | Same probe, same value. Present for compatibility.                                                            |
| `isVerified`      | Listed on a verified registry. Informational only.                                                            |

## Keeping only depositable tokens

The endpoint is shared with the GUM app's own search, so by default it
returns popular tokens even when they aren't quotable. For a deposit picker
pass `quotableOnly=true`, then keep the rows on the sender's chain:

```js
const { results } = await fetch(
  `https://api.gum.ag/ud/token/search?quotableOnly=true&query=${encodeURIComponent(q)}`,
).then((r) => r.json());

const depositable = results.filter((t) => t.originChainId === chainId);
```

Without the flag, filter on `isQuotable === true` yourself; the field is
present either way.

A quotable token is one the swap pipeline can convert to the chain's dollar
token, which is what makes it depositable. The check is cached for 30 minutes
and ignores two things you still have to handle:

- **Minimum amount.** Quotable says nothing about how much must be sent. A
  swapped deposit must also clear its swap cost, so keep senders comfortably
  above the chain's `minDeposit`.
- **Chain status.** A token on a paused chain still shows as quotable. Use the
  `status` from
  [`/v2/deposit-addresses`](/universal-deposit/api-reference/get-deposit-addresses)
  to hide chains that are down.

<Note>
  When `query` is a pasted address, the first response can come back before
  the quotability check has run, with no `isQuotable` field at all. The result
  is cached, so a second request a moment later carries the flag. The chain's
  own dollar token (USDC, USDT on BSC, USDG on Robinhood) is always
  depositable regardless of this flag; it's the `tokenAddress` returned by
  `/v2/deposit-addresses`.
</Note>

For a ready-made default list that is already filtered, use
[`/top-mcap`](/universal-deposit/api-reference/get-top-mcap).
