Skip to main content
Prices a cross-chain deposit for a given source, destination, and amount. The quote it returns is the input to /deposit/transaction.

Request

source
object
required
Where the funds come from.
destination
object
required
Where the funds land.
amount
string
required
Amount to deposit, as a decimal string in the source token’s smallest unit (e.g. "5000000" = 5 USDC).
method
string
required
Funding method. Only "crypto" is supported in the preview.

Response

provider
string
Opaque identifier for the route source. Treat it as a black box and pass it back unchanged to /deposit/transaction and /deposit/status.
outAmount
string
The amount that will be delivered at the destination, as a decimal string in the destination token’s smallest unit (USDC).
validUntil
number
Optional. Unix timestamp (seconds) after which the quote may no longer be valid.
payload
object
Opaque route data. Do not inspect or modify it - pass the whole quote object back to /deposit/transaction.
curl -X POST "$RHEON_API/deposit/quote" \
  -H "Content-Type: application/json" \
  -d '{
    "source": {
      "address": "0x1111111111111111111111111111111111111111",
      "chain": 10,
      "token": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"
    },
    "destination": {
      "address": "0x2222222222222222222222222222222222222222"
    },
    "amount": "5000000",
    "method": "crypto"
  }'
{
  "provider": "rheon-router",
  "outAmount": "4986000",
  "validUntil": 1720800000,
  "payload": { "route": "..." }
}
{
  "error": {
    "code": "no_route",
    "message": "No route available for this pair."
  }
}

Errors

HTTPcodeWhen
400invalid_requestA field is missing or malformed, or method is not "crypto".
400no_routeNo provider can route this source/destination pair.
429rate_limitedOver the rate limit (5 requests / 10s / IP).
500internalUnexpected server error.