Everything the embed widget does is plain HTTP. One host, read-only:

| Base URL                                   | Endpoints                                                                                                                                                                                                                                          | Auth           | CORS                            |
| ------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- | ------------------------------- |
| `https://api.gum.ag/ud`       | [`/v2/deposit-addresses`](/universal-deposit/api-reference/get-deposit-addresses), [`/v1/deposit-addresses/lookup`](/universal-deposit/api-reference/lookup-deposit-addresses), [`/token/search`](/universal-deposit/api-reference/get-token-search), [`/top-mcap`](/universal-deposit/api-reference/get-top-mcap), [`/v2/fees/stable-tokens`](/universal-deposit/api-reference/get-stable-tokens) | Public, no key | None — call it from your server |

The test network is served from `https://gum-api.jup.net/ud/devnet`. All
chains use the same numeric IDs everywhere: `900` Solana, `1` Ethereum, `8453`
Base, `42161` Arbitrum, `56` BSC, `4663` Robinhood, `101` Sui (see
[supported chains](/universal-deposit/overview#supported-chains)).

## The deposit loop

1. **Get deposit addresses for the destination.** Call
   [`/v2/deposit-addresses`](/universal-deposit/api-reference/get-deposit-addresses)
   with the destination `chainId` and `destinationAddress`. You get one deposit
   address per source chain, plus that chain's dollar token (`tokenAddress`),
   minimum deposit, flat fee, and health status. Anything sent to a deposit
   address is bridged to the destination and settles as the destination
   chain's dollar token.
2. **Only offer tokens the pipeline can convert.** The dollar token from step
   1 always works. Any other token must be quotable: listed by
   [`/top-mcap`](/universal-deposit/api-reference/get-top-mcap) for that chain,
   or returned by
   [`/token/search`](/universal-deposit/api-reference/get-token-search) with
   `quotableOnly=true`. Quotable tokens are auto-swapped to the dollar token and
   settle like any other deposit, with the swap cost absorbed into the
   conversion. If the swap fails, it is retried until it clears; funds aren't
   lost, and the receiver can reach out on
   [Discord](https://discord.gg/gum-ag) if it still hasn't settled. Hide
   chains whose `status` from step 1 isn't healthy.
3. **Show the sender the address.** Display the deposit address and QR for the
   chain the sender picked, with the minimum and the token they must send. The
   destination chain is the source of truth for arrival; watch the destination
   address on its explorer. [How it works](/universal-deposit/how-it-works)
   covers what happens after the sender funds the address.

## Building a token picker

If you let senders pay with tokens other than the dollar token, you need a
list of tokens that Universal Deposit can actually convert. Two endpoints feed
that list, and they carry different guarantees:

| Endpoint                                                          | Scope                         | Guarantee                                                                                   |
| ----------------------------------------------------------------- | ----------------------------- | ------------------------------------------------------------------------------------------- |
| [`/top-mcap?chainId=`](/universal-deposit/api-reference/get-top-mcap)     | Top tokens on one chain       | Every row is quotable. Use it as the default list.                                          |
| [`/token/search?query=`](/universal-deposit/api-reference/get-token-search) | Free text or address, all chains | Add `quotableOnly=true` to get only convertible tokens, then keep rows on your chain.       |

**What quotable means.** A token is quotable when a live $1000 buy-and-sell
round trip through the swap pipeline passed within the last 30 minutes. It is
the same probe that decides whether a swapped deposit can be routed, so a
quotable token is one Universal Deposit can convert. It does not consider the
deposit minimum or whether the chain is up: apply `minDeposit` and `status`
from `/v2/deposit-addresses` yourself.

This is exactly what the embed widget does: `/top-mcap` populates the list,
`/token/search` handles typing, and both are filtered to `isQuotable === true`
on the selected chain.

<CardGroup cols={2}>
  <Card
    title="Deposit addresses"
    icon="arrow-down-to-line"
    href="/universal-deposit/api-reference/get-deposit-addresses"
  >
    One address per source chain for a destination.
  </Card>
  <Card
    title="Resolve deposit addresses"
    icon="arrow-up-from-line"
    href="/universal-deposit/api-reference/lookup-deposit-addresses"
  >
    Deposit addresses back to the destination they settle to.
  </Card>
  <Card
    title="Token search"
    icon="search"
    href="/universal-deposit/api-reference/get-token-search"
  >
    Free-text and address lookup across every chain.
  </Card>
  <Card
    title="Top tokens"
    icon="trending-up"
    href="/universal-deposit/api-reference/get-top-mcap"
  >
    The quotable top-market-cap list for one chain.
  </Card>
  <Card
    title="Stable tokens"
    icon="dollar-sign"
    href="/universal-deposit/api-reference/get-stable-tokens"
  >
    The stablecoins on one chain, billed at the stable fee rate.
  </Card>
</CardGroup>
