This service charges $0.10 per call to /generate. Hit it
with an x402-aware client and you will receive a 402 response that
carries an AttestSeal trust attestation in HTTP headers.
$ http GET https://demo.attestseal.com/generate
In the response, look for X-AttestSeal-Issuer,
X-AttestSeal-Recommendation,
X-AttestSeal-Assurance-Basis, and
X-AttestSeal-Signature. An x402-aware client verifies the
signature against https://attestseal.com/.well-known/did.json
and decides whether to send payment.
X-AttestSeal-* HTTP Header Specification
pip install attestseal-x402
from attestseal_x402 import AttestationVerifier
import httpx
resp = httpx.get("https://demo.attestseal.com/generate")
verifier = AttestationVerifier()
result = verifier.verify_response_headers(resp.headers, request_url=str(resp.url))
print(result.ok, result.attestation.recommendation, result.attestation.assurance_basis)
Source for this demo: github.com/AttestSeal/attestseal/examples/x402-demo