Confidential Swaps
2
Request a confidential quote
curl -X POST https://intents-api.aurora.dev/api/quote/{$YOUR_API_KEY} \
-H "Content-Type: application/json" \
-d '{
"dry": false,
"confidentiality": "advanced",
"swapType": "EXACT_INPUT",
"amount": "1000000",
"originAsset": "<originAssetId>",
"destinationAsset": "<destinationAssetId>",
"depositType": "ORIGIN_CHAIN",
"recipient": "<recipientAddress>",
"recipientType": "DESTINATION_CHAIN",
"refundTo": "<refundAddress>",
"refundType": "ORIGIN_CHAIN",
"slippageTolerance": 100,
"deadline": "2026-07-06T12:00:00.000Z"
}'const res = await fetch(
`https://intents-api.aurora.dev/api/quote/${API_KEY}`,
{
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
dry: false,
confidentiality: "advanced",
swapType: "EXACT_INPUT",
amount: "1000000",
originAsset: originAssetId,
destinationAsset: destinationAssetId,
depositType: "ORIGIN_CHAIN",
recipient: recipientAddress,
recipientType: "DESTINATION_CHAIN",
refundTo: refundAddress,
refundType: "ORIGIN_CHAIN",
slippageTolerance: 100,
deadline: new Date(Date.now() + 10 * 60_000).toISOString(),
}),
}
);
const { quote } = await res.json();
// quote.depositAddress is the confidential deposit address3
Last updated
