Verify an agent payment receipt
verify_receiptValidate a signed proof-of-spend receipt offline: check schema, Ed25519 signature, mandate expiry, amount math, and refund limits to confirm an agent's charge was authorized.
Instructions
Check a signed proof-of-spend receipt offline: schema, Ed25519 signature, mandate expiry, positive amount, quantity*unit_price == amount, refund not above payment. Use when an agent or provider returns a receipt and you need to know whether it actually proves the charge was allowed. Do NOT use to move funds or to confirm a transaction on-chain - nothing here reads a chain.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| receipt | Yes | The receipt document as JSON. | |
| public_key | Yes | Ed25519 public key, base64url (from keygen) or 64 hex chars. |