Api Endpoint

chainhilt-x402

Prepare a USDC-only withdrawal to the signing account; other assets return 400. Unified account and portfolio margin accounts must use spot; manual mode may use spot or perp. Arbitrum receives the amount less a fee, and gas comes from the balance left, so the whole balance cannot be withdrawn. Sign the typedData and submit it unchanged to submitPath. 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/withdraw/preview
MIME type
Not provided
First seen
2026-11-05T17:25:19.430Z
Last seen
Tags
perp, hyperliquid, Trading, execution, Safety

Payment pricing

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

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

Observed health

Status
Healthy
Latest latency
432 ms
Average latency
462 ms
HTTP status
204
Last checked
Reachability
100% over 9 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",
      "additionalProperties": false,
      "properties": {
        "accountAddress": {
          "description": "Withdrawing account; the USDC goes to this address on the destination chain.",
          "pattern": "^0x[a-fA-F0-9]{40}$",
          "type": "string"
        },
        "amount": {
          "description": "USDC amount as a decimal string.",
          "pattern": "^(0|[1-9][0-9]*)(\\.[0-9]+)?$",
          "type": "string"
        },
        "destinationChainName": {
          "default": "Arbitrum",
          "description": "\"Arbitrum\" (the default) or \"HyperEVM\".",
          "enum": [
            "Arbitrum",
            "HyperEVM"
          ],
          "type": "string"
        },
        "gasLimit": {
          "description": "Arbitrum delivery gas limit; defaults to 200000. Ignored for HyperEVM.",
          "exclusiveMinimum": 0,
          "type": "integer"
        },
        "nonce": {
          "description": "Action nonce in milliseconds since the epoch; defaults to the current time.",
          "minimum": 0,
          "type": "integer"
        },
        "sourceDex": {
          "description": "Required withdrawal source: use \"spot\" for unified account and portfolio margin accounts, or \"\" for a separate perp balance.",
          "enum": [
            "",
            "spot"
          ],
          "type": "string"
        },
        "token": {
          "const": "USDC",
          "default": "USDC",
          "description": "Only \"USDC\" (the default).",
          "type": "string"
        }
      },
      "required": [
        "accountAddress",
        "amount",
        "sourceDex"
      ],
      "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"
}