π Swapping
Overview
How It Works
Fetching the Best Swap Route
tsCopyEditconst getRoute = async (params: any) => {
const result = await axios.post(
"https://apiplus.squidrouter.com/v2/route",
params,
{ headers: { "x-integrator-id": integratorId } }
);
return result.data.route;
};Executing the Swap
Why Use FlashFi for Swaps?
Last updated