Hyperliquid Cancel-All Orders Preview is a paid API for AI agents from chainhilt.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-16).
Generates a preview of the EIP-712 typed-data action a user must sign to cancel all open orders on Hyperliquid, optionally scoped to a specific market.
Preview the Hyperliquid cancel-all action the user must sign; it cancels the account's open orders on the default perp DEX and spot, but not on builder-deployed perp DEXs. Errors: 400 invalid input or no open orders, 502 provider failure; execution may return 422 exchange rejection. Treat spot and perp as one balance only when the account abstraction mode is "unifiedAccount".
Returns a structured action object containing: the cancel-all action payload (with asset and order IDs), the EIP-712 typed data the user must sign (domain, types, message, primaryType), the nonce, the target chainId (Arbitrum/42161), the protocol identifier ('hyperliquid'), a submitPath for executing after signing, plus any errors or warnings encountered during construction.
POSThttps://chainhilt.ai/api/v1/perp/hyperliquid/order/cancel-all/preview?utm_source=zero.xyzUse this endpoint when you need to preview and obtain the exact EIP-712 signing payload for a cancel-all operation on Hyperliquid before submitting — particularly in agent workflows where human approval of the signed action is required, or when you want to inspect the full typed data structure before execution. Prefer this over direct execution endpoints when auditability, user confirmation, or dry-run validation is needed.
| Field | Type | Description |
|---|---|---|
| fast | boolean | true adds Hyperliquid's fast flag (f) to the cancel; otherwise it is omitted. |
| nonce | integer | Action nonce in milliseconds since the epoch; defaults to the current time. |
| expiresAfter | integer | Millisecond timestamp after which Hyperliquid rejects the action. Signed with the action. |
| vaultAddress | string | Vault or subaccount to act for; omit to act for the signer. Signed with the action. |
| accountAddress | string | Account holding the orders (main account, subaccount or vault), not the API signing wallet; its open orders on the default perp DEX and spot are cancelled. |
{
"type": "json",
"example": {
"response": {
"errors": [],
"actions": [
{
"data": {
"nonce": 1710000000000,
"action": {
"f": true,
"type": "cancel",
"cancels": [
{
"a": 0,
"o": 77738308
}
]
},
"typedData": {
"types": {
"Agent": [
{
"name": "source",
"type": "string"
},
{
"name": "connectionId",
"type": "bytes32"
}
],
"EIP712Domain": [
{
"name": "name",
"type": "string"
},
{
"name": "version",
"type": "string"
},
{
"name": "chainId",
"type": "uint256"
},
{
"name": "verifyingContract",
"type": "address"
}
]
},
"domain": {
"name": "Exchange",
"chainId": 1337,
"version": "1",
"verifyingContract": "0x0000000000000000000000000000000000000000"
},
"message": {
"source": "a",
"connectionId": "0x77b75cb0a420adad7a889990c81470cb13ee6aad0c4b956dc4db3be805792961"
},
"primaryType": "Agent"
}
},
"type": "signature",
"chainId": 42161,
"protocol": "hyperliquid",
"submitPath": "/perp/hyperliquid/order/cancel-all/execute"
}
],
"warnings": []
}
}
}No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"