Api Endpoint

chainhilt-x402

Prepare an order for L1 signing with the configured lowercase builder and fee in tenths of a basis point. Sign and submit unchanged to the returned submitPath. Errors: 400 invalid input, 409 builder approval slots full, 428 builder fee not yet approved (sign the returned approval, then retry), 502 provider failure, 503 builder not configured. Treat spot and perp as one balance only when the account abstraction mode is "unifiedAccount".

Open interactive test console

Offering

Provider
chainhilt.ai
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://chainhilt.ai/api/v1/perp/hyperliquid/order/place/preview
MIME type
Not provided
First seen
2026-11-05T17:25:19.430Z
Last seen
Tags
perp, hyperliquid, Trading, execution, orders

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.01 USDC
Atomic price: 10000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "payTo": "0xdECE8E839414E4a99213C658ABbD2294d5BD42B0"
  }
]

Observed health

Status
Healthy
Latest latency
525 ms
Average latency
465 ms
HTTP status
204
Last checked
Reachability
100% over 8 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "additionalProperties": false,
  "properties": {
    "body": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "properties": {
        "accountAddress": {
          "description": "The main account whose builder-fee approval is checked; with an API wallet, its owner, not the API wallet. Returned as response metadata; not part of the signed action.",
          "pattern": "^0x[a-fA-F0-9]{40}$",
          "type": "string"
        },
        "action": {
          "description": "Order action in Hyperliquid wire order; preview adds the builder.",
          "properties": {
            "builder": {
              "description": "Ignored: preview sets the API's configured builder and fee.",
              "properties": {
                "b": {
                  "description": "Builder address, lowercase.",
                  "pattern": "^0x[0-9a-f]{40}$",
                  "type": "string"
                },
                "f": {
                  "description": "Builder fee in tenths of a basis point (10 = 1 bp).",
                  "minimum": 0,
                  "type": "integer"
                }
              },
              "required": [
                "b",
                "f"
              ],
              "type": "object"
            },
            "grouping": {
              "description": "\"na\" for no grouping, \"normalTpsl\" to tie TP/SL orders to the parent order, or \"positionTpsl\" for position TP/SL.",
              "enum": [
                "na",
                "normalTpsl",
                "positionTpsl"
              ],
              "type": "string"
            },
            "orders": {
              "description": "Orders to place, at least one.",
              "items": {
                "additionalProperties": false,
                "properties": {
                  "a": {
                    "description": "Asset ID from /perp/hyperliquid/asset-id: perp index, or 10000 + spot index.",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "b": {
                    "description": "true to buy, false to sell.",
                    "type": "boolean"
                  },
                  "c": {
                    "description": "Client order ID: 128-bit hex string, e.g. 0x1234567890abcdef1234567890abcdef.",
                    "maxLength": 34,
                    "minLength": 34,
                    "pattern": "^0x[a-fA-F0-9]+$",
                    "type": "string"
                  },
                  "p": {
                    "description": "Limit price as a decimal string.",
                    "pattern": "^(0|[1-9][0-9]*)(\\.[0-9]+)?$",
                    "type": "string"
                  },
                  "r": {
                    "description": "true for reduce-only.",
                    "type": "boolean"
                  },
                  "s": {
                    "description": "Size as a decimal string, rounded to the asset's szDecimals.",
                    "pattern": "^(0|[1-9][0-9]*)(\\.[0-9]+)?$",
                    "type": "string"
                  },
                  "t": {
                    "anyOf": [
                      {
                        "additionalProperties": false,
                        "properties": {
                          "limit": {
                            "additionalProperties": false,
                            "description": "Limit order.",
                            "properties": {
                              "tif": {
                                "description": "Alo (post only), Ioc (immediate or cancel) or Gtc (good til canceled).",
                                "enum": [
                                  "Gtc",
                                  "Alo",
                                  "Ioc"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "tif"
                            ],
                            "type": "object"
                          }
                        },
                        "required": [
                          "limit"
                        ],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "trigger": {
                            "additionalProperties": false,
                            "description": "Trigger (take profit or stop loss) order.",
                            "properties": {
                              "isMarket": {
                                "description": "true to execute as a market order when triggered.",
                                "type": "boolean"
                              },
                              "tpsl": {
                                "description": "\"tp\" for take profit, \"sl\" for stop loss.",
                                "enum": [
                                  "tp",
                                  "sl"
                                ],
                                "type": "string"
                              },
                              "triggerPx": {
                                "description": "Trigger price as a decimal string.",
                                "pattern": "^(0|[1-9][0-9]*)(\\.[0-9]+)?$",
                                "type": "string"
                              }
                            },
                            "required": [
                              "isMarket",
                              "triggerPx",
                              "tpsl"
                            ],
                            "type": "object"
                          }
                        },
                        "required": [
                          "trigger"
                        ],
                        "type": "object"
                      }
                    ],
                    "description": "Order type: { limit: { tif } } or { trigger: { isMarket, triggerPx, tpsl } }."
                  }
                },
                "required": [
                  "a",
                  "b",
                  "p",
                  "s",
                  "r",
                  "t"
                ],
                "type": "object"
              },
              "minItems": 1,
              "type": "array"
            },
            "type": {
              "const": "order",
              "description": "Always \"order\".",
              "type": "string"
            }
          },
          "required": [
            "type",
            "orders",
            "grouping"
          ],
          "type": "object"
        },
        "expiresAfter": {
          "description": "Millisecond timestamp after which Hyperliquid rejects the action. Signed with the action.",
          "minimum": 0,
          "type": "integer"
        },
        "nonce": {
          "description": "Action nonce in milliseconds since the epoch; defaults to the current time.",
          "minimum": 0,
          "type": "integer"
        },
        "vaultAddress": {
          "description": "Vault or subaccount to act for; omit to act for the signer. Signed with the action.",
          "pattern": "^0x[a-fA-F0-9]{40}$",
          "type": "string"
        }
      },
      "required": [
        "accountAddress",
        "action"
      ],
      "type": "object"
    },
    "bodyType": {
      "enum": [
        "json",
        "form-data",
        "text"
      ],
      "type": "string"
    },
    "method": {
      "enum": [
        "POST"
      ],
      "type": "string"
    },
    "type": {
      "const": "http",
      "type": "string"
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "type": "object"
}

Output schema

{
  "properties": {
    "example": {
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}