curl --request POST \
--url https://api.blockradar.co/v1/wallets/{walletId}/addresses/{addressId}/swaps/quote \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"amount": "1000",
"amountSide": "source",
"fromAssetId": "eda105b9-9471-4149-adb3-7dbf285ec0ab",
"toAssetId": "84c8ad33-1450-4d61-9f8f-f0505039f2ec",
"recipientAddress": "0x2455eC6700092991Ce0782365A89d5Cd89c8Fa22",
"order": "RECOMMENDED"
}
'{
"data": {
"amount": "999.208698",
"fromAmount": "1000",
"toAmount": "999.208698",
"requestedAmount": "1000",
"amountSide": "source",
"recipientRouting": {
"status": "embedded",
"message": "The recipient routing ID is embedded in the normalized destination address."
},
"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",
"transactionFee": 0
},
"message": "Swap quote fetched successfully",
"statusCode": 200
}Child Address Get Quote
This endpoint allows you to retrieve a quote for swapping assets.
Body Parameters
| Key | Required | Type | Description |
|---|---|---|---|
| fromAssetId | true | string | The master wallet asset id to swap from. |
| toAssetId | true | string | The master wallet asset id to swap to. |
| amount | true | string | The source amount when amountSide is source, or the target amount when amountSide is target. |
| amountSide | false | string | source or target. Defaults to source. Use target to request an exact destination amount. |
| recipientAddress | false | string | The external address you want to swap to. For Stellar destinations, use a G… base account or M… muxed account. |
| recipientRouting | false | object | Supported only when the destination chain is Stellar. G… recipients must use none or memo_id; M… recipients must omit this field. Non-Stellar requests that include this field are rejected. |
| order | false | string | eg, FASTEST, CHEAPEST, RECOMMENDED, NO_SLIPPAGE |
curl --request POST \
--url https://api.blockradar.co/v1/wallets/{walletId}/addresses/{addressId}/swaps/quote \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"amount": "1000",
"amountSide": "source",
"fromAssetId": "eda105b9-9471-4149-adb3-7dbf285ec0ab",
"toAssetId": "84c8ad33-1450-4d61-9f8f-f0505039f2ec",
"recipientAddress": "0x2455eC6700092991Ce0782365A89d5Cd89c8Fa22",
"order": "RECOMMENDED"
}
'{
"data": {
"amount": "999.208698",
"fromAmount": "1000",
"toAmount": "999.208698",
"requestedAmount": "1000",
"amountSide": "source",
"recipientRouting": {
"status": "embedded",
"message": "The recipient routing ID is embedded in the normalized destination address."
},
"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",
"transactionFee": 0
},
"message": "Swap quote fetched successfully",
"statusCode": 200
}Authorizations
Path Parameters
"YOUR_WALLET_ID"
"ADDRESS_ID"
Body
The asset ID to swap from.
"eda105b9-9471-4149-adb3-7dbf285ec0ab"
The asset ID to swap to.
"84c8ad33-1450-4d61-9f8f-f0505039f2ec"
The source amount when amountSide is source, or the target amount when amountSide is target.
"1000"
Use source when amount is the asset amount to spend. Use target when amount is the destination asset amount to receive.
source, target "source"
The external address you want to swap to. For Stellar destinations, send a G... base account or M... muxed account.
Recipient routing is supported only when the destination chain is Stellar. Non-Stellar requests that include this field are rejected. A G... Stellar base account must specify none or memo_id; an M... muxed account already embeds the routing ID and must not include this field. No separate recipient memo field is accepted or exposed. When type is memo_id, the backend normalizes the G... address to an M... address before requesting a quote or execution.
- Option 1
- Option 2
Show child attributes
Show child attributes
Quote preference.
FASTEST, CHEAPEST, RECOMMENDED, NO_SLIPPAGE "RECOMMENDED"

