API integration
1
2
Request a quote
curl -X POST "https://intents-api.aurora.dev/api/tokens/${appKey}" \
-H "Content-Type: application/json" \
-d '{
"dry": false,
"swapType": "EXACT_INPUT",
"slippageTolerance": 100,
"originAsset": "nep141:wrap.near",
"depositType": "ORIGIN_CHAIN",
"destinationAsset": "nep141:arb-0x912ce59144191c1204e64559fe8253a0e49e6548.omft.near",
"amount": "100000000000000000000000",
"recipient": "0xYourArbitrumAddress",
"recipientType": "DESTINATION_CHAIN",
"refundTo": "your-account.near",
"refundType": "ORIGIN_CHAIN",
"deadline": "2025-01-01T00:00:00.000Z"
}'const quote = await fetch(`https://intents-api.aurora.dev/api/tokens/${appKey}`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
dry: false,
swapType: 'EXACT_INPUT',
slippageTolerance: 100,
originAsset: 'nep141:wrap.near',
depositType: 'ORIGIN_CHAIN',
destinationAsset: 'nep141:arb-0x912ce59144191c1204e64559fe8253a0e49e6548.omft.near',
amount: '100000000000000000000000',
recipient: '0xYourArbitrumAddress',
recipientType: 'DESTINATION_CHAIN',
refundTo: 'your-account.near',
refundType: 'ORIGIN_CHAIN',
deadline: new Date(Date.now() + 3 * 60 * 1000).toISOString()
})
});
const result = await quote.json();Last updated
