Deposit addresses let users bridge or swap tokens by simply sending funds to an address — no wallet connection or signing required. This works for both cross-chain bridges and same-chain swaps. The integrator requests a quote withDocumentation Index
Fetch the complete documentation index at: https://docs.relay.link/llms.txt
Use this file to discover all available pages before exploring further.
useDepositAddress: true, receives a deposit address, and the user transfers funds there. Relay detects the deposit and fills on the destination chain.
This makes deposit addresses ideal for CEX withdrawals, fiat onramps, and headless systems where the sender can’t sign transactions. The user just sends to an address — same UX as a normal transfer.
How It Works
- Quote — Integrator requests a quote with
useDepositAddress: true. The response includes adepositAddressandrequestId. - User Deposit — User sends funds to the deposit address (wallet transfer or exchange withdrawal).
- Detect + Sweep — Relay detects the deposit onchain and sweeps funds to the depository contract. For open-ended addresses, the amount, currency, and chain are validated and the quote may be regenerated if different from the original. For strict addresses, the deposit is validated against the original order.
- Fill — Relay fills on the destination chain from pre-positioned liquidity. Funds are delivered to the recipient address.
Key Parameters
| Parameter | Type | Details |
|---|---|---|
useDepositAddress | boolean | Set to true to receive a deposit address instead of transaction calldata. |
user | address | The recipient wallet on the destination chain. Can be any valid address, including the zero address. |
recipient | address | The address that receives funds on the destination chain. |
refundTo | address | Address to send refunds if the transfer fails. Required for strict deposit addresses and for routes that include a destination-side swap. Omitting this on open addresses disables automatic refund. See Refund Behavior. |
tradeType | string | Must be EXACT_INPUT. Deposit addresses only support exact input trades — output varies based on market conditions at fill time. |
amount | string | The quoted amount in the origin token’s smallest unit. Open-ended addresses support variable deposit amounts. Strict addresses should be treated as exact-payment instructions. |
strict | boolean | Set to true for a strict deposit address tied to a specific order. Omit or set to false for an open deposit address. |
Address Reuse
Open deposit addresses can be reused for the same route (same origin currency, origin chain, destination currency, and destination chain). Each new deposit triggers a fresh quote and fill. Strict addresses should not be presented as reusable. They are bound to the original order and intended for single-use payment instructions.Open vs Strict Deposit Addresses
Relay supports two deposit address modes that differ in how flexible they are when handling deposits.Open Deposit Addresses
Open-ended deposit addresses are the flexible mode for supported routes. They can handle variable deposit amounts, and on some supported chain families they can also adapt to a different supported input token or a deposit on a different chain.refundTois recommended. OmittingrefundTodisables automatic refund — there is no internal fallback.- Best for: general-purpose integrations where you want tolerance for user variability.
Strict Deposit Addresses
Strict deposit addresses are bound to the original order and should be treated as predictable payment instructions. They are not flexible intake points.refundTois required. The request will fail without it.- Set
strict: truein your/quote/v2request. - Best for: integrations that need predictable behavior and explicit refund handling (e.g., payment processors).
Comparison
| Behavior | Open | Strict |
|---|---|---|
| Accepted currencies | Flexible — may adapt to a different supported token depending on chain family | Only the currency specified in the original quote |
| Wrong token (solver currency) | Requote and fill on some chain families (not universal) | Not supported — refund or manual recovery |
| Wrong token (non-solver) | Not supported in the normal fill flow; may require manual recovery | Not supported in the normal fill flow |
| Wrong chain (same VM) | Auto-reroute on EVM; other chain families may refund | Not supported |
| Wrong chain (different VM) | Not possible — address formats differ | Not possible — address formats differ |
| Amount mismatch | Usually requotes for actual amount; too-small deposits may refund | Exact payment expected |
refundTo | Recommended (omitting disables automatic refund) | Required |
| Address reuse | Yes, same route | No — bound to original order |
Example Request and Response
Open Deposit Address
Bridging 0.01 ETH from Base to Optimism using an open deposit address:Strict Deposit Address
Same route, but using a strict deposit address. Note the addition ofstrict: true and the required refundTo:
strictis set totruerefundTois required — the request fails without it- The deposit address is bound to this specific order and is not reusable
Quote Regeneration
When funds arrive at a deposit address, Relay evaluates what was sent versus what was originally quoted. How mismatches are handled depends on the deposit address mode.Open-Ended Addresses
Same Token, Different Amount
- Exact match — The original quote is reused and the fill proceeds directly.
- More than quoted — A new quote is generated for the larger amount, and the fill proceeds.
- Less than quoted — If the smaller amount still covers fees and the minimum fill, a new quote is generated and the fill proceeds. If not, the deposit is refunded to the
refundToaddress (if set).
Different Token (Solver Currency)
On some chain families, if the user sends a different token that is a solver currency, Relay can regenerate the quote using the actual currency deposited and fill the order. This is not universal across all chains — some chain families will fail or refund on token mismatch. If a different supported token was sent and nothing happens immediately, use the reindex endpoint as a fallback.Different Chain (Same VM)
On EVM chains, if the user deposits on the wrong chain but the address exists on that chain, Relay can auto-reroute the deposit. Other chain families may treat chain mismatch as an error and refund instead.Different Chain (Different VM)
This is not possible — deposit address formats differ across VM types (e.g., EVM vs Solana vs Bitcoin), so a user cannot accidentally send to the wrong VM.Strict Addresses
Strict addresses are bound to the original order. The handling is narrower:- Exact amount — The fill proceeds using the original order.
- Amount mismatch — The deposit may fail and be refunded to
refundTo. Send the exact quoted amount. - Wrong token or wrong chain — Not supported. Strict addresses do not have automatic wrong-token or wrong-chain recovery paths.
Refund Behavior
What happens when a deposit can’t be processed depends on the token type and therefundTo configuration.
Refund Flows
There are two distinct refund scenarios:- Correct currency, fill failed (e.g., slippage, network issues) — If
refundTois set, the deposit is automatically refunded to that address, minus the cost of gas. No additional fees are taken. - Wrong currency (non-solver token) — Not supported in the normal fill flow. Automatic recovery is not available; manual handling may be required.
refundTo Configuration
refundTo value | Behavior |
|---|---|
| User’s address | Refund directly to the user |
| App-controlled address | Refund to integrator’s address — your support team handles returning funds to the user |
| Not set (open) | Automatic refund is disabled — no internal fallback |
| Not set (strict) | Not allowed — refundTo is required for strict deposit addresses |
If users may send from a centralized exchange, do not use “refund to sender” — the sender address will be the exchange’s hot wallet, not the user’s. Use an app-controlled address instead so your support team can handle the last mile.
Recommended Setup
- Open deposit addresses: Set
refundToto the user’s address for automatic refunds. - Strict deposit addresses: Always set
refundTo. If the sender is unknown (e.g., CEX withdrawal), use an app-controlled address so your support team can manage refunds.
Tracking Transactions
Querying by Deposit Address
The most reliable way to track deposit address transactions is to poll the Get Requests API using thedepositAddress query parameter:
Handling Quote Regeneration
When a quote is regenerated (different amount, token, or chain), a newrequestId may be generated. Use includeChildRequests=true to find all related requests, including regenerated ones:
Request-Level Status
Once you have arequestId, you can use Get Status for detailed status polling:
Reindexing Stuck Deposits
Relay runs a background monitor that checks for deposits of the originally quoted token. If a user sent a different supported (solver) token, the background monitor may not detect it automatically. Use the Deposit Address Reindex endpoint to trigger on-demand re-detection. This checks all solver currency balances on the specified chain and triggers sweeps for any detected deposits.targetChainId to reindex a deposit that landed on a different chain than originally quoted. This is useful for operational recovery when funds were sent to the right address but on the wrong chain.
Pass currency to scope the reindex to a single currency address rather than iterating every depositable currency on the chain. This accepts any currency registered with Relay on the target chain — including currencies that aren’t on the standard solver-depositable list — and is useful when funds landed in a token outside that list (for example, a HyperCore-registered token when the deposit address was created for HyperEVM). Unknown currencies return 400.
The background monitor only checks the originally quoted input token. If a different supported token was sent, the monitor won’t detect it. Reindex checks all solver-depositable currencies and is the fallback path for these cases.
The deposit transaction hash cannot be used to look up the status of a deposit address bridge. Always use the deposit address itself or the
requestId to track status.Caveats
Gas Overhead
Deposit addresses add gas overhead compared to direct calldata execution because Relay must sweep funds from the deposit address:| Method | Token Type | Gas Overhead |
|---|---|---|
| Receiver | Native tokens (ETH, MATIC, etc.) | ~33,000 gas |
| Protocol | ERC-20 tokens | ~70,000 gas |
Supported Currencies
Only tokens listed as solver currencies for a given chain can be processed by deposit addresses. The input token must be a solver-depositable currency for the requested route. The destination token can differ and be completed through a destination-side swap — in that case,refundTo is required.
Relay treats certain tokens as equivalent within currency groups (e.g., ETH and WETH) — depositing any token in a group triggers the same fill behavior.
The table below is loaded live from the chains API. Each chain’s solverCurrencies array is the authoritative source for which tokens are supported.
Chain-Specific Notes
- Bitcoin — Requires 1 block confirmation before Relay processes the deposit. Deposits are detected via mempool monitoring but only acted on after confirmation.
- Solana — Supports SPL tokens through the protocol deposit method. Native SOL and SPL tokens like USDC are solver currencies on Solana.
- Hyperliquid — Uses bridged USDC (USDC.e) with different decimal precision than native USDC on other chains. Be aware of decimal mismatches when computing amounts.
Other Limitations
- Calldata execution on destination is not allowed.