latestOpenAPI 3.1.02026-08-108094177.6 KB

087dcf516ce2

External Wallet Access Mode

Get off-ramp quote (EVM)

Returns the best aggregator quote for an EVM crypto deposit into fiat, including network and cross-chain fees. Quotes are cached for 60 seconds. Pass best.to, best.swapCalldata, and best.minUsdcAmount to the Off-ramp contract's depositTokenViaAggregator call.

post/api/v1/partner/quote/deposit

Headers

tokenIdstring required

The user's URID (NFT token id).

Request body

chainIdstring required

Source chain ID (CAIP-2), e.g. eip155:1.

userAddressstring required

User wallet address used to build the route.

fromTokenstring required

Source token address. Use the zero address for native tokens.

toTokenstring required

Target fiat token contract address.

amountstring required

Deposit amount in the token's smallest unit.

Response

Response envelope. For the user API, retCode 0 means success; for the partner API, code 0 means success. Business rejections return HTTP 200 with a non-zero code.

retCodeinteger required

0 on success; non-zero indicates failure.

retMsgstring required

Human-readable message; error details when retCode is non-zero.

{"stackTrail":"components:schemas:EwaEnvelope:properties:result","oasType":"schema","type":"unknown","description":"Business payload. Shape depends on the endpoint; some endpoints return it as a JSON-encoded string."}
timeNowinteger

Server timestamp in milliseconds.