v1
latestOpenAPI 3.0.32026-07-26184851.6 MBSwap
Master Wallet 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 amount to swap. |
| recipientAddress | false | string | The external address you want to swap to |
| order | false | string | eg, FASTEST, CHEAPEST, RECOMMENDED, NO_SLIPPAGE |
post/v1/wallets/{walletId}/swaps/quote
Response
200 - External Recipient Address / 200 - Recipient Master Wallet
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
}