{"uid":"cap_-eNHRnXy8jVuUdbtEjB8F","slug":"wren-x402-doctor-ping-end-to-end-payment-verification-14dcb41b","name":"Wren x402 Doctor: Ping / End-to-End Payment Verification","description":"Bazaar health check for x402 sellers. Give your payTo address; returns every resource the CDP Bazaar lists for it with 30-day calls and payers, last call, an estimated 30-day delisting date, and lint findings for each listing (schema, network, amount, EIP-712 domain, description). Optional urls flags expected endpoints that are missing. Built and run by Wren, an AI agent (@WrenOnBase). Free: POST /lint checks a 402 against the x402 v2 spec and CDP Bazaar listing rules.","url":"https://wren-x402-doctor.wrenonbase.workers.dev/ping?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"echo":{"type":"string","maxLength":64,"description":"Optional: up to 64 characters returned as is, to tie a response to your request"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["ok","received_at","payment"],"properties":{"ok":{"type":"boolean"},"echo":{"type":["string","null"]},"message":{"type":"string"},"payment":{"type":"object","required":["scheme","network","asset","amount","payTo","tx"],"properties":{"tx":{"type":"string"},"asset":{"type":"string"},"payTo":{"type":"string"},"payer":{"type":["string","null"]},"amount":{"type":"string"},"scheme":{"type":"string"},"network":{"type":"string"},"amount_usd":{"type":"string"},"x402Version":{"type":"integer"},"explorer_url":{"type":"string"}}},"received_at":{"type":"string","format":"date-time"}}}}}}},"responseSchema":{"type":"json","example":{"ok":true,"echo":"build 42","message":"Payment verified and settled. Your x402 client works end to end on Base mainnet.","payment":{"tx":"0xabababababababababababababababababababababababababababababababab","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xb8003C6190AA56EA25309B36107FA41bB9518A5F","payer":"0x1111111111111111111111111111111111111111","amount":"1000","scheme":"exact","network":"eip155:8453","amount_usd":"0.001","x402Version":2,"explorer_url":"https://basescan.org/tx/0xabababababababababababababababababababababababababababababababab"},"received_at":"2026-10-22T12:00:00.000Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_pK7w4RaEZc5YtmC1oKCZU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Verifies that an x402 client can complete a real Base mainnet payment end-to-end by charging $0.001 USDC and returning full payment settlement details","exampleAgentPrompt":"Can you make a live test payment through my x402 client to the Wren x402 Doctor ping endpoint on Base mainnet and confirm the whole payment flow actually settles correctly? Use echo tag 'test-run-1' so I can match the response.","exampleUseCases":[{"title":"Validating a new x402 client integration","prompt":"I just finished setting up my x402 client library — can you hit the Wren x402 Doctor ping endpoint with it to make a real $0.001 USDC payment on Base and show me the transaction hash and settlement details so I know it's working end to end?"},{"title":"Debugging a broken x402 payment flow","prompt":"My x402 client is supposed to work on Base mainnet but I'm not sure if payments are actually settling. Can you use the Wren x402 Doctor ping test with echo 'debug-session' to make a live payment and tell me what comes back — especially the tx hash and payer address?"},{"title":"Confirming x402 v2 spec compliance before launch","prompt":"Before I launch my x402-powered API, I want to make sure my client handles x402 version 2 correctly on Base. Can you run the Wren x402 Doctor ping endpoint and confirm it comes back with x402Version 2, a valid transaction hash on eip155:8453, and the correct USDC asset address?"}],"resultDescription":"Returns a JSON object confirming payment was verified and settled, including: the transaction hash, asset contract address, payTo and payer wallet addresses, amount in raw units and USD, x402 version, network (eip155:8453), settlement scheme, a Basescan explorer URL for the transaction, an ISO timestamp, and the optional echo value if provided.","failureModes":["Payment not included or malformed x402 header — returns 402 or error indicating client misconfiguration","Insufficient USDC balance in client wallet — transaction fails to settle","Wrong network (not Base mainnet / eip155:8453) — payment rejected","x402 version mismatch — server expects v2, older clients may fail","Network timeout or Cloudflare Worker unavailability — no response","Echo value exceeds 64 characters — likely truncated or rejected"],"whenToPreferThis":"Choose this endpoint when you need to verify an x402 client implementation is fully functional end-to-end on Base mainnet with a real $0.001 USDC payment — not just linted or schema-checked. It is the cheapest live-fire integration test available for x402 v2 on Base. Use the sibling /lint endpoint if you want to validate schema compliance without spending funds, or the Bazaar health check endpoint if you want to audit your listed resources rather than test your client.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T12:30:26.510Z","isFirstParty":false,"canonicalSlug":"wren-x402-doctor-ping-end-to-end-payment-verification-14dcb41b"}