Api Endpoint

chainhilt-x402

Select the best available swap quote and return ordered unsigned transaction actions. Run the returned actions in order: up to two approvals, then the swap. Errors: 400 invalid input, 502 when no connector quotes or the swap cannot be built.

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/swap/execute
MIME type
Not provided
First seen
2026-11-01T15:04:33.795Z
Last seen
Tags
Swap, execution

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
957 ms
Average latency
847 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": {
      "additionalProperties": false,
      "properties": {
        "buyToken": {
          "description": "Token to buy; the zero address (or 0xEeee…EEeE) buys the chain's native token.",
          "pattern": "^0x[a-fA-F0-9]{40}$",
          "type": "string"
        },
        "chainId": {
          "description": "EVM chain id the swap runs on, such as 8453 for Base.",
          "minimum": 1,
          "type": "integer"
        },
        "excludedConnectors": {
          "description": "Connector ids to skip, as listed by GET /swap/connectors.",
          "items": {
            "enum": [
              "1inch",
              "0x",
              "kyberswap",
              "velora",
              "enso",
              "okx",
              "bebop",
              "openocean"
            ],
            "type": "string"
          },
          "type": "array",
          "uniqueItems": true
        },
        "sellAmount": {
          "description": "Exact amount of sellToken to sell, as an integer string in its base units.",
          "pattern": "^[0-9]+$",
          "type": "string"
        },
        "sellToken": {
          "description": "Token to sell; the zero address (or 0xEeee…EEeE) sells the chain's native token.",
          "pattern": "^0x[a-fA-F0-9]{40}$",
          "type": "string"
        },
        "slippageBps": {
          "description": "Slippage tolerance in basis points, up to 5000. Defaults to 100 (1%).",
          "maximum": 5000,
          "minimum": 0,
          "type": "integer"
        },
        "takerAddress": {
          "description": "Wallet that signs and sends the swap; every returned action is from it.",
          "pattern": "^0x[a-fA-F0-9]{40}$",
          "type": "string"
        }
      },
      "required": [
        "chainId",
        "sellToken",
        "buyToken",
        "sellAmount",
        "takerAddress"
      ],
      "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"
}