Get off-ramp quote
Request an Off-ramp quote for converting crypto on a supported source chain into the user's tokenized fiat. Pass best.to, best.swapCalldata, and best.minUsdcAmount to the Off-ramp contract exactly as returned, and submit before best.deadline. Final settlement is reported asynchronously through the transaction webhook with data.type CRYPTO_DEPOSIT.
Partner Auth: EIP-191 signature by the partner's registered backend key, with X-Api-Deadline and optional X-Api-PublicKey headers. See the Signature and verify guide.
0x-prefixed 65-byte hex EIP-191 signature over the Partner Auth message. See the Signature and verify guide.
Unix seconds. UR rejects the request when the current time is past the deadline. Keep the validity window at or under 5 minutes.
0x-prefixed partner signer address registered with UR.
Send at least one of X-Ur-Id or X-External-User-Id. When both are present, UR resolves the user by X-Ur-Id first.
Send at least one of X-Ur-Id or X-External-User-Id. When both are present, UR resolves the user by X-Ur-Id first.
Source chain ID in CAIP-2 format. See Supported Chains and Tokens.
Source crypto token contract address.
Target fiat currency symbol (USD, EUR, CHF, SGD, JPY, HKD).
Human-readable decimal string. UR converts it to token smallest units using the source token decimals.
Standard envelope. Business errors return HTTP 200 with a non-zero code.
Standard UR OpenAPI response envelope. code 0 means success; a non-zero code is a business error described by message.
0 on success; non-zero business error code.
Human-readable explanation. May be empty on success.
POST /api/fma/v1/quote/deposit HTTP/1.1
Host: openapi.ur.app
X-Api-Signature: text
X-Api-Deadline: text
X-Api-PublicKey: text
Content-Type: application/json
Accept: */*
Content-Length: 107
{
"chainId": "<source-chain-CAIP2>",
"fromToken": "0x_SOURCE_TOKEN_ADDRESS",
"toCurrency": "EUR",
"amount": "5000"
}Standard envelope. Business errors return HTTP 200 with a non-zero code.
{
"code": 0,
"message": "",
"data": {
"quoteId": "ur_1772002152589294701",
"chainId": "<source-chain-CAIP2>",
"targetAccount": "0x_USER_UR_ACCOUNT_ADDRESS",
"best": {
"aggregator": "1inch",
"to": "0x_AGGREGATOR_CONTRACT_ADDRESS",
"swapCalldata": "0x12aa...",
"minUsdcAmount": "4950000",
"expectedUsdcAmount": "5000000",
"deadline": 1772002211,
"priceImpact": "0.05"
},
"inputAmount": "5000",
"outputAmount": "5",
"exchangeRate": "1",
"crossChainFee": "111598233453575",
"networkFee": "3109867200000",
"amountReceived": "4950000"
}
}Last updated