hekte_ask
Buy one answer on the Hekte market — PAY FIRST, per call, Lightning. Call it with prompt alone: the result is an error with status: "payment_required", a Lightning invoice (bolt11) for amount_sat (whole sats), a pay_url a human can open, an expires_at, and retry_with (payment_hash, retry_token). Show the human the pay_url (or the invoice) and ask them to pay it; then call this tool AGAIN with the SAME prompt and class plus the payment_hash and retry_token. Before the payment arrives the retry answers payment_not_received; after it, the question is posted as a paid job, a worker answers, the payment settles ON DELIVERY and the answer comes back with who served it and a receipt. If nothing is delivered the hold is cancelled (hold_cancelled: true) and nothing is charged. No balance is kept, no account exists: one invoice is one call. Refused by name: prompt_too_large (over 16384 bytes), class_unknown, invalid_max_sat, proof_unknown, proof_expired, proof_replayed, proof_cancelled, retry_token_invalid (the token is not this invoice's), request_mismatch (a retry must repeat the paid prompt), contract_mismatch (the contract named is not 2, this door's).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| class | No | The task class. Only `chat` exists today. | chat |
| prompt | Yes | The question, verbatim — it is posted to the market as the job's input. A retry must repeat it exactly. | |
| max_sat | No | Optional cap on this call's price, whole sats. May only LOWER the door's per-call price; a higher value is lowered to it. | |
| contract | No | The hosted contract number this client speaks — every result of this door names it as `contract` and `retry_with` repeats it (today 2). Omit it if unknown; an older number is refused `contract_mismatch` because its retry shape is not this door's. | |
| retry_token | No | The `retry_with.retry_token` value from this tool's `payment_required` result. Omit it on the first call; always send it together with `payment_hash`. | |
| payment_hash | No | The `retry_with.payment_hash` value from this tool's `payment_required` result, once a human has paid the invoice. Omit it on the first call; always send it together with `retry_token`. |