Audit a seller
Paid, flat price (0.01 HBAR by default). Served by sellers running as auditor (or both). The auditor fetches the subject’s manifest, checks it against the registry listing, probes the paid endpoints for payment integrity, reviews the descriptions with an LLM, and writes audit_started, one audit_stage per stage and a final attestation to the HCS audit topic, all paid by the auditor account. Buyers accept the attestation only when the HCS payer equals auditorAccount and contentHash matches the listing they hold. Send a fresh auditId (a_ plus 16 hex) so you can follow streamAuditEvents while this request is open. Any failure cancels settlement; an auditor refuses to attest itself.
BuyerAgent.audit() handle it.Headers
x402 payment payload (base64 JSON) built from the PAYMENT-REQUIRED challenge of the 402 answer. Omit on the first call to receive the price. BuyerAgent and @x402/fetch set this for you. The legacy name X-PAYMENT is also accepted.
Body
Name the subject by uaid (needs a registry on the auditor) or by URL
uaid or listing name of the seller to audit, resolved through the registry
Base URL of the seller; its manifest is fetched directly
Fresh id you generate so you can stream progress while the request is open
^a_[0-9a-f]{16}$Quote to pin the price to
Response
Completed audit with its attestation and, when recorded, the HCS records
The verdict, written last to the audit topic by the auditor account
Audit topic, null on a dry run
HCS publication results for audit_started, each stage and the attestation; empty on a dry run
true when the trail was written to HCS