{"uid":"cap_VFzZ8gV81TqzBSna70lp3","slug":"x402-delivery-size-check-879a2e73","name":"X402 Delivery Size Check","description":"X402 Delivery Size Check: X402 Delivery Size Check checks serialized result byte size against a buyer limit from bounded caller-supplied values without an external provider. Call X402 Delivery Size Check before paying for or accepting an x402 or agent delivery assembled from caller-supplied challenge and result metadata. Returns contract-specific checks, normalized evidence, mismatch reasons, and an explicit acceptance or rejection status for X402 Delivery Size Check as versioned deterministic…","url":"https://api.delx.ai/api/v1/x402/x402-delivery-size-check","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"result":{"type":"object","description":"Result supplied to X402 Delivery Size Check; used only for this bounded calculation and processed in memory without retention.","maxProperties":128,"additionalProperties":true},"maximum_bytes":{"type":"integer","description":"Maximum Bytes supplied to X402 Delivery Size Check; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"bytes":39,"within_budget":true},"schema":"delx/util-x402-delivery-size-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"076621b47df3f39c3106d66269581bbf20cc78094ab64cec4fdb10ac2b5f03d1","external_calls":0},"operation":"delivery_contract:x402_delivery_size_check"}},"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_vK8Pv6hsKUZE4oJoDyPCj","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":"Checks whether a serialized agent result's byte size falls within a buyer-specified maximum, returning acceptance or rejection status with mismatch reasons.","exampleAgentPrompt":"Before we pay for this agent delivery, check whether the result object fits within a 10000-byte limit — I want to know if it's accepted or rejected and why.","exampleUseCases":[{"title":"Pre-payment x402 size gate","prompt":"Before settling this x402 payment, check that the result I got back fits within 8192 bytes — show me whether it passes or fails and any mismatch details."},{"title":"Agentic marketplace buyer protection","prompt":"I'm a buyer on an agent marketplace and just received a result; can you verify the serialized payload doesn't exceed my contracted 5000-byte maximum before I approve the transaction?"},{"title":"Delivery budget enforcement for agent fleet","prompt":"Our agent fleet has a 20000-byte delivery cap per result — run this result object through a size check and tell me if it's within budget or why it would be rejected."}],"resultDescription":"Returns an explicit acceptance or rejection status, the measured byte size of the serialized result, any mismatch reasons explaining why the limit was exceeded, and normalized evidence — all computed deterministically in memory without external calls or data retention.","failureModes":["Result object has more than 128 properties (maxProperties exceeded), causing a validation error","maximum_bytes not provided or non-integer, returning a parameter error","Result cannot be serialized (circular references or non-serializable values), causing a processing error","Byte size exactly at boundary may return edge-case acceptance depending on comparison operator semantics"],"whenToPreferThis":"Use this endpoint when you need a deterministic, in-memory byte-size check against a buyer-specified limit before accepting or paying for an x402 or agentic marketplace delivery. Prefer it over custom client-side size checks when you need a normalized, versioned evidence record and explicit acceptance/rejection reasoning suitable for dispute resolution or audit trails.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T07:02:18.735Z","isFirstParty":false}