{"uid":"cap_ZgEIPRFIMRT0GmMPxxS0d","slug":"p0-agent-economy-index-x402-echo-payment-verification-ed037b03","name":"P0 Agent Economy Index – x402 Echo / Payment Verification","description":"Use for debugging an x402 client: pay $0.001 in USDC (or USDT0 on Arbitrum) on any network in accepts and get back what the server received: the decoded payment payload (scheme, network, authorization fields, signature), checks of amount, payTo, asset and validity window against this route's requirement, and the facilitator's settlement result. Only the payment header is echoed, never other headers.","url":"https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/x402-echo?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","HEAD"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["ok","ts","route","header","payment","checks","settle"],"properties":{"ok":{"type":"boolean"},"ts":{"type":"string"},"route":{"type":"string"},"checks":{"type":"object","required":["decoded"],"properties":{"scheme":{"type":["string","null"]},"decoded":{"type":"boolean"},"network":{"type":["string","null"]},"validAfter":{"type":["string","null"]},"validBefore":{"type":["string","null"]},"x402Version":{"type":["integer","null"]},"assetMatches":{"type":["boolean","null"]},"payToMatches":{"type":["boolean","null"]},"withinWindow":{"type":["boolean","null"]},"amountMatches":{"type":["boolean","null"]}}},"header":{"type":"object","required":["name","bytes","encoding"],"properties":{"name":{"type":["string","null"]},"bytes":{"type":"integer"},"encoding":{"type":"string"}}},"settle":{"type":"object","required":["success","transaction","network","payer","facilitator"],"properties":{"payer":{"type":["string","null"]},"network":{"type":["string","null"]},"success":{"type":"boolean"},"facilitator":{"type":["string","null"]},"transaction":{"type":["string","null"]}}},"payment":{"type":["object","null"]}}}}}}},"responseSchema":{"type":"object","required":["ok","ts","route","header","payment","checks","settle"],"properties":{"ok":{"type":"boolean"},"ts":{"type":"string"},"route":{"type":"string"},"checks":{"type":"object","properties":{"scheme":{"type":"string"},"decoded":{"type":"boolean"},"network":{"type":"string"},"validAfter":{"type":"string"},"validBefore":{"type":"string"},"x402Version":{"type":"number"},"assetMatches":{"type":"boolean"},"payToMatches":{"type":"boolean"},"withinWindow":{"type":"boolean"},"amountMatches":{"type":"boolean"}}},"header":{"type":"object","properties":{"name":{"type":"string"},"bytes":{"type":"number"},"encoding":{"type":"string"}}},"settle":{"type":"object","properties":{"payer":{"type":"string"},"network":{"type":"string"},"success":{"type":"boolean"},"facilitator":{"type":"string"},"transaction":{"type":"string"}}},"payment":{"type":"object","properties":{"payload":{"type":"object","properties":{"signature":{"type":"string"},"authorization":{"type":"object","properties":{"to":{"type":"string"},"from":{"type":"string"},"nonce":{"type":"string"},"value":{"type":"string"},"validAfter":{"type":"string"},"validBefore":{"type":"string"}}}}},"accepted":{"type":"object","properties":{"asset":{"type":"string"},"payTo":{"type":"string"},"amount":{"type":"string"},"scheme":{"type":"string"},"network":{"type":"string"}}},"x402Version":{"type":"number"}}}}},"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_8QkXDJx2PRVB2JkEiLduE","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 and echoes back a decoded x402 micropayment header, confirming scheme, asset, network, timing windows, and settlement details for a $0.001 USDC call on Base","exampleAgentPrompt":"Echo back and verify my x402 payment header — confirm the scheme, asset match, payer wallet, and settlement result on Base so I know the $0.001 USDC payment went through correctly.","exampleUseCases":[{"title":"Debugging a failed x402 payment flow","prompt":"I'm building an x402-enabled service and my payment isn't being accepted — can you echo my payment header through the x402 echo endpoint and tell me whether the scheme, asset, timing windows, and payer address all check out?"},{"title":"Confirming settlement before delivering a service","prompt":"Before I release the data to the requester, I need to confirm their x402 USDC payment actually settled on Base — can you verify the payment signature, check the transaction hash, and confirm the facilitator marked it successful?"},{"title":"Auditing a batch of x402 receipts","prompt":"I need a decoded receipt for this x402 payment — give me the payer wallet, the nonce, the valid-after and valid-before timestamps, and whether the amount matched the $0.001 USDC requirement on Base."}],"resultDescription":"Returns a JSON object with ok status, timestamp, and a full decoded breakdown of the x402 payment header including: scheme validation, decoded flag, network (eip155:8453 / Base), timing window (validAfter, validBefore), x402 version, asset match, payTo match, and amount match. Also returns settlement details: payer wallet address, network, success flag, facilitator (e.g. coinbase-cdp), and transaction hash. Payment payload fields include signature, authorization (to, from, nonce, value, validAfter, validBefore), and accepted asset/network/amount/scheme.","failureModes":["Missing or malformed payment-signature header returns an error with decoded: false","Expired payment (outside validAfter–validBefore window) returns withinWindow: false","Asset mismatch (wrong token contract) returns assetMatches: false","PayTo address mismatch returns payToMatches: false","Amount mismatch (e.g. wrong USDC amount) returns amountMatches: false","Network mismatch (not eip155:8453) returns network validation failure","Settlement failure from facilitator returns settle.success: false"],"whenToPreferThis":"Use this endpoint when you need to programmatically verify that an x402 micropayment header is valid and settled on Base before fulfilling a service request. It is specifically designed for x402 protocol validation on Base/eip155:8453 with USDC, and provides a full decoded breakdown of the payment authorization — prefer it over generic payment status checks when you need to confirm scheme, timing windows, asset match, and payer identity in one atomic call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-28T18:35:16.418Z","isFirstParty":false,"canonicalSlug":"p0-agent-economy-index-x402-echo-payment-verification-ed037b03"}