{"uid":"cap_bwCPLEs7nSUuYhHZMi0rR","slug":"hearth-x402-pay-safety-precheck-d3075880","name":"Hearth x402 Pay-Safety Precheck","description":"x402 pay-safety precheck, ranked x402 API discovery, onchain (Base/EVM/Solana) data and web-to-Markdown for AI agents. Pay per call with x402 (USDC on Base).","url":"https://138-197-15-135.sslip.io/v1/x402/precheck?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":["queryParams"],"properties":{"queryParams":{"type":"object","required":[],"properties":{"url":{"type":"string","description":"x402 resource URL to check"},"deep":{"type":"string","description":"1 = force a live ~75h on-chain scan instead of the index (slower)"},"payTo":{"type":"string","description":"Expected payTo (0x…, Base); flags payTo hijack"},"method":{"type":"string","description":"GET or POST (default: try GET then POST)"},"maxPrice":{"type":"string","description":"Max USD you expect to pay; flags bait-and-switch pricing"}}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":[],"properties":{"allow":{"type":["boolean","null"]},"score":{"type":["integer","null"]},"market":{"type":["object","null"]},"schema":{"type":["string","null"]},"reasons":{"type":["array","null"]},"signals":{"type":["array","null"]},"verdict":{"type":["string","null"]},"priceUsd":{"type":["number","null"]},"confidence":{"type":["string","null"]}}}}}}},"responseSchema":{"type":"json","example":{"allow":true,"score":90,"market":{"ratio":0.7,"medianUsd":0.01},"schema":"hearth.precheck.v2","reasons":[],"signals":[{"code":"valid_402","detail":"valid x402 v2 challenge via POST","severity":"info"},{"code":"organic_catalog_usage","detail":"92 payers / 8960 calls in 30d","severity":"info"}],"verdict":"pay","priceUsd":0.007,"confidence":"high"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_38mWRf__ImVK5vBlULnKo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks whether a given x402-gated API URL is safe to pay, returning a trust score, price validation, and fraud-risk signals before an AI agent spends USDC.","exampleAgentPrompt":"Before my agent pays for that x402 API at https://example.com/api/data, can you run a Hearth precheck on it to make sure it's safe — flag any payTo hijack risks and check whether the price looks fair compared to the market?","exampleUseCases":[{"title":"Screen unknown x402 API before paying","prompt":"I found an x402 API at https://api.someservice.xyz/v1/query that charges $0.01 per call — can you run a Hearth precheck on it and tell me if the price and payTo address look legitimate before my agent starts using it?"},{"title":"Catch bait-and-switch API pricing","prompt":"My agent is about to start calling https://data.provider.io/prices and I was told it costs $0.005 per call — can you precheck it with a maxPrice of $0.005 to see if it'll actually charge more than that?"},{"title":"Deep on-chain verification of x402 endpoint","prompt":"Do a deep live scan on https://agent-api.example.com/v2/lookup with Hearth's precheck so I get fresh on-chain data, not cached results — I need to know the real trust score and whether the payTo address is what they claim."}],"resultDescription":"Returns a JSON object with an `allow` boolean recommendation, integer trust `score` (0–100), `verdict` string (e.g. 'pay'), `priceUsd` of the endpoint, `confidence` level ('high'/'medium'/'low'), `market` object with median price and ratio, an array of `signals` with severity-coded risk codes and details, and `reasons` for any flags raised.","failureModes":["URL not reachable or not an x402 resource — returns null fields with low confidence","payTo address mismatch detected — flagged in signals with hijack warning","Price exceeds maxPrice threshold — bait-and-switch signal raised","Deep scan timeout if on-chain data is slow — may fall back to index","Invalid or malformed URL input — likely 400-level error or empty response"],"whenToPreferThis":"Use this endpoint when an AI agent is about to autonomously spend USDC on an x402-gated API and needs a pre-payment safety gate — especially for unknown or newly discovered endpoints, when you want to validate the payTo wallet address, or when you suspect the advertised price differs from the on-chain reality. Prefer the `deep=1` option when freshness matters and the index data might be stale.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:30:15.504Z","isFirstParty":false,"canonicalSlug":"hearth-x402-pay-safety-precheck-d3075880"}