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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"receipt": "<receipt>",
"public_key": "<public_key>"
},
"name": "verify_receipt"
}
}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. |