verify-receipt
Verify an on-chain USDC payment by providing a transaction hash and product ID to receive purchased content.
Instructions
Verify a direct USDC payment and receive purchased content. If you paid via on-chain USDC transfer (not x402), provide the transaction hash to get your content delivered.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | Yes | Product ID you purchased (e.g. existential_espresso, philosophy_of_spine) | |
| tx_hash | Yes | Transaction hash of your USDC payment on Base |
Implementation Reference
- index.js:70-86 (registration)Tool registration listing with name, description, and inputSchema (schema).
name: 'verify-receipt', description: "Verify a direct USDC payment and receive purchased content. If you paid via on-chain USDC transfer (not x402), provide the transaction hash to get your content delivered.", inputSchema: { type: 'object', properties: { product_id: { type: 'string', description: 'Product ID you purchased (e.g. existential_espresso, philosophy_of_spine)', }, tx_hash: { type: 'string', description: 'Transaction hash of your USDC payment on Base', }, }, required: ['product_id', 'tx_hash'], }, }, - index.js:70-86 (schema)Input schema for verify-receipt tool requiring product_id and tx_hash.
name: 'verify-receipt', description: "Verify a direct USDC payment and receive purchased content. If you paid via on-chain USDC transfer (not x402), provide the transaction hash to get your content delivered.", inputSchema: { type: 'object', properties: { product_id: { type: 'string', description: 'Product ID you purchased (e.g. existential_espresso, philosophy_of_spine)', }, tx_hash: { type: 'string', description: 'Transaction hash of your USDC payment on Base', }, }, required: ['product_id', 'tx_hash'], }, }, - index.js:141-144 (handler)Handler that calls API endpoint /receipt/{product_id}?tx={tx_hash} and returns result as text.
case 'verify-receipt': { const data = await fetchJSON(`/receipt/${args.product_id}?tx=${args.tx_hash}`); return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] }; }