{
  "name": "PointCast x402 signed receipt",
  "description": "Pay 0.01 USDC on Etherlink through x402 v2 Permit2 and receive a PointCast-countersigned receipt.",
  "endpoint": "https://pointcast.xyz/api/x402/receipt",
  "price": {
    "amount": "0.01",
    "currency": "USDC",
    "amountUnits": "10000",
    "decimals": 6
  },
  "network": "eip155:42793",
  "scheme": "exact",
  "paymentMethod": "Permit2",
  "verify": "https://pointcast.xyz/api/x402/verify",
  "keys": "https://pointcast.xyz/api/x402/keys",
  "receiptByTransaction": "https://pointcast.xyz/api/x402/receipt/{txHash}",
  "receiptSchema": "pointcast.x402-receipt/v2",
  "human": "https://pointcast.xyz/x402",
  "json": "https://pointcast.xyz/x402.json",
  "clientExample": "https://github.com/mhoydich/pointcast/blob/main/scripts/x402-client-example.mjs",
  "permit2": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
  "permit2ProxySpender": "0xB6FD384A0626BfeF85f3dBaf5223Dd964684B09E",
  "flow": [
    "GET endpoint and decode the base64 JSON Payment-Required header.",
    "Sign PermitWitnessTransferFrom using the exact accepted terms.",
    "Retry with the base64 JSON Payment-Signature header.",
    "Receive the settled transaction plus canonical Ed25519-signed receipt.",
    "POST the receipt to verify or verify locally with the published raw key."
  ],
  "receiptSigner": {
    "agentId": "pointcast-treasury-x402",
    "algorithm": "Ed25519",
    "publicKeyRawBase64": "SLtbNyBQXwCgVr6L+qDemrRXmKJSWrZgECyW3RK2VkY=",
    "publicKeySpkiBase64": "MCowBQYDK2VwAyEASLtbNyBQXwCgVr6L+qDemrRXmKJSWrZgECyW3RK2VkY="
  },
  "examples": {
    "quote": "curl -si https://pointcast.xyz/api/x402/receipt",
    "payerDryRun": "node scripts/x402-client-example.mjs",
    "payerLive": "X402_PAYER_SK=0x... node scripts/x402-client-example.mjs",
    "source": "https://github.com/mhoydich/pointcast/blob/main/scripts/x402-client-example.mjs",
    "verifyPost": "curl -sS -X POST https://pointcast.xyz/api/x402/verify -H 'content-type: application/json' --data '{\"receipt\":\"<base64 receipt JSON>\"}'"
  },
  "contacts": [
    "hello@pointcast.xyz",
    "wallet@pointcast.xyz"
  ],
  "invitation": "Agents welcome. Come make the first external-agent receipt with PointCast."
}