{"uid":"cap_w0cd9ppiWzGtJwDnFC0by","slug":"delx-evm-calldata-size-bytes-db400bc0","name":"Delx EVM Calldata Size Bytes","description":"EVM Calldata Size Bytes: EVM Calldata Size Bytes calculates calldata byte length from normalized hex from bounded caller-supplied values without an external provider. Call EVM Calldata Size Bytes before signing, submitting, replacing, or accepting an EVM/Base transaction assembled from caller-owned data. Returns normalized transaction evidence, calculated budget or shape findings, and a fail-closed preflight status for EVM Calldata Size Bytes as versioned deterministic JSON. Price: $0.001 USDC…","url":"https://api.delx.ai/api/v1/x402/evm-calldata-size-bytes","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"calldata":{"type":"string","maxLength":8192,"description":"Calldata supplied to EVM Calldata Size Bytes; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"calldata":"0x1234abcd","byte_count":4,"shape_valid":true},"schema":"delx/util-evm-calldata-size-bytes/v1","status":"pass","evidence":{"retained":false,"input_sha256":"6ffdb637cbb0ee3342cdd21ba540914ee72f80a467cba5a39651837c42e42662","external_calls":0},"operation":"evm_preflight:evm_calldata_size_bytes"}},"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_EldyreMWdlTFUE0DbuIE9","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":"Computes the byte length of EVM calldata hex strings for preflight validation before on-chain submission.","exampleAgentPrompt":"How many bytes is this EVM calldata: 0x1234abcd? I want to check if it's valid before I submit the transaction.","exampleUseCases":[{"title":"Gas estimation preflight check","prompt":"Before I broadcast this transaction, can you tell me the byte size of this calldata: 0xa9059cbb000000000000000000000000abcdef1234567890abcdef1234567890abcdef12000000000000000000000000000000000000000000000000000000000000000a — I need to know if it's within limits."},{"title":"Smart contract calldata validation","prompt":"I'm encoding a function call for my smart contract and got this calldata: 0x23b872dd — can you measure how many bytes that is and confirm the shape is valid?"},{"title":"Batch transaction size auditing","prompt":"I have this calldata I generated for an EVM transaction: 0x095ea7b3000000000000000000000000deadbeef — compute its byte length so I can decide if I'm under the block gas ceiling."}],"resultDescription":"Returns a JSON object containing the original calldata string, its byte_count as an integer, a shape_valid boolean indicating whether the calldata is well-formed, the operation name, status ('pass'), and evidence metadata including whether input was retained (always false), the SHA256 hash of the input, and the number of external calls made (always 0).","failureModes":["Malformed hex string (not 0x-prefixed or invalid hex characters) may return shape_valid: false","Input exceeding 8192 character maxLength will be rejected","Empty calldata string may return a zero byte count or validation error","Non-string calldata input will fail schema validation"],"whenToPreferThis":"Use this endpoint when you need a fast, verifiable, privacy-preserving byte-size check on EVM calldata before submitting or estimating gas for a transaction. It's ideal for agent preflight pipelines where you need an auditable SHA256 receipt confirming no data was retained. Prefer it over manual hex parsing when you want a structured validity flag alongside the count.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T07:02:19.498Z","isFirstParty":false}