# Receipt-Backed Paid-Call Verifier

Stateless, read-only, offline-capable structural and encoding envelope validator for agent payment receipts. Does not verify cryptographic signatures or live on-chain finality offline; never touches wallets, never executes payments, and never stores user payloads or PII.

## Motivation and Verification Boundary
Public agent demos often claim paid tool calls without sharing verifiable settlement receipts. This utility inspects receipt envelopes offline and explicitly separates three layers:
1. Structural envelope validity (`VERIFIED_ENVELOPE` vs `MALFORMED` vs `MISSING_RECEIPT`).
2. Signed-but-unsettled payment authorizations (`SIGNED_UNSETTLED`, such as `PAYMENT-SIGNATURE` or serialized transactions without a settlement receipt).
3. Live cryptographic facilitator verification and on-chain finality (not checked by this offline verifier).

## Supported Formats
- **x402 `PAYMENT-RESPONSE` / `X-PAYMENT-RESPONSE`**: base64 JSON envelope (`success`, `transaction`, CAIP-2 `network` such as `eip155:8453`, `payer`, optional `requirements` check).
- **Solana PayAI Token-2022 receipt JSON**: 64-byte Base58 `signature`, 32-byte Base58 `mint`, `tokenProgram`, transfer `from`/`to`/`amount`, and `timestamp`.
- **ERC-8004 Reputation Registry `proofOfPayment`**: `fromAddress`, `toAddress`, `chainId`, `txHash`, with optional cross-check against an x402 settlement receipt.

## API Endpoints
- Metadata and offer cards: `GET https://api.neomorphic.io/api/lab/v1/receipt-verifier`
- Verify receipt envelope: `POST https://api.neomorphic.io/api/lab/v1/receipt-verifier/check`
- MCP manifest: `GET https://api.neomorphic.io/api/lab/v1/receipt-verifier/mcp.json`
- Dashboard: https://neomorphic.io/lab/receipt-verifier/

```sh
curl -sS -X POST https://api.neomorphic.io/api/lab/v1/receipt-verifier/check \
  -H "Content-Type: application/json" \
  -d '{"format":"erc8004","proofOfPayment":{"fromAddress":"0x1111111111111111111111111111111111111111","toAddress":"0x2222222222222222222222222222222222222222","chainId":"eip155:8453","txHash":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}}'
```

## SameDayDesk Seller Audit Offer Card
When a paid agent endpoint fails header budgets, CORS expose rules, or receipt verification, agents and operators can discover live paid remediation and audit terms directly from SameDayDesk.
- Agent start document: https://samedaydesk.com/start.md
- Live x402 discovery: https://agents.samedaydesk.com/.well-known/x402
- Pricing note: Authoritative live pricing and payment requirements are served only by the live x402 discovery document; this card invents no prices or payees.

## EIN.LLC Verified-Business Agent Badge Card
900+ US companies formed. Agents verifying whether a commercial endpoint operates behind a real US business identity can read live skill and agent-card metadata directly from EIN.LLC.
- Live skill document: https://ein.llc/skill.md
- Live A2A agent card: https://ein.llc/.well-known/agent-card.json

Questions: contact@neomorphic.io
