Cancel an Order — Gasless
Cancel a limit order off-chain without paying gas by instructing the KyberSwap Operator to stop co-signing the order.
Cancel an Order — Gasless
Flow
GET /orders → POST /cancel-sign → sign EIP-712 → POST /cancelStep 1 — Get Active Orders
const { data } = await axios.get(
"https://limit-order.kyberswap.com/read-ks/api/v1/orders",
{ params: { chainId: 137, maker: signerAddress, status: "active" } }
);
const targetOrderId = data.data[0].id;Step 2 — Get the Unsigned EIP-712 Cancel Message
Step 3 — Sign the Cancel Message
Step 4 — Submit the Gasless Cancel
Related
Last updated
Was this helpful?