Skip to content
Fourohtwo

Prepare a single-order modification by OID or CLOID for L1 signing

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

Prepare a single-order modification by OID or CLOID for L1 signing. Supply the full replacement order. Omit action.a unless true. Sign and submit unchanged using the returned submitPath. See /skills.md for signing rules. Errors: 400 invalid input; execution may return 422 exchange rejection or 502 provider failure. Treat spot and perp as one balance only when the account abstraction mode is "unifi

BaseAnswering
POSThttps://chainhilt.ai/api/v1/perp/hyperliquid/order/modify/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/modify/preview", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"action":{"oid":77738308,"order":{"a":0,"b":true,"p":"60000","r":false,"s":"0.01","t":{"limit":{"tif":"Alo"}}},"type":"modify"},"nonce":1710000000000}),
});
console.log(await res.json());

Example input

{
  "action": {
    "oid": 77738308,
    "order": {
      "a": 0,
      "b": true,
      "p": "60000",
      "r": false,
      "s": "0.01",
      "t": {
        "limit": {
          "tif": "Alo"
        }
      }
    },
    "type": "modify"
  },
  "nonce": 1710000000000
}

More from chainhilt-x402