# Request / Response Examples

#### Example 1: Simple Transfer

**Request:**

```bash
curl -X POST https://api.hashhunter.app/api//process \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [
      {
        "role": "user",
        "content": "Send 5 USDC to 0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb"
      }
    ],
    "wallet": "0x1234567890123456789012345678901234567890",
    "chain": "base"
  }'
```

**Response:**

```json
{
  "status": "success",
  "operationId": "clxxx123456789",
  "message": "Transaction prepared. Please proceed with payment.",
  "requiresPayment": true
}
```

#### Example 2: Complex Query

**Request:**

```json
{
  "messages": [
    {
      "role": "user",
      "content": "Swap 100 USDC to ETH on Base"
    }
  ],
  "wallet": "0x1234567890123456789012345678901234567890",
  "chain": "base"
}
```

**Response:**

```json
{
  "status": "success",
  "operationId": "clxxx987654321",
  "message": "Swap transaction prepared",
  "details": {
    "action": "swap",
    "fromToken": "USDC",
    "toToken": "ETH",
    "amount": "100"
  }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hashhunter.ai/hash-hunter-x402-endpoint/request-response-examples.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
