Skip to main content

Deep link

One URL. Open in a new tab.

const url = new URL(`https://app.zksdk.io/embed/pools/${POOL_ID}`);
url.searchParams.set("chain", "evm");
url.searchParams.set("tokenIn", userSelectedTokenIn);
url.searchParams.set("tokenOut", userSelectedTokenOut);
url.searchParams.set("amount", userAmountInUnits);

window.open(url.toString(), "_blank");

All four params are optional — any you omit, the user fills in. They land on the hosted swap page with their selection pre-filled, sign one EIP-712 message, broadcaster lands the swap, they return via browser history.

Ships in v0.95.