Zap Migrate — Move Between Pools
Use the ZaaS API to migrate an existing liquidity position from one pool to another in a single transaction.
Last updated
Was this helpful?
Was this helpful?
curl -X POST "https://zap-api.kyberswap.com/{chain}/api/v1/migrate/route/build" \
-H "content-type: application/json" \
-H "x-client-id: your-client-id" \
-d '{
"sender": "0xYourAddress",
"recipient": "0xYourAddress",
"route": "<route from GetMigrateRoute response>",
"deadline": 1800000000
}'const tx = await signer.sendTransaction({
to: buildResponse.routerAddress,
data: buildResponse.calldata,
value: buildResponse.value,
gasLimit: getMigrateRouteResponse.gas * 2,
});