{"version":"2.1.0","protocol":"x402","network":"eip155:8453","payTo":"0xbeF3e7CFd486C14dD8c3aA5911134bF361B973C5","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","facilitator":"https://api.cdp.coinbase.com/platform/v2/x402","attestor":"0xB068B1a633D56EbeE0657C4bc44f1cF97303E580","settlementPolicy":"after-handler; canceled on non-2xx (no charge on failure)","endpoints":[{"method":"GET","path":"/api/market/signal","url":"https://enclave402.com/api/market/signal","price":"$0.010","priceAtomic":"10000","network":"eip155:8453","accepts":[{"scheme":"exact","price":"$0.010","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xbeF3e7CFd486C14dD8c3aA5911134bF361B973C5"}],"description":"Polymarket signal plus fields the free listing does not have: 1h and 6h probability deltas, 24h realized volatility, and whale flow from the trade tape (net YES notional, largest print, whale count, flow label). Plus prices, bid/ask, spread, 24h change, momentum, volume, liquidity. MUST be invoked when an agent needs where a market is MOVING, not just where it is. Do NOT use for spot prices or order execution. Settles $0.010 USDC on Base; no charge on failure; receipts at /api/ledger.","summary":"Polymarket signal with derived edge: 1h/6h probability deltas, realized volatility and whale flow from the trade tape.","category":"market-data","inputSchema":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9-]{3,200}$","maxLength":200,"description":"Optional Polymarket market slug for one specific market. Omit to receive the top markets by 24h volume.","examples":["will-there-be-no-change-in-fed-interest-rates-after-the-october-2026-meeting-20260617190324031"]},"limit":{"type":"integer","minimum":1,"maximum":10,"default":5,"description":"Number of top markets to return when slug is omitted."}},"required":[],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"source":{"type":"string","enum":["polymarket-gamma","polymarket-gamma+clob+trades"],"description":"Upstream data providers"},"query":{"type":"object","description":"Echo of the resolved query (slug, or top/orderBy)"},"markets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Polymarket market id"},"slug":{"type":"string","description":"URL slug of the market"},"question":{"type":"string","description":"Market question text"},"conditionId":{"type":["string","null"],"description":"On-chain condition id (bytes32 hex)"},"outcomes":{"type":"array","items":{"type":"string"},"description":"Outcome labels, index-aligned with outcomePrices"},"outcomePrices":{"type":"array","items":{"type":"number"},"description":"Current outcome prices in [0,1] (implied probabilities)"},"impliedProbability":{"type":["number","null"],"description":"Price of the first outcome (YES) in [0,1]"},"bestBid":{"type":["number","null"],"description":"Best bid for the first outcome"},"bestAsk":{"type":["number","null"],"description":"Best ask for the first outcome"},"spread":{"type":["number","null"],"description":"bestAsk - bestBid"},"oneDayPriceChange":{"type":["number","null"],"description":"24h change of the first outcome price (absolute, in probability points)"},"momentum":{"type":"string","enum":["RISING","FALLING","FLAT","UNKNOWN"],"description":"Deterministic label: RISING if 24h change >= +0.02, FALLING if <= -0.02, else FLAT"},"volume24hr":{"type":["number","null"],"description":"24h notional volume in USD"},"liquidity":{"type":["number","null"],"description":"Order-book liquidity in USD"},"endDate":{"type":["string","null"],"description":"ISO-8601 market end date"},"derived":{"type":"object","description":"Fields not in the free listing: computed from the CLOB price history and the public trade tape. Null with a reason in errors when a provider is unavailable.","properties":{"priceDelta1h":{"type":["number","null"],"description":"YES price now minus YES price 1h ago"},"priceDelta6h":{"type":["number","null"],"description":"YES price now minus YES price 6h ago"},"realizedVol24h":{"type":["number","null"],"description":"Std-dev of 10-minute log returns over the last 24h"},"historySamples":{"type":"integer","description":"Price points used"},"whaleFlow":{"type":["object","null"],"description":"Trade-tape summary over the last 6h; BUY of NO counts as SELL of YES","properties":{"windowSec":{"type":"integer"},"trades":{"type":"integer"},"buyYesUsdc":{"type":"number"},"sellYesUsdc":{"type":"number"},"netYesUsdc":{"type":"number"},"largestTradeUsdc":{"type":"number"},"whaleThresholdUsdc":{"type":"number"},"whaleTrades":{"type":"integer"},"flow":{"type":"string","enum":["YES_ACCUMULATION","YES_DISTRIBUTION","BALANCED","NO_TRADES"]}},"required":["windowSec","trades","netYesUsdc","largestTradeUsdc","whaleTrades","flow"],"additionalProperties":false},"errors":{"type":"array","items":{"type":"string"},"description":"Provider-scoped reasons a derived field is null (e.g. clob:timeout)"}},"required":["priceDelta1h","priceDelta6h","realizedVol24h","whaleFlow","errors"],"additionalProperties":false}},"required":["id","slug","question","outcomes","outcomePrices","impliedProbability","momentum"],"additionalProperties":false},"description":"Normalized market rows"},"asOf":{"type":"string","description":"ISO-8601 timestamp the data was fetched"},"settled":{"type":"boolean","description":"true when an x402 payment settled for this response (false on free-quota or dry-run)"},"ts":{"type":"integer","description":"Response timestamp, UNIX milliseconds"}},"required":["source","query","markets","asOf","settled","ts"],"additionalProperties":false},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"GET","queryParams":{"limit":1}},"output":{"type":"json","example":{"source":"polymarket-gamma+clob+trades","query":{"top":1,"orderBy":"volume24hr"},"markets":[{"id":"0","slug":"sample-market","question":"Sample question?","conditionId":null,"outcomes":["Yes","No"],"outcomePrices":[0.5,0.5],"impliedProbability":0.5,"bestBid":0.49,"bestAsk":0.51,"spread":0.02,"oneDayPriceChange":0,"momentum":"FLAT","volume24hr":0,"liquidity":0,"endDate":null,"derived":{"priceDelta1h":0,"priceDelta6h":0.01,"realizedVol24h":0.012,"historySamples":145,"whaleFlow":{"windowSec":21600,"trades":0,"buyYesUsdc":0,"sellYesUsdc":0,"netYesUsdc":0,"largestTradeUsdc":0,"whaleThresholdUsdc":1000,"whaleTrades":0,"flow":"NO_TRADES"},"errors":[]}}],"asOf":"2026-01-01T00:00:00.000Z","settled":true,"ts":1767225600000}},"proof":{"deliveredPaidAttempts":604,"paidAttempts":604,"attempts":604,"delivered":604,"deliveryRate":1,"p50Ms":36,"p95Ms":309,"clientErrors":252,"windowDays":30,"schemaDeclared":true,"chargedOnlyOn2xx":true,"trust":"https://enclave402.com/trust"}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["GET","HEAD","DELETE"]},"queryParams":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9-]{3,200}$","maxLength":200,"description":"Optional Polymarket market slug for one specific market. Omit to receive the top markets by 24h volume.","examples":["will-there-be-no-change-in-fed-interest-rates-after-the-october-2026-meeting-20260617190324031"]},"limit":{"type":"integer","minimum":1,"maximum":10,"default":5,"description":"Number of top markets to return when slug is omitted."}},"required":[]}},"required":["type","method"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"source":{"type":"string","enum":["polymarket-gamma","polymarket-gamma+clob+trades"],"description":"Upstream data providers"},"query":{"type":"object","description":"Echo of the resolved query (slug, or top/orderBy)"},"markets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Polymarket market id"},"slug":{"type":"string","description":"URL slug of the market"},"question":{"type":"string","description":"Market question text"},"conditionId":{"type":["string","null"],"description":"On-chain condition id (bytes32 hex)"},"outcomes":{"type":"array","items":{"type":"string"},"description":"Outcome labels, index-aligned with outcomePrices"},"outcomePrices":{"type":"array","items":{"type":"number"},"description":"Current outcome prices in [0,1] (implied probabilities)"},"impliedProbability":{"type":["number","null"],"description":"Price of the first outcome (YES) in [0,1]"},"bestBid":{"type":["number","null"],"description":"Best bid for the first outcome"},"bestAsk":{"type":["number","null"],"description":"Best ask for the first outcome"},"spread":{"type":["number","null"],"description":"bestAsk - bestBid"},"oneDayPriceChange":{"type":["number","null"],"description":"24h change of the first outcome price (absolute, in probability points)"},"momentum":{"type":"string","enum":["RISING","FALLING","FLAT","UNKNOWN"],"description":"Deterministic label: RISING if 24h change >= +0.02, FALLING if <= -0.02, else FLAT"},"volume24hr":{"type":["number","null"],"description":"24h notional volume in USD"},"liquidity":{"type":["number","null"],"description":"Order-book liquidity in USD"},"endDate":{"type":["string","null"],"description":"ISO-8601 market end date"},"derived":{"type":"object","description":"Fields not in the free listing: computed from the CLOB price history and the public trade tape. Null with a reason in errors when a provider is unavailable.","properties":{"priceDelta1h":{"type":["number","null"],"description":"YES price now minus YES price 1h ago"},"priceDelta6h":{"type":["number","null"],"description":"YES price now minus YES price 6h ago"},"realizedVol24h":{"type":["number","null"],"description":"Std-dev of 10-minute log returns over the last 24h"},"historySamples":{"type":"integer","description":"Price points used"},"whaleFlow":{"type":["object","null"],"description":"Trade-tape summary over the last 6h; BUY of NO counts as SELL of YES","properties":{"windowSec":{"type":"integer"},"trades":{"type":"integer"},"buyYesUsdc":{"type":"number"},"sellYesUsdc":{"type":"number"},"netYesUsdc":{"type":"number"},"largestTradeUsdc":{"type":"number"},"whaleThresholdUsdc":{"type":"number"},"whaleTrades":{"type":"integer"},"flow":{"type":"string","enum":["YES_ACCUMULATION","YES_DISTRIBUTION","BALANCED","NO_TRADES"]}},"required":["windowSec","trades","netYesUsdc","largestTradeUsdc","whaleTrades","flow"],"additionalProperties":false},"errors":{"type":"array","items":{"type":"string"},"description":"Provider-scoped reasons a derived field is null (e.g. clob:timeout)"}},"required":["priceDelta1h","priceDelta6h","realizedVol24h","whaleFlow","errors"],"additionalProperties":false}},"required":["id","slug","question","outcomes","outcomePrices","impliedProbability","momentum"],"additionalProperties":false},"description":"Normalized market rows"},"asOf":{"type":"string","description":"ISO-8601 timestamp the data was fetched"},"settled":{"type":"boolean","description":"true when an x402 payment settled for this response (false on free-quota or dry-run)"},"ts":{"type":"integer","description":"Response timestamp, UNIX milliseconds"}},"required":["source","query","markets","asOf","settled","ts"],"additionalProperties":false}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/api/storage/pin","url":"https://enclave402.com/api/storage/pin","price":"$0.008","priceAtomic":"8000","network":"eip155:8453","accepts":[{"scheme":"exact","price":"$0.008","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xbeF3e7CFd486C14dD8c3aA5911134bF361B973C5"}],"description":"Store a JSON document (object or string, up to 8 KB) on IPFS through a managed pinning service and return its content identifier (CID v1) plus an HTTP gateway URL. MUST be invoked when an agent needs durable, content-addressed storage for memory, decisions, artifacts or metadata that other agents can fetch by CID. Do NOT send raw binary, files over 8 KB, or an existing CID to re-pin. Settles $0.008 USDC via x402 on Base; failed or unavailable pins are never charged; receipts at /api/ledger.","summary":"Store a JSON document on IPFS via a managed pinning service; returns its CID and a gateway URL.","category":"storage","inputSchema":{"type":"object","properties":{"content":{"type":["object","string"],"description":"JSON object or string to store (serialized size up to 8 KB).","examples":[{"agent":"planner-1","decision":"hold","at":1789650000}]},"name":{"type":"string","maxLength":120,"description":"Optional human label stored with the pin."}},"required":["content"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"pinned":{"type":"boolean","description":"true when the provider accepted and pinned the content"},"cid":{"type":"string","description":"IPFS CID of the stored content"},"provider":{"type":"string","description":"Pinning provider"},"size":{"type":"integer","description":"Pinned size in bytes as reported by the provider"},"status":{"type":"string","description":"Provider pin status (pinned)"},"gateway":{"type":["string","null"],"description":"Resolvable HTTP gateway URL for the CID"},"settled":{"type":"boolean","description":"true when an x402 payment settled for this response"},"ts":{"type":"integer","description":"Response timestamp, UNIX milliseconds"}},"required":["pinned","cid","provider","status","settled","ts"],"additionalProperties":false},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"content":{"agent":"planner-1","decision":"hold","at":1789650000},"name":"planner-1 decision"}},"output":{"type":"json","example":{"pinned":true,"cid":"bafkreigh2akiscaildcqabsyg3dfr6chu3fgpregiymsck7e7aqa4s52zy","provider":"pinata","size":52,"status":"pinned","gateway":null,"settled":true,"ts":1767225600000}},"proof":{"deliveredPaidAttempts":0,"paidAttempts":0,"attempts":0,"delivered":0,"deliveryRate":null,"p50Ms":null,"p95Ms":null,"clientErrors":0,"windowDays":30,"schemaDeclared":true,"chargedOnlyOn2xx":true,"trust":"https://enclave402.com/trust"}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"properties":{"content":{"type":["object","string"],"description":"JSON object or string to store (serialized size up to 8 KB).","examples":[{"agent":"planner-1","decision":"hold","at":1789650000}]},"name":{"type":"string","maxLength":120,"description":"Optional human label stored with the pin."}},"required":["content"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"pinned":{"type":"boolean","description":"true when the provider accepted and pinned the content"},"cid":{"type":"string","description":"IPFS CID of the stored content"},"provider":{"type":"string","description":"Pinning provider"},"size":{"type":"integer","description":"Pinned size in bytes as reported by the provider"},"status":{"type":"string","description":"Provider pin status (pinned)"},"gateway":{"type":["string","null"],"description":"Resolvable HTTP gateway URL for the CID"},"settled":{"type":"boolean","description":"true when an x402 payment settled for this response"},"ts":{"type":"integer","description":"Response timestamp, UNIX milliseconds"}},"required":["pinned","cid","provider","status","settled","ts"],"additionalProperties":false}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/api/agent/attest","url":"https://enclave402.com/api/agent/attest","price":"$0.040","priceAtomic":"40000","network":"eip155:8453","accepts":[{"scheme":"exact","price":"$0.040","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xbeF3e7CFd486C14dD8c3aA5911134bF361B973C5"}],"description":"EIP-712 signed, timestamped attestation binding an agentId, the keccak256 digest of a declared state, and the paying wallet; attestor key at /transparency, verify offline with ethers.verifyTypedData. MUST be invoked when an agent needs third-party, non-repudiable proof that a state or decision existed at a point in time (audit trails, hand-offs, escrow). Do NOT use for hardware TEE, zk proofs or on-chain EAS. Settles $0.040 USDC via x402 on Base; no charge on failure; receipts at /api/ledger.","summary":"EIP-712 signed, timestamped attestation over an agent state digest, verifiable offline.","category":"attestation","inputSchema":{"type":"object","properties":{"agentId":{"type":"string","minLength":1,"maxLength":200,"description":"Stable identifier or EVM address of the agent being attested.","examples":["agent-0x402-1","did:web:example.com:agents:planner"]},"state":{"type":"string","maxLength":8192,"description":"Serialized state, decision, or payload hash to bind. Hashed with keccak256(utf8); the raw string is never stored.","examples":["{\"task\":\"rebalance\",\"decision\":\"hold\",\"at\":1789650000}"]}},"required":["agentId"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"attestation":{"type":"string","enum":["SIGNED"],"description":"Attestation status"},"attestationId":{"type":"string","pattern":"^0x[a-fA-F0-9]{64}$","description":"keccak256 of the signature"},"attestor":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"Gateway attestor address (published at /transparency)"},"digest":{"type":"string","pattern":"^0x[a-fA-F0-9]{64}$","description":"EIP-712 typed-data hash that was signed"},"signature":{"type":"string","description":"65-byte secp256k1 signature, hex"},"eip712":{"type":"object","description":"domain, types, primaryType and message needed to verify offline"},"verify":{"type":"string","description":"One-line verification recipe"},"teeProvider":{"type":["string","null"],"description":"Hardware TEE provider when configured, else null"},"enclaveRpc":{"type":["string","null"],"description":"Enclave verification endpoint when configured, else null"},"teeQuote":{"type":["string","null"],"description":"Hardware quote when a TEE is configured, else null"},"settled":{"type":"boolean","description":"true when an x402 payment settled for this response"},"ts":{"type":"integer","description":"Response timestamp, UNIX milliseconds"}},"required":["attestation","attestationId","attestor","digest","signature","eip712","settled","ts"],"additionalProperties":false},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"agentId":"agent-0x402-1","state":"{\"task\":\"rebalance\",\"decision\":\"hold\"}"}},"output":{"type":"json","example":{"attestation":"SIGNED","attestationId":"0x1111111111111111111111111111111111111111111111111111111111111111","attestor":"0x2222222222222222222222222222222222222222","digest":"0x3333333333333333333333333333333333333333333333333333333333333333","signature":"0x4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444","eip712":{},"verify":"ethers.verifyTypedData(...)","teeProvider":null,"enclaveRpc":null,"teeQuote":null,"settled":true,"ts":1767225600000}},"proof":{"deliveredPaidAttempts":168,"paidAttempts":168,"attempts":168,"delivered":168,"deliveryRate":1,"p50Ms":1,"p95Ms":2,"clientErrors":84,"windowDays":30,"schemaDeclared":true,"chargedOnlyOn2xx":true,"trust":"https://enclave402.com/trust"}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"properties":{"agentId":{"type":"string","minLength":1,"maxLength":200,"description":"Stable identifier or EVM address of the agent being attested.","examples":["agent-0x402-1","did:web:example.com:agents:planner"]},"state":{"type":"string","maxLength":8192,"description":"Serialized state, decision, or payload hash to bind. Hashed with keccak256(utf8); the raw string is never stored.","examples":["{\"task\":\"rebalance\",\"decision\":\"hold\",\"at\":1789650000}"]}},"required":["agentId"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"attestation":{"type":"string","enum":["SIGNED"],"description":"Attestation status"},"attestationId":{"type":"string","pattern":"^0x[a-fA-F0-9]{64}$","description":"keccak256 of the signature"},"attestor":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"Gateway attestor address (published at /transparency)"},"digest":{"type":"string","pattern":"^0x[a-fA-F0-9]{64}$","description":"EIP-712 typed-data hash that was signed"},"signature":{"type":"string","description":"65-byte secp256k1 signature, hex"},"eip712":{"type":"object","description":"domain, types, primaryType and message needed to verify offline"},"verify":{"type":"string","description":"One-line verification recipe"},"teeProvider":{"type":["string","null"],"description":"Hardware TEE provider when configured, else null"},"enclaveRpc":{"type":["string","null"],"description":"Enclave verification endpoint when configured, else null"},"teeQuote":{"type":["string","null"],"description":"Hardware quote when a TEE is configured, else null"},"settled":{"type":"boolean","description":"true when an x402 payment settled for this response"},"ts":{"type":"integer","description":"Response timestamp, UNIX milliseconds"}},"required":["attestation","attestationId","attestor","digest","signature","eip712","settled","ts"],"additionalProperties":false}},"required":["type"]}},"required":["input"]}}}},{"method":"GET","path":"/api/seller/vet","url":"https://enclave402.com/api/seller/vet","price":"$0.010","priceAtomic":"10000","network":"eip155:8453","accepts":[{"scheme":"exact","price":"$0.010","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xbeF3e7CFd486C14dD8c3aA5911134bF361B973C5"}],"description":"Vet an x402 seller before paying it: probes its live 402, reads its CDP Bazaar entry (payers, calls, last call, repeat vs evaluation usage), checks trust surfaces, returns a scored LIVE/STALE/UNLISTED/MISCONFIGURED/UNREACHABLE verdict and what changed since our last check, signed by our attestor. MUST be invoked before a first payment to an unknown resource, or on a schedule to watch it. Do NOT use to pay it. Settles $0.010 USDC; no charge on failure; receipts at /api/ledger.","summary":"Scored, signed verdict on any x402 seller: challenge shape, Bazaar usage, trust surfaces.","category":"trust","inputSchema":{"type":"object","properties":{"resource":{"type":"string","pattern":"^https://","maxLength":2048,"description":"Absolute https URL of the x402 resource to vet (the paid route itself, not the seller homepage).","examples":["https://seller.example/api/route"]},"method":{"type":"string","enum":["GET","POST"],"default":"GET","description":"HTTP method the resource expects; POST resources are probed with an empty JSON body."}},"required":["resource"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"resource":{"type":"string","description":"Normalized resource URL that was vetted"},"method":{"type":"string","enum":["GET","POST"]},"checkedAt":{"type":"string","description":"ISO-8601 time of the probe"},"verdict":{"type":"string","enum":["LIVE","STALE","UNLISTED","MISCONFIGURED","UNREACHABLE"],"description":"LIVE = payable, indexed, recently called. STALE = indexed but not called within VET_STALE_DAYS. UNLISTED = payable but never counted by the Bazaar. MISCONFIGURED = an x402 buyer cannot pay it as served. UNREACHABLE = no answer."},"score":{"type":"integer","minimum":0,"maximum":100,"description":"40 challenge shape + 40 Bazaar usage + 20 trust surfaces"},"usagePattern":{"type":"string","enum":["none","evaluation","repeat","unknown"],"description":"repeat = calls/payer at or above the repeat threshold; evaluation = buyers try once and leave"},"findings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"severity":{"type":"string","enum":["critical","high","medium","low","info"]},"message":{"type":"string"}},"required":["code","severity","message"],"additionalProperties":false},"description":"Every deduction, machine-coded and human-readable"},"challenge":{"type":"object","description":"What the target 402 actually said: status, x402Version, accepts[0], description length, WWW-Authenticate presence, networks offered"},"bazaar":{"type":"object","description":"CDP Bazaar index entry for the resource: indexed, lastCalledAt, uniquePayers30d, totalCalls30d, callsPerPayer"},"trust":{"type":"object","description":"Which of /.well-known/x402, /llms.txt, /.well-known/security.txt, /transparency the origin publishes"},"previous":{"type":["object","null"],"description":"Summary of the last verdict this gateway issued for the same resource (checkedAt, verdict, score, usagePattern); null on first check. Call on a schedule and this is your watch."},"changes":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"from":{},"to":{}},"required":["field","from","to"],"additionalProperties":false},"description":"Fields that differ from the previous verdict (verdict, score, usagePattern, findingCodes, priceUsdc, payTo, indexed, uniquePayers30d, totalCalls30d, lastCalledAt); empty when unchanged or first check"},"attestation":{"type":["object","null"],"description":"EIP-712 signature over resource, checkedAt, verdict, score, usagePattern and changes by the published attestor, verifiable offline; null when the attestor is unconfigured"},"settled":{"type":"boolean","description":"true when an x402 payment settled for this response"},"ts":{"type":"integer","description":"Response timestamp, UNIX milliseconds"}},"required":["resource","method","checkedAt","verdict","score","usagePattern","findings","challenge","bazaar","trust","previous","changes","settled","ts"],"additionalProperties":false},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"GET","queryParams":{"resource":"https://seller.example/api/route"}},"output":{"type":"json","example":{"resource":"https://seller.example/api/route","method":"GET","checkedAt":"2026-01-01T00:00:00.000Z","verdict":"LIVE","score":90,"usagePattern":"repeat","findings":[{"code":"thin-listing","severity":"low","message":"Bazaar entry lacks tags."}],"challenge":{"reachable":true,"status":402,"isV2":true,"accept":{"network":"eip155:8453","priceUsdc":0.01}},"bazaar":{"indexed":true,"uniquePayers30d":12,"totalCalls30d":240,"callsPerPayer":20},"trust":{"/.well-known/x402":true,"/llms.txt":true,"/.well-known/security.txt":true,"/transparency":true},"previous":{"checkedAt":"2025-12-31T18:00:00.000Z","verdict":"STALE","score":70,"usagePattern":"evaluation"},"changes":[{"field":"verdict","from":"STALE","to":"LIVE"},{"field":"score","from":70,"to":90}],"attestation":null,"settled":true,"ts":1767225600000}},"proof":{"deliveredPaidAttempts":84,"paidAttempts":84,"attempts":84,"delivered":84,"deliveryRate":1,"p50Ms":197,"p95Ms":248,"clientErrors":84,"windowDays":30,"schemaDeclared":true,"chargedOnlyOn2xx":true,"trust":"https://enclave402.com/trust"}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["GET","HEAD","DELETE"]},"queryParams":{"type":"object","properties":{"resource":{"type":"string","pattern":"^https://","maxLength":2048,"description":"Absolute https URL of the x402 resource to vet (the paid route itself, not the seller homepage).","examples":["https://seller.example/api/route"]},"method":{"type":"string","enum":["GET","POST"],"default":"GET","description":"HTTP method the resource expects; POST resources are probed with an empty JSON body."}},"required":["resource"]}},"required":["type","method"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"resource":{"type":"string","description":"Normalized resource URL that was vetted"},"method":{"type":"string","enum":["GET","POST"]},"checkedAt":{"type":"string","description":"ISO-8601 time of the probe"},"verdict":{"type":"string","enum":["LIVE","STALE","UNLISTED","MISCONFIGURED","UNREACHABLE"],"description":"LIVE = payable, indexed, recently called. STALE = indexed but not called within VET_STALE_DAYS. UNLISTED = payable but never counted by the Bazaar. MISCONFIGURED = an x402 buyer cannot pay it as served. UNREACHABLE = no answer."},"score":{"type":"integer","minimum":0,"maximum":100,"description":"40 challenge shape + 40 Bazaar usage + 20 trust surfaces"},"usagePattern":{"type":"string","enum":["none","evaluation","repeat","unknown"],"description":"repeat = calls/payer at or above the repeat threshold; evaluation = buyers try once and leave"},"findings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"severity":{"type":"string","enum":["critical","high","medium","low","info"]},"message":{"type":"string"}},"required":["code","severity","message"],"additionalProperties":false},"description":"Every deduction, machine-coded and human-readable"},"challenge":{"type":"object","description":"What the target 402 actually said: status, x402Version, accepts[0], description length, WWW-Authenticate presence, networks offered"},"bazaar":{"type":"object","description":"CDP Bazaar index entry for the resource: indexed, lastCalledAt, uniquePayers30d, totalCalls30d, callsPerPayer"},"trust":{"type":"object","description":"Which of /.well-known/x402, /llms.txt, /.well-known/security.txt, /transparency the origin publishes"},"previous":{"type":["object","null"],"description":"Summary of the last verdict this gateway issued for the same resource (checkedAt, verdict, score, usagePattern); null on first check. Call on a schedule and this is your watch."},"changes":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"from":{},"to":{}},"required":["field","from","to"],"additionalProperties":false},"description":"Fields that differ from the previous verdict (verdict, score, usagePattern, findingCodes, priceUsdc, payTo, indexed, uniquePayers30d, totalCalls30d, lastCalledAt); empty when unchanged or first check"},"attestation":{"type":["object","null"],"description":"EIP-712 signature over resource, checkedAt, verdict, score, usagePattern and changes by the published attestor, verifiable offline; null when the attestor is unconfigured"},"settled":{"type":"boolean","description":"true when an x402 payment settled for this response"},"ts":{"type":"integer","description":"Response timestamp, UNIX milliseconds"}},"required":["resource","method","checkedAt","verdict","score","usagePattern","findings","challenge","bazaar","trust","previous","changes","settled","ts"],"additionalProperties":false}},"required":["type"]}},"required":["input"]}}}},{"method":"GET","path":"/api/market/verdict","url":"https://enclave402.com/api/market/verdict","price":"$0.020","priceAtomic":"20000","network":"eip155:8453","accepts":[{"scheme":"exact","price":"$0.020","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xbeF3e7CFd486C14dD8c3aA5911134bF361B973C5"}],"description":"Rule-based verdict on one Polymarket market by slug: YES/NO/TOSS_UP lean, 0-100 confidence with every reason stated (price distance, liquidity, volume, spread, momentum), days to resolution, and an EIP-712 attestation so an agent can prove what it read and when. Not a forecast model. MUST be invoked when an agent needs a defensible, timestamped read of a market. Do NOT use to discover markets (use market/signal). Settles $0.020 USDC; no charge on failure; receipts at /api/ledger.","summary":"Attested, rule-based verdict on one Polymarket market: lean, confidence, reasons, signed before resolution.","category":"market-data","inputSchema":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9-]{3,200}$","maxLength":200,"description":"Polymarket market slug (get one from market/signal).","examples":["will-there-be-no-change-in-fed-interest-rates-after-the-october-2026-meeting-20260617190324031"]}},"required":["slug"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"slug":{"type":"string"},"question":{"type":"string"},"lean":{"type":"string","enum":["YES","NO","TOSS_UP"],"description":"Where the crowd sits at the lean thresholds"},"confidence":{"type":"integer","minimum":0,"maximum":100,"description":"How much the reading can be trusted, per the stated rules"},"confidenceBand":{"type":"string","enum":["HIGH","MEDIUM","LOW"]},"impliedProbability":{"type":["number","null"]},"daysToResolution":{"type":["number","null"]},"reasons":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"effect":{"type":"string"},"message":{"type":"string"}},"required":["code","effect","message"],"additionalProperties":false},"description":"Every rule that fired and its effect on the verdict"},"method":{"type":"string","description":"The exact rules and thresholds used, so the verdict is reproducible"},"market":{"type":"object","properties":{"id":{"type":"string","description":"Polymarket market id"},"slug":{"type":"string","description":"URL slug of the market"},"question":{"type":"string","description":"Market question text"},"conditionId":{"type":["string","null"],"description":"On-chain condition id (bytes32 hex)"},"outcomes":{"type":"array","items":{"type":"string"},"description":"Outcome labels, index-aligned with outcomePrices"},"outcomePrices":{"type":"array","items":{"type":"number"},"description":"Current outcome prices in [0,1] (implied probabilities)"},"impliedProbability":{"type":["number","null"],"description":"Price of the first outcome (YES) in [0,1]"},"bestBid":{"type":["number","null"],"description":"Best bid for the first outcome"},"bestAsk":{"type":["number","null"],"description":"Best ask for the first outcome"},"spread":{"type":["number","null"],"description":"bestAsk - bestBid"},"oneDayPriceChange":{"type":["number","null"],"description":"24h change of the first outcome price (absolute, in probability points)"},"momentum":{"type":"string","enum":["RISING","FALLING","FLAT","UNKNOWN"],"description":"Deterministic label: RISING if 24h change >= +0.02, FALLING if <= -0.02, else FLAT"},"volume24hr":{"type":["number","null"],"description":"24h notional volume in USD"},"liquidity":{"type":["number","null"],"description":"Order-book liquidity in USD"},"endDate":{"type":["string","null"],"description":"ISO-8601 market end date"},"derived":{"type":"object","description":"Fields not in the free listing: computed from the CLOB price history and the public trade tape. Null with a reason in errors when a provider is unavailable.","properties":{"priceDelta1h":{"type":["number","null"],"description":"YES price now minus YES price 1h ago"},"priceDelta6h":{"type":["number","null"],"description":"YES price now minus YES price 6h ago"},"realizedVol24h":{"type":["number","null"],"description":"Std-dev of 10-minute log returns over the last 24h"},"historySamples":{"type":"integer","description":"Price points used"},"whaleFlow":{"type":["object","null"],"description":"Trade-tape summary over the last 6h; BUY of NO counts as SELL of YES","properties":{"windowSec":{"type":"integer"},"trades":{"type":"integer"},"buyYesUsdc":{"type":"number"},"sellYesUsdc":{"type":"number"},"netYesUsdc":{"type":"number"},"largestTradeUsdc":{"type":"number"},"whaleThresholdUsdc":{"type":"number"},"whaleTrades":{"type":"integer"},"flow":{"type":"string","enum":["YES_ACCUMULATION","YES_DISTRIBUTION","BALANCED","NO_TRADES"]}},"required":["windowSec","trades","netYesUsdc","largestTradeUsdc","whaleTrades","flow"],"additionalProperties":false},"errors":{"type":"array","items":{"type":"string"},"description":"Provider-scoped reasons a derived field is null (e.g. clob:timeout)"}},"required":["priceDelta1h","priceDelta6h","realizedVol24h","whaleFlow","errors"],"additionalProperties":false}},"required":["id","slug","question","outcomes","outcomePrices","impliedProbability","momentum"],"additionalProperties":false},"asOf":{"type":"string"},"attestation":{"type":["object","null"],"description":"EIP-712 signature over slug, asOf, lean, confidence and impliedProbability by the published attestor; null when unconfigured"},"settled":{"type":"boolean"},"ts":{"type":"integer"}},"required":["slug","question","lean","confidence","confidenceBand","impliedProbability","daysToResolution","reasons","method","market","asOf","settled","ts"],"additionalProperties":false},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"GET","queryParams":{"slug":"sample-market"}},"output":{"type":"json","example":{"slug":"sample-market","question":"Sample question?","lean":"YES","confidence":72,"confidenceBand":"HIGH","impliedProbability":0.71,"daysToResolution":12.5,"reasons":[{"code":"crowd-implied","effect":"lean","message":"YES priced at 0.710."},{"code":"liquid","effect":"+20","message":"Liquidity above threshold."}],"method":"Rule-based, not a forecast.","market":{"id":"0","slug":"sample-market","question":"Sample question?","conditionId":null,"outcomes":["Yes","No"],"outcomePrices":[0.71,0.29],"impliedProbability":0.71,"bestBid":0.7,"bestAsk":0.72,"spread":0.02,"oneDayPriceChange":0.03,"momentum":"RISING","volume24hr":12000,"liquidity":25000,"endDate":"2026-01-14T00:00:00.000Z"},"asOf":"2026-01-01T00:00:00.000Z","attestation":null,"settled":true,"ts":1767225600000}},"proof":{"deliveredPaidAttempts":168,"paidAttempts":168,"attempts":168,"delivered":168,"deliveryRate":1,"p50Ms":1,"p95Ms":79,"clientErrors":0,"windowDays":30,"schemaDeclared":true,"chargedOnlyOn2xx":true,"trust":"https://enclave402.com/trust"}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["GET","HEAD","DELETE"]},"queryParams":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9-]{3,200}$","maxLength":200,"description":"Polymarket market slug (get one from market/signal).","examples":["will-there-be-no-change-in-fed-interest-rates-after-the-october-2026-meeting-20260617190324031"]}},"required":["slug"]}},"required":["type","method"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"slug":{"type":"string"},"question":{"type":"string"},"lean":{"type":"string","enum":["YES","NO","TOSS_UP"],"description":"Where the crowd sits at the lean thresholds"},"confidence":{"type":"integer","minimum":0,"maximum":100,"description":"How much the reading can be trusted, per the stated rules"},"confidenceBand":{"type":"string","enum":["HIGH","MEDIUM","LOW"]},"impliedProbability":{"type":["number","null"]},"daysToResolution":{"type":["number","null"]},"reasons":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"effect":{"type":"string"},"message":{"type":"string"}},"required":["code","effect","message"],"additionalProperties":false},"description":"Every rule that fired and its effect on the verdict"},"method":{"type":"string","description":"The exact rules and thresholds used, so the verdict is reproducible"},"market":{"type":"object","properties":{"id":{"type":"string","description":"Polymarket market id"},"slug":{"type":"string","description":"URL slug of the market"},"question":{"type":"string","description":"Market question text"},"conditionId":{"type":["string","null"],"description":"On-chain condition id (bytes32 hex)"},"outcomes":{"type":"array","items":{"type":"string"},"description":"Outcome labels, index-aligned with outcomePrices"},"outcomePrices":{"type":"array","items":{"type":"number"},"description":"Current outcome prices in [0,1] (implied probabilities)"},"impliedProbability":{"type":["number","null"],"description":"Price of the first outcome (YES) in [0,1]"},"bestBid":{"type":["number","null"],"description":"Best bid for the first outcome"},"bestAsk":{"type":["number","null"],"description":"Best ask for the first outcome"},"spread":{"type":["number","null"],"description":"bestAsk - bestBid"},"oneDayPriceChange":{"type":["number","null"],"description":"24h change of the first outcome price (absolute, in probability points)"},"momentum":{"type":"string","enum":["RISING","FALLING","FLAT","UNKNOWN"],"description":"Deterministic label: RISING if 24h change >= +0.02, FALLING if <= -0.02, else FLAT"},"volume24hr":{"type":["number","null"],"description":"24h notional volume in USD"},"liquidity":{"type":["number","null"],"description":"Order-book liquidity in USD"},"endDate":{"type":["string","null"],"description":"ISO-8601 market end date"},"derived":{"type":"object","description":"Fields not in the free listing: computed from the CLOB price history and the public trade tape. Null with a reason in errors when a provider is unavailable.","properties":{"priceDelta1h":{"type":["number","null"],"description":"YES price now minus YES price 1h ago"},"priceDelta6h":{"type":["number","null"],"description":"YES price now minus YES price 6h ago"},"realizedVol24h":{"type":["number","null"],"description":"Std-dev of 10-minute log returns over the last 24h"},"historySamples":{"type":"integer","description":"Price points used"},"whaleFlow":{"type":["object","null"],"description":"Trade-tape summary over the last 6h; BUY of NO counts as SELL of YES","properties":{"windowSec":{"type":"integer"},"trades":{"type":"integer"},"buyYesUsdc":{"type":"number"},"sellYesUsdc":{"type":"number"},"netYesUsdc":{"type":"number"},"largestTradeUsdc":{"type":"number"},"whaleThresholdUsdc":{"type":"number"},"whaleTrades":{"type":"integer"},"flow":{"type":"string","enum":["YES_ACCUMULATION","YES_DISTRIBUTION","BALANCED","NO_TRADES"]}},"required":["windowSec","trades","netYesUsdc","largestTradeUsdc","whaleTrades","flow"],"additionalProperties":false},"errors":{"type":"array","items":{"type":"string"},"description":"Provider-scoped reasons a derived field is null (e.g. clob:timeout)"}},"required":["priceDelta1h","priceDelta6h","realizedVol24h","whaleFlow","errors"],"additionalProperties":false}},"required":["id","slug","question","outcomes","outcomePrices","impliedProbability","momentum"],"additionalProperties":false},"asOf":{"type":"string"},"attestation":{"type":["object","null"],"description":"EIP-712 signature over slug, asOf, lean, confidence and impliedProbability by the published attestor; null when unconfigured"},"settled":{"type":"boolean"},"ts":{"type":"integer"}},"required":["slug","question","lean","confidence","confidenceBand","impliedProbability","daysToResolution","reasons","method","market","asOf","settled","ts"],"additionalProperties":false}},"required":["type"]}},"required":["input"]}}}},{"method":"GET","path":"/api/census/verdict","url":"https://enclave402.com/api/census/verdict","price":"$0.002","priceAtomic":"2000","network":"eip155:8453","accepts":[{"scheme":"exact","price":"$0.002","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xbeF3e7CFd486C14dD8c3aA5911134bF361B973C5"}],"description":"Pre-spend check from the seller census: each Bazaar-indexed resource is re-probed periodically (liveness, 402-envelope compliance, declared output schema, latency, usage) and mapped to pay | caution | avoid with an EIP-712 signature a router checks offline. Query one resource, a payTo, or page the feed by verdict. MUST be invoked before dispatching to an unknown seller. Do NOT use to probe on demand (see /api/seller/vet). Settles $0.002 USDC; no charge on failure; receipts at /api/ledger.","summary":"Signed pay/caution/avoid verdict for any Bazaar-indexed x402 resource or payTo, from the continuous census; bulk feed for routers.","category":"trust","inputSchema":{"type":"object","properties":{"resource":{"type":"string","pattern":"^https://","maxLength":2048,"description":"Absolute https URL of one x402 resource."},"payTo":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"EVM payee address; returns every assessed resource paid to it."},"verdict":{"type":"string","enum":["pay","caution","avoid"],"description":"Bulk feed filter (used when neither resource nor payTo is given)."},"limit":{"type":"integer","minimum":1,"maximum":500,"default":100,"description":"Bulk feed page size."},"offset":{"type":"integer","minimum":0,"default":0,"description":"Bulk feed page offset."}},"additionalProperties":false},"outputSchema":{"type":"object","properties":{"mode":{"type":"string","enum":["resource","payTo","feed"]},"items":{"type":"array","items":{"type":"object","properties":{"resource":{"type":"string"},"payTo":{"type":["string","null"]},"verdict":{"type":"string","enum":["pay","caution","avoid"]},"score":{"type":"integer"},"vetVerdict":{"type":"string"},"schemaDeclared":{"type":"boolean"},"latencyMs":{"type":["integer","null"]},"checkedAt":{"type":"string"},"stale":{"type":"boolean"},"attestation":{"type":["object","null"]}},"required":["resource","verdict","score","checkedAt"]}},"total":{"type":"integer"},"census":{"type":"object","description":"Sweep status: assessed count, cadence, last sweep."},"settled":{"type":"boolean"},"ts":{"type":"integer"}},"required":["mode","items","total","census","settled","ts"],"additionalProperties":false},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"GET","queryParams":{"verdict":"pay","limit":2}},"output":{"type":"json","example":{"mode":"feed","items":[{"resource":"https://seller.example/api/route","payTo":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","verdict":"pay","score":90,"vetVerdict":"LIVE","schemaDeclared":true,"latencyMs":210,"checkedAt":"2026-01-01T00:00:00.000Z","stale":false,"attestation":null}],"total":1,"census":{"assessed":1,"sweeps":1},"settled":true,"ts":1767225600000}},"proof":{"deliveredPaidAttempts":0,"paidAttempts":0,"attempts":0,"delivered":0,"deliveryRate":null,"p50Ms":null,"p95Ms":null,"clientErrors":0,"windowDays":30,"schemaDeclared":true,"chargedOnlyOn2xx":true,"trust":"https://enclave402.com/trust"}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["GET","HEAD","DELETE"]},"queryParams":{"type":"object","properties":{"resource":{"type":"string","pattern":"^https://","maxLength":2048,"description":"Absolute https URL of one x402 resource."},"payTo":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"EVM payee address; returns every assessed resource paid to it."},"verdict":{"type":"string","enum":["pay","caution","avoid"],"description":"Bulk feed filter (used when neither resource nor payTo is given)."},"limit":{"type":"integer","minimum":1,"maximum":500,"default":100,"description":"Bulk feed page size."},"offset":{"type":"integer","minimum":0,"default":0,"description":"Bulk feed page offset."}}}},"required":["type","method"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"mode":{"type":"string","enum":["resource","payTo","feed"]},"items":{"type":"array","items":{"type":"object","properties":{"resource":{"type":"string"},"payTo":{"type":["string","null"]},"verdict":{"type":"string","enum":["pay","caution","avoid"]},"score":{"type":"integer"},"vetVerdict":{"type":"string"},"schemaDeclared":{"type":"boolean"},"latencyMs":{"type":["integer","null"]},"checkedAt":{"type":"string"},"stale":{"type":"boolean"},"attestation":{"type":["object","null"]}},"required":["resource","verdict","score","checkedAt"]}},"total":{"type":"integer"},"census":{"type":"object","description":"Sweep status: assessed count, cadence, last sweep."},"settled":{"type":"boolean"},"ts":{"type":"integer"}},"required":["mode","items","total","census","settled","ts"],"additionalProperties":false}},"required":["type"]}},"required":["input"]}}}},{"method":"GET","path":"/api/census/export","url":"https://enclave402.com/api/census/export","price":"$3.500","priceAtomic":"3500000","network":"eip155:8453","accepts":[{"scheme":"exact","price":"$3.500","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xbeF3e7CFd486C14dD8c3aA5911134bF361B973C5"}],"description":"Whole-Bazaar seller census in one payload: every fresh verdict row (resource, payTo, verdict, score, schema, latency, checkedAt, per-row signature) plus a sha256 manifest and one EIP-712 attestation over it, so a router verifies the full dump offline. MUST be invoked when an agent needs the complete trust map for routing or analytics. Do NOT use for a single lookup (see /api/census/verdict). Settles $3.500 USDC; no charge on failure; receipts at /api/ledger.","summary":"Full signed census dump: every fresh pay/caution/avoid verdict across the Bazaar in one call, with a manifest digest signed by the attestor.","category":"trust","inputSchema":{"type":"object","properties":{"includeStale":{"type":"boolean","default":false,"description":"Include rows older than the verdict TTL."}},"additionalProperties":false},"outputSchema":{"type":"object","properties":{"generatedAt":{"type":"string"},"count":{"type":"integer"},"counts":{"type":"object","properties":{"pay":{"type":"integer"},"caution":{"type":"integer"},"avoid":{"type":"integer"}}},"sha256":{"type":"string","description":"Hex sha256 of JSON.stringify(items)."},"items":{"type":"array","items":{"type":"object","properties":{"resource":{"type":"string"},"payTo":{"type":["string","null"]},"verdict":{"type":"string","enum":["pay","caution","avoid"]},"score":{"type":"integer"},"vetVerdict":{"type":"string"},"schemaDeclared":{"type":"boolean"},"latencyMs":{"type":["integer","null"]},"checkedAt":{"type":"string"},"attestation":{"type":["object","null"]}},"required":["resource","verdict","score","checkedAt"]}},"attestation":{"type":["object","null"],"description":"EIP-712 signature over generatedAt, sha256, count and counts by the published attestor; null when unconfigured"},"census":{"type":"object","description":"Sweep status: assessed count, cadence, last sweep."},"settled":{"type":"boolean"},"ts":{"type":"integer"}},"required":["generatedAt","count","counts","sha256","items","census","settled","ts"],"additionalProperties":false},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"GET","queryParams":{}},"output":{"type":"json","example":{"generatedAt":"2026-01-01T00:00:00.000Z","count":1,"counts":{"pay":1,"caution":0,"avoid":0},"sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","items":[{"resource":"https://seller.example/api/route","payTo":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","verdict":"pay","score":90,"vetVerdict":"LIVE","schemaDeclared":true,"latencyMs":210,"checkedAt":"2026-01-01T00:00:00.000Z","attestation":null}],"attestation":null,"census":{"assessed":1,"sweeps":1},"settled":true,"ts":1767225600000}},"proof":{"deliveredPaidAttempts":1,"paidAttempts":1,"attempts":1,"delivered":1,"deliveryRate":1,"p50Ms":906,"p95Ms":906,"clientErrors":0,"windowDays":30,"schemaDeclared":true,"chargedOnlyOn2xx":true,"trust":"https://enclave402.com/trust"}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["GET","HEAD","DELETE"]},"queryParams":{"type":"object","properties":{"includeStale":{"type":"boolean","default":false,"description":"Include rows older than the verdict TTL."}}}},"required":["type","method"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"generatedAt":{"type":"string"},"count":{"type":"integer"},"counts":{"type":"object","properties":{"pay":{"type":"integer"},"caution":{"type":"integer"},"avoid":{"type":"integer"}}},"sha256":{"type":"string","description":"Hex sha256 of JSON.stringify(items)."},"items":{"type":"array","items":{"type":"object","properties":{"resource":{"type":"string"},"payTo":{"type":["string","null"]},"verdict":{"type":"string","enum":["pay","caution","avoid"]},"score":{"type":"integer"},"vetVerdict":{"type":"string"},"schemaDeclared":{"type":"boolean"},"latencyMs":{"type":["integer","null"]},"checkedAt":{"type":"string"},"attestation":{"type":["object","null"]}},"required":["resource","verdict","score","checkedAt"]}},"attestation":{"type":["object","null"],"description":"EIP-712 signature over generatedAt, sha256, count and counts by the published attestor; null when unconfigured"},"census":{"type":"object","description":"Sweep status: assessed count, cadence, last sweep."},"settled":{"type":"boolean"},"ts":{"type":"integer"}},"required":["generatedAt","count","counts","sha256","items","census","settled","ts"],"additionalProperties":false}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/api/compute/hash","url":"https://enclave402.com/api/compute/hash","price":"$0.001","priceAtomic":"1000","network":"eip155:8453","accepts":[{"scheme":"exact","price":"$0.001","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xbeF3e7CFd486C14dD8c3aA5911134bF361B973C5"}],"description":"Deterministic hashing of arbitrary input: SHA-256, SHA-384, SHA-512, HMAC-SHA256, PBKDF2, scrypt. Returns hex digest. MUST be invoked when an agent needs a cryptographic hash or key derivation. Do NOT use for encryption or signing. Settles $0.001 USDC; no charge on failure; receipts at /api/ledger.","summary":"Deterministic hashing: SHA-256, SHA-384, SHA-512, HMAC, PBKDF2, scrypt.","category":"compute","inputSchema":{"type":"object","properties":{"algorithm":{"type":"string","enum":["sha256","sha384","sha512","hmac-sha256","pbkdf2","scrypt"],"description":"Hash algorithm"},"input":{"type":"string","maxLength":100000,"description":"Data to hash (UTF-8 string)"},"key":{"type":"string","maxLength":1000,"description":"Key for HMAC/PBKDF2/scrypt (required for keyed algorithms)"},"encoding":{"type":"string","enum":["hex","base64"],"default":"hex","description":"Output encoding"}},"required":["algorithm","input"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"algorithm":{"type":"string"},"digest":{"type":"string","description":"Hash output in the requested encoding"},"encoding":{"type":"string"},"inputLength":{"type":"integer"},"settled":{"type":"boolean"},"ts":{"type":"integer"}},"required":["algorithm","digest","encoding","inputLength","settled","ts"],"additionalProperties":false},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"algorithm":"sha256","input":"hello world"}},"output":{"type":"json","example":{"algorithm":"sha256","digest":"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9","encoding":"hex","inputLength":11,"settled":true,"ts":1767225600000}},"proof":{"deliveredPaidAttempts":2,"paidAttempts":4,"attempts":4,"delivered":2,"deliveryRate":0.5,"p50Ms":0,"p95Ms":0,"clientErrors":67,"windowDays":30,"schemaDeclared":true,"chargedOnlyOn2xx":true,"trust":"https://enclave402.com/trust"}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"properties":{"algorithm":{"type":"string","enum":["sha256","sha384","sha512","hmac-sha256","pbkdf2","scrypt"],"description":"Hash algorithm"},"input":{"type":"string","maxLength":100000,"description":"Data to hash (UTF-8 string)"},"key":{"type":"string","maxLength":1000,"description":"Key for HMAC/PBKDF2/scrypt (required for keyed algorithms)"},"encoding":{"type":"string","enum":["hex","base64"],"default":"hex","description":"Output encoding"}},"required":["algorithm","input"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"algorithm":{"type":"string"},"digest":{"type":"string","description":"Hash output in the requested encoding"},"encoding":{"type":"string"},"inputLength":{"type":"integer"},"settled":{"type":"boolean"},"ts":{"type":"integer"}},"required":["algorithm","digest","encoding","inputLength","settled","ts"],"additionalProperties":false}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/api/compute/encode","url":"https://enclave402.com/api/compute/encode","price":"$0.001","priceAtomic":"1000","network":"eip155:8453","accepts":[{"scheme":"exact","price":"$0.001","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xbeF3e7CFd486C14dD8c3aA5911134bF361B973C5"}],"description":"Encoding and decoding utility: base64 encode/decode, hex encode/decode, URL encode/decode, JWT decode (no verification), JSON stringify/parse. MUST be invoked when an agent needs format conversion. Do NOT use for cryptographic operations (use compute/hash). Settles $0.001 USDC; no charge on failure; receipts at /api/ledger.","summary":"Encode/decode: base64, hex, URL-encode, JWT decode, JSON stringify/parse.","category":"compute","inputSchema":{"type":"object","properties":{"operation":{"type":"string","enum":["base64-encode","base64-decode","hex-encode","hex-decode","url-encode","url-decode","jwt-decode","json-stringify","json-parse"],"description":"Operation to perform"},"input":{"type":"string","maxLength":500000,"description":"Data to encode/decode"}},"required":["operation","input"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"operation":{"type":"string"},"result":{"description":"Encoded/decoded output (string or object for jwt-decode/json-parse)"},"inputLength":{"type":"integer"},"settled":{"type":"boolean"},"ts":{"type":"integer"}},"required":["operation","result","inputLength","settled","ts"],"additionalProperties":false},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"operation":"base64-encode","input":"hello world"}},"output":{"type":"json","example":{"operation":"base64-encode","result":"aGVsbG8gd29ybGQ=","inputLength":11,"settled":true,"ts":1767225600000}},"proof":{"deliveredPaidAttempts":0,"paidAttempts":0,"attempts":0,"delivered":0,"deliveryRate":null,"p50Ms":null,"p95Ms":null,"clientErrors":67,"windowDays":30,"schemaDeclared":true,"chargedOnlyOn2xx":true,"trust":"https://enclave402.com/trust"}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"properties":{"operation":{"type":"string","enum":["base64-encode","base64-decode","hex-encode","hex-decode","url-encode","url-decode","jwt-decode","json-stringify","json-parse"],"description":"Operation to perform"},"input":{"type":"string","maxLength":500000,"description":"Data to encode/decode"}},"required":["operation","input"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"operation":{"type":"string"},"result":{"description":"Encoded/decoded output (string or object for jwt-decode/json-parse)"},"inputLength":{"type":"integer"},"settled":{"type":"boolean"},"ts":{"type":"integer"}},"required":["operation","result","inputLength","settled","ts"],"additionalProperties":false}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/api/compute/search","url":"https://enclave402.com/api/compute/search","price":"$0.005","priceAtomic":"5000","network":"eip155:8453","accepts":[{"scheme":"exact","price":"$0.005","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xbeF3e7CFd486C14dD8c3aA5911134bF361B973C5"}],"description":"Web search returning ranked results with title, URL, description, and source domain. MUST be invoked when an agent needs current web information. Returns up to 10 results. Do NOT use for cached/static data lookups. Settles $0.005 USDC; no charge on failure; receipts at /api/ledger.","summary":"Web search with ranked results and cited sources, designed for agent consumption.","category":"web-search","inputSchema":{"type":"object","properties":{"query":{"type":"string","maxLength":500,"description":"Search query"},"limit":{"type":"integer","minimum":1,"maximum":10,"default":5,"description":"Max results to return"}},"required":["query"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"query":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"url":{"type":"string"},"description":{"type":"string"},"domain":{"type":"string"}},"required":["title","url","description"],"additionalProperties":false}},"count":{"type":"integer"},"settled":{"type":"boolean"},"ts":{"type":"integer"}},"required":["query","results","count","settled","ts"],"additionalProperties":false},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"query":"x402 payment protocol","limit":3}},"output":{"type":"json","example":{"query":"x402 payment protocol","results":[{"title":"x402 Foundation","url":"https://example.com/x402","description":"Open standard for internet-native payments.","domain":"example.com"}],"count":1,"settled":true,"ts":1767225600000}},"proof":{"deliveredPaidAttempts":0,"paidAttempts":0,"attempts":0,"delivered":0,"deliveryRate":null,"p50Ms":null,"p95Ms":null,"clientErrors":0,"windowDays":30,"schemaDeclared":true,"chargedOnlyOn2xx":true,"trust":"https://enclave402.com/trust"}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"properties":{"query":{"type":"string","maxLength":500,"description":"Search query"},"limit":{"type":"integer","minimum":1,"maximum":10,"default":5,"description":"Max results to return"}},"required":["query"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"query":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"url":{"type":"string"},"description":{"type":"string"},"domain":{"type":"string"}},"required":["title","url","description"],"additionalProperties":false}},"count":{"type":"integer"},"settled":{"type":"boolean"},"ts":{"type":"integer"}},"required":["query","results","count","settled","ts"],"additionalProperties":false}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/api/compute/infer","url":"https://enclave402.com/api/compute/infer","price":"$0.003","priceAtomic":"3000","network":"eip155:8453","accepts":[{"scheme":"exact","price":"$0.003","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xbeF3e7CFd486C14dD8c3aA5911134bF361B973C5"}],"description":"Cheap small-model text completion for agent sub-tasks: classify, extract, summarize, rewrite. MUST be invoked when an agent needs a short LLM answer without paying flagship rates. Prompt <=8000 chars, maxTokens <=1024, json:true forces a JSON object. Do NOT use for long-form generation or tool calling. Settles $0.003 USDC; no charge on failure; receipts at /api/ledger.","summary":"Cheap small-model text completion: prompt in, text (or JSON object) out. Token-capped, schema-declared.","category":"compute","inputSchema":{"type":"object","properties":{"prompt":{"type":"string","maxLength":8000,"description":"User prompt","examples":["Classify the sentiment of: \"the settlement was fast and cheap\". Reply with one word."]},"system":{"type":"string","maxLength":2000,"description":"Optional system instruction"},"maxTokens":{"type":"integer","minimum":1,"maximum":1024,"default":256},"json":{"type":"boolean","default":false,"description":"Force a JSON object response"}},"required":["prompt"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"output":{"type":"string"},"model":{"type":"string"},"usage":{"type":"object","properties":{"promptTokens":{"type":"integer"},"completionTokens":{"type":"integer"}},"required":["promptTokens","completionTokens"]},"settled":{"type":"boolean"},"ts":{"type":"integer"}},"required":["output","model","usage","settled","ts"],"additionalProperties":false},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"prompt":"Classify the sentiment of: \"the settlement was fast and cheap\". Reply with one word.","maxTokens":8}},"output":{"type":"json","example":{"output":"Positive","model":"example/small-model","usage":{"promptTokens":24,"completionTokens":2},"settled":true,"ts":1758300000000}},"proof":{"deliveredPaidAttempts":0,"paidAttempts":0,"attempts":0,"delivered":0,"deliveryRate":null,"p50Ms":null,"p95Ms":null,"clientErrors":67,"windowDays":30,"schemaDeclared":true,"chargedOnlyOn2xx":true,"trust":"https://enclave402.com/trust"}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"properties":{"prompt":{"type":"string","maxLength":8000,"description":"User prompt","examples":["Classify the sentiment of: \"the settlement was fast and cheap\". Reply with one word."]},"system":{"type":"string","maxLength":2000,"description":"Optional system instruction"},"maxTokens":{"type":"integer","minimum":1,"maximum":1024,"default":256},"json":{"type":"boolean","default":false,"description":"Force a JSON object response"}},"required":["prompt"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"output":{"type":"string"},"model":{"type":"string"},"usage":{"type":"object","properties":{"promptTokens":{"type":"integer"},"completionTokens":{"type":"integer"}},"required":["promptTokens","completionTokens"]},"settled":{"type":"boolean"},"ts":{"type":"integer"}},"required":["output","model","usage","settled","ts"],"additionalProperties":false}},"required":["type"]}},"required":["input"]}}}}],"ts":1790111534143}