v1

latestOpenAPI 3.0.32026-07-26184851.6 MB
Swap

Child Address Get Quote

This endpoint allows you to retrieve a quote for swapping assets.

Body Parameters

KeyRequiredTypeDescription
fromAssetIdtruestringThe master wallet asset id to swap from.
toAssetIdtruestringThe master wallet asset id to swap to.
amounttruestringThe amount to swap.
recipientAddressfalsestringThe external address you want to swap to
orderfalsestringeg, FASTEST, CHEAPEST, RECOMMENDED, NO_SLIPPAGE
post/v1/wallets/{walletId}/addresses/{addressId}/swaps/quote

Response

200 - External Recipient Address / 200 - Recipient Master Wallet

messagestring
statusCodenumber

Example response

{
  "data": {
    "amount": "999.208698",
    "estimatedArrivalTime": 30,
    "impact": "-0.08",
    "impactInUSD": "-0.791264",
    "minAmount": "989.208",
    "nativeBalance": "0.000857699568686543",
    "nativeBalanceInUSD": "1.56912705292928295678",
    "networkFee": "0.000090678936279694",
    "networkFeeInUSD": "0.16589348676624898524",
    "rate": "0.999208698",
    "slippage": "1.00"
  },
  "message": "Swap quote fetched successfully",
  "statusCode": 200
}