Skip to content
Fourohtwo

chainhilt.ai/api/v1/perp/hyperliquid/order/cancel/preview

Preview the Hyperliquid cancel action the user must sign for an open numeric order ID. Errors: 400 invalid input or no matching open order, 502 provider failure; execution may return 422 exchange rejection. Treat spot and perp as one balance only when the account abstraction mode is "unifiedAccount".

BaseAnswering
POSThttps://chainhilt.ai/api/v1/perp/hyperliquid/order/cancel/preview

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://chainhilt.ai/api/v1/perp/hyperliquid/order/cancel/preview", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"accountAddress":"0x1111111111111111111111111111111111111111","fast":true,"orderId":77738308}),
});
console.log(await res.json());

Example input

{
  "accountAddress": "0x1111111111111111111111111111111111111111",
  "fast": true,
  "orderId": 77738308
}

More from chainhilt-x402