curl --request POST \
--url https://api.hel.io/v1/deposits/{depositId}/swap-quote \
--header 'Content-Type: application/json' \
--data '
{
"fromCurrencyId": "63430c8348c610068bcdc482",
"amountIn": "1000000000000000",
"senderAddress": "0x1111111111111111111111111111111111111111",
"slippageBps": 100
}
'{
"provider": "DECENT",
"fromCurrency": {
"id": "63430c8348c610068bcdc482",
"symbol": "ETH",
"name": "Ethereum",
"decimals": 18,
"mintAddress": "0x0000000000000000000000000000000000000000",
"coinMarketCapId": 1027,
"symbolPrefix": "",
"type": "DIGITAL",
"blockchain": {
"id": "bc-base",
"name": "Base",
"symbol": "BASE",
"engine": {
"id": "engine-evm",
"name": "EVM"
}
}
},
"toCurrency": {
"id": "63430c8348c610068bcdc483",
"symbol": "USDC",
"name": "USD Coin",
"decimals": 6,
"mintAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"coinMarketCapId": 3408,
"symbolPrefix": "",
"type": "DIGITAL",
"blockchain": {
"id": "bc-base",
"name": "Base",
"symbol": "BASE",
"engine": {
"id": "engine-evm",
"name": "EVM"
}
}
},
"amountIn": "1000000000000000",
"amountInUsd": "3.21",
"amountOutGross": "3205000",
"amountOutNet": "3172950",
"amountOutUsd": "3.17",
"platformFeeBps": 100,
"platformFeeAmount": "32050",
"affiliateFeeBps": 0,
"affiliateFeeAmount": "0",
"slippageBps": 100,
"exchangeRate": 3205,
"estimatedPriceImpact": 0.001,
"expiresAt": "2026-05-14T13:58:13.608Z"
}Get Deposit Swap Quote
Returns a quote for funding a deposit: how much the merchant receives in the deposit’s settlement currency for a given input amount, and the fees involved. Works for crypto funding (same-currency, swap, or cross-chain) and fiat funding via MoonPay, Iron or Onramper.
curl --request POST \
--url https://api.hel.io/v1/deposits/{depositId}/swap-quote \
--header 'Content-Type: application/json' \
--data '
{
"fromCurrencyId": "63430c8348c610068bcdc482",
"amountIn": "1000000000000000",
"senderAddress": "0x1111111111111111111111111111111111111111",
"slippageBps": 100
}
'{
"provider": "DECENT",
"fromCurrency": {
"id": "63430c8348c610068bcdc482",
"symbol": "ETH",
"name": "Ethereum",
"decimals": 18,
"mintAddress": "0x0000000000000000000000000000000000000000",
"coinMarketCapId": 1027,
"symbolPrefix": "",
"type": "DIGITAL",
"blockchain": {
"id": "bc-base",
"name": "Base",
"symbol": "BASE",
"engine": {
"id": "engine-evm",
"name": "EVM"
}
}
},
"toCurrency": {
"id": "63430c8348c610068bcdc483",
"symbol": "USDC",
"name": "USD Coin",
"decimals": 6,
"mintAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"coinMarketCapId": 3408,
"symbolPrefix": "",
"type": "DIGITAL",
"blockchain": {
"id": "bc-base",
"name": "Base",
"symbol": "BASE",
"engine": {
"id": "engine-evm",
"name": "EVM"
}
}
},
"amountIn": "1000000000000000",
"amountInUsd": "3.21",
"amountOutGross": "3205000",
"amountOutNet": "3172950",
"amountOutUsd": "3.17",
"platformFeeBps": 100,
"platformFeeAmount": "32050",
"affiliateFeeBps": 0,
"affiliateFeeAmount": "0",
"slippageBps": 100,
"exchangeRate": 3205,
"estimatedPriceImpact": 0.001,
"expiresAt": "2026-05-14T13:58:13.608Z"
}How the provider is chosen
The destination currency always comes from the deposit (it must accept exactly one currency), so you only send what the payer funds with. Who prices the quote is returned inprovider.
| Funding | How to request | provider returned |
|---|---|---|
| Crypto, same currency as the deposit | Omit provider | HELIO (direct sweep, exchangeRate = 1) |
| Crypto, different currency or chain | Omit provider | GLIDE or DECENT, decided by the merchant’s deposit wallet setup |
| Card, Apple/Google Pay, bank via MoonPay | provider: "MOONPAY" | MOONPAY |
| Bank wire to a virtual account | provider: "IRON" | IRON |
| Onramp aggregator | provider: "ONRAMPER" | ONRAMPER |
GLIDE, DECENT and HELIO are picked by the server and cannot be requested; sending one returns 400. Cross-chain pairs are supported on the crypto paths. If no route exists, the endpoint returns 422.
Required fields by provider
| Field | Crypto (no provider) | MOONPAY | IRON | ONRAMPER |
|---|---|---|---|---|
fromCurrencyId, amountIn, senderAddress | ✅ | ✅ | ✅ | ✅ |
depositCustomerId | — | ✅ | ✅ | ✅ |
quoteCurrencyCode | — | ✅ (e.g. usdc_sol) | — | ✅ (e.g. usdc_solana) |
paymentMethodType | — | ✅ | — | — |
country | — | — | — | ✅ |
| Optional | slippageBps, paymentMethod | accessToken, paymentMethodId, sdkQuote | — | onramperPaymentMethod |
fromCurrencyId must be a fiat currency. amountIn is always in minimal units of fromCurrency, using its decimals from Get Deposit Currencies. Fiat currencies count too: 25 USD with 6 decimals is "25000000".
Which response fields each provider returns
provider, fromCurrency, toCurrency, amountIn, amountOutNet, platformFeeBps, affiliateFeeBps and expiresAt are always present. Everything else depends on the provider:
| Field | DECENT | GLIDE | HELIO | MOONPAY | IRON / ONRAMPER |
|---|---|---|---|---|---|
amountOutGross | ✅ | — | ✅ | ✅ | ✅ |
platformFeeAmount, affiliateFeeAmount (token units) | ✅ | — | ✅ | ✅ | ✅ |
processingFeeUsd, networkFeeUsd, totalFeeUsd | — | ✅ | — | ✅ | ✅ |
paymentMethodFee* | — | when paymentMethod set | when paymentMethod set | — | — |
slippageBps | ✅ | — | — | ✅ | — |
estimatedPriceImpact | ✅ | — | — | — | — |
etaSeconds | — | ✅ | — | — | — |
exchangeRateType, signature, paymentDisclosures, challenge | — | — | — | ✅ | — |
amountInUsd, amountOutUsd and paymentMethodFeeUsd are best-effort. They are omitted when no fresh USD rate is available.
provider before reading fees. GLIDE reports fees only in USD and never returns amountOutGross, platformFeeAmount or affiliateFeeAmount. Code that assumes those fields exist will break for merchants on Glide.Quote validity
- Crypto quotes are estimates. They are not locked or redeemed at settlement.
expiresAtis 30 seconds after issue; after that, fetch a new quote instead of showing a stale price. What the merchant actually receives is decided when the deposit is swept. MOONPAYuses MoonPay’s ownexpiresAt. AfixedexchangeRateTypeis locked; afloatingone (bank transfers) must be shown to the customer as an estimate.IRONandONRAMPERreturn a pricing preview that expires 30 seconds after issue.
Using MoonPay quotes
A MoonPay quote you can execute needs the customer’s MoonPay PlatformaccessToken, which the MoonPay web SDK holds after getConnection(). Without it (and without sdkQuote) you get a public preview price only. Before the customer pays:
- Render every entry in
paymentDisclosuresverbatim. - If
challengeis present, show itsurlframe and let the customer complete it. - Pass
signatureto the MoonPay payment frame, which cannot start without it.
Body
Request body for fetching a deposit swap quote. For crypto funding send only the common fields and omit provider. For fiat funding set provider and the fields that provider requires.
Currency ID the payer funds with. A digital currency for crypto funding (may be on a different chain from, or the same as, the deposit settlement currency), or a fiat currency for MOONPAY / IRON / ONRAMPER. Retrieve IDs via the Get Deposit Currencies endpoint.
"63430c8348c610068bcdc482"
Input amount in fromCurrency minimal units as a positive integer string, using the currency's decimals from GET /v1/currency/all. E.g. "1000000" = 1 USDC (6 decimals); fiat currencies also use minimal units, so 25 USD (6 decimals) is "25000000".
^[1-9]\d*$"1000000"
How the deposit wallet will be funded. When the settling sweep charges a payment-method surcharge (e.g. COINBASE on the GLIDE and HELIO paths) the quote includes it in paymentMethodFee* so it matches what settles. Omitted or CRYPTO: no surcharge.
CRYPTO, ONRAMP, COINBASE, BINANCE Fiat provider to quote. Omit for crypto funding: requesting GLIDE, DECENT or HELIO returns 400. MOONPAY is the hosted card / wallet / bank checkout; IRON is a virtual bank account the payer wires to; ONRAMPER is an onramp aggregator (pricing preview only).
MOONPAY, IRON, ONRAMPER MOONPAY only. The customer's MoonPay Platform access token, held by the MoonPay web SDK after getConnection(). Required for an executable quote; without it (and without sdkQuote) the server returns a public preview price. The single-use token from the session endpoint is not accepted.
Response
Swap quote retrieved successfully.
Quote for funding a deposit. Which optional fields are present depends on provider — see the provider table on the page.
