Priority Settlement
Priority Settlement (Same Asset)
🧭 Intent Creation Flow
🔹 Endpoints
GET https://api.everclear.org/routes/quotesPOST https://api.everclear.org/intents/🧠 Example: Fast Path (Same Asset)
const axios = require('axios');
// Construct intent
const data = JSON.stringify({
"amount": "10000000000",
"origin": "10",
"destinations": ["1"],
"inputAsset": "0xdAC17F958D2ee523a2206206994597C13D831ec7", // USDT on OP
"to": "0xade09131C6f43fe22C2CbABb759636C43cFc181e",
"from": "0xade09131C6f43fe22C2CbABb759636C43cFc181e",
"isFastPath": true
});
const config = {
method: 'post',
url: 'https://api.everclear.org/routes/quotes',
headers: {
'Content-Type': 'application/json'
},
data
};
// Get Quote
axios.request(config)
.then((response) => console.log(JSON.stringify(response.data, null, 2)))
.catch((error) => console.error(error));Last updated

