API reference
Using the API
Public endpoints: run a deposit, resolve a deposit address back to its destination, build a token picker that only offers depositable tokens, and price the fee rate.
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, /v1/deposit-addresses/lookup, /token/search, /top-mcap, /v2/fees/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).
The deposit loop
- Get deposit addresses for the destination. Call
/v2/deposit-addresseswith the destinationchainIdanddestinationAddress. 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. - Only offer tokens the pipeline can convert. The dollar token from step
1 always works. Any other token must be quotable: listed by
/top-mcapfor that chain, or returned by/token/searchwithquotableOnly=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 if it still hasn’t settled. Hide chains whosestatusfrom step 1 isn’t healthy. - 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 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= | Top tokens on one chain | Every row is quotable. Use it as the default list. |
/token/search?query= | 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.
One address per source chain for a destination.
Deposit addresses back to the destination they settle to.
Free-text and address lookup across every chain.
The quotable top-market-cap list for one chain.
The stablecoins on one chain, billed at the stable fee rate.