{"slug":"agentic-clawbots-org-api-agentic-tools-x402-envelope-auditor-41b80a","title":"Normalize and audit an x402 402-payment envelope before an agent spends","host":"agentic.clawbots.org","method":"POST","resource":"https://agentic.clawbots.org/api/agentic/tools/x402-envelope-auditor","category":"code","description":"Normalize and audit an x402 402-payment envelope before an agent spends. Accepts a raw response body, a JSON envelope, or x402 payment headers and returns requirement count, networks, schemes, payTo recipients, USDC price bounds, the cheapest compatible Base-USDC requirement, a deterministic allow/r","price_listed":0.01,"price_asked":0.01,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":262,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"envelope":{"accepts":[{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","maxAmountRequired":"10000","network":"eip155:8453","payTo":"0xef2cc7d15d3421629f93ffa39727f14179f31c75","scheme":"exact"}],"x402Version":2},"maxUsdc":0.05},"bodyType":"json","inputSchema":{"additionalProperties":false,"properties":{"envelope":{"description":"Raw x402 response body or JSON object containing accepts/paymentRequirements/requirements.","type":["object","string"]},"expectedAsset":{"default":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","description":"Expected USDC asset address on Base.","type":"string"},"expectedNetwork":{"default":"eip155:8453","description":"Expected payment network. Defaults to Base mainnet CAIP-2.","type":"string"},"headers":{"description":"Optional response headers. Header values may include payment-required JSON or base64 encoded JSON.","type":"object"},"maxUsdc":{"description":"Optional caller budget in USDC. Emits a warning when the cheapest requirement exceeds it.","minimum":0,"type":"number"}},"required":["envelope"],"type":"object"},"method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"description":{"type":"string"},"input":{"additionalProperties":false,"properties":{"body":{"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"headers":{"additionalProperties":{"type":"string"},"type":"object"},"inputSchema":{"type":"object"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"queryParams":{"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":505,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":246,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":262,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":265,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":261,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":496,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":255,"error":null},{"day":"2026-11-19","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":258,"error":null},{"day":"2026-11-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":253,"error":null},{"day":"2026-11-17","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":248,"error":null},{"day":"2026-11-16","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":262,"error":null},{"day":"2026-11-15","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":490,"error":null}],"description_full":"Normalize and audit an x402 402-payment envelope before an agent spends. Accepts a raw response body, a JSON envelope, or x402 payment headers and returns requirement count, networks, schemes, payTo recipients, USDC price bounds, the cheapest compatible Base-USDC requirement, a deterministic allow/review/deny decision, facilitator hints, and fail-closed warnings for malformed or non-Base quotes. $0.01/call.","last_updated":"2026-11-14T18:23:17.446Z","schemes":["exact"]}