x420_receipt_verify
X420 receipt verify: Verifies an X420-style signed receipt: recomputes sha256 of the canonical deliverable, checks it against the receipt, verifies the ed25519 signature, and checks the payee id against the key. The key is the one you pass or the receipt_signing_key on the seller's /.well-known/agent.json. Pure cryptography. Not professional, legal, insurance, engineering, medical, financial or tax advice. Price: $0.002 USDC per call (x402 on Base). This hosted tool does NOT pay and does NOT return the deliverable: it validates the input and returns payment instructions (pay_to, network, price and the x402 URL to pay at). GET the url; read PAYMENT-REQUIRED from the 402; retry with PAYMENT-SIGNATURE (x402 v2). Or run the local x420-mcp server with your own wallet key to pay automatically. Deliverable once paid: JSON: valid, reasons[], checks{signature_valid, deliverable_hash_matches, payee_matches_key}, key{agent_id, source}.
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>",
"deliverable": "<deliverable>"
},
"name": "x420_receipt_verify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| receipt | Yes | the receipt object as a JSON string | |
| agent_url | No | seller origin whose /.well-known/agent.json holds the key (default https://signature-theme.com) | |
| deliverable | Yes | the deliverable object as a JSON string | |
| payee_public_key_hex | No | seller's ed25519 SPKI key, 88 hex chars (default: read from the agent card) |