# intel402

Use this when an agent is about to pay an x402 endpoint and knows nothing about it.

## When to call

- before paying an origin the agent has not paid before
- before committing to N calls against one seller
- when a 402's price looks abnormal for its category

## Calls

```bash
# 1 · what is this seller?
curl -i "https://intel402.xyz/v1/intel/seller?origin=https://example.com"   # $0.02

# 2 · what does this category cost, and is it alive?
curl -i "https://intel402.xyz/v1/intel/category?name=crypto-intel"           # $0.03

# 3 · what will N calls cost here vs the median?
curl -i -X POST "https://intel402.xyz/v1/intel/cost" \
  -H 'content-type: application/json' \
  -d '{"challenge":"<PAYMENT-REQUIRED value>","n":100}'                      # $0.01
```

## How to pay

The first call returns `402` with a `PAYMENT-REQUIRED` header containing the price and `payTo`. Sign an EIP-3009
`TransferWithAuthorization` for that amount, retry with `PAYMENT-SIGNATURE`, and read the answer. `PAYMENT-RESPONSE`
carries the settlement.

## What it does not tell you

Whether the seller's *output* is any good. It tells you whether the seller answers, what it charges, and whether that price
is normal — not whether the data is correct.
