{"uid":"cap_jc0JvP-i_LsNt6zfUkSs1","slug":"delx-commerce-evm-calldata-size-bytes-9f76c058","name":"Delx Commerce — EVM Calldata Size Bytes","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/evm-calldata-size-bytes?utm_source=zero.xyz","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_ZQ8JFznnnrlb6GRedtsff","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 an EVM calldata hex string and validates its format, returning the byte count and shape validity.","exampleAgentPrompt":"How many bytes is this EVM calldata: '0xa9059cbb000000000000000000000000ab5801a7d398351b8be11c439e05c5b3259aec9000000000000000000000000000000000000000000000000000000000000000a'? Also tell me if the shape is valid.","exampleUseCases":[{"title":"Preflight calldata size before gas estimation","prompt":"Before I submit this transaction, can you check the byte size of this calldata: '0x23b872dd000000000000000000000000ab5801a7d398351b8be11c439e05c5b3259aec9'? I need to know the byte count and whether the shape is valid."},{"title":"Validate smart contract interaction calldata","prompt":"I'm building a smart contract call and want to verify my encoded calldata '0x095ea7b3000000000000000000000000ab5801a7d398351b8be11c439e05c5b3259aec9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff' — how many bytes is it and is the format correct?"},{"title":"Debug malformed calldata hex string","prompt":"This calldata string looks off to me: '0x1234abcd'. Can you calculate its byte size and tell me if the shape is valid so I can figure out if it's properly formed?"}],"resultDescription":"Returns a JSON object containing the original calldata, the computed byte count as an integer, a boolean shape_valid flag indicating whether the calldata is correctly formatted, the operation name, status ('pass'), and an evidence block with retained (false), input SHA256 hash, and external call count (0) confirming in-memory-only processing.","failureModes":["Calldata exceeding 8192 characters will be rejected","Non-hex or malformed input strings may result in shape_valid: false rather than an error","Missing or empty calldata field returns a validation error","Network or payment failure via x402 protocol prevents the call from completing"],"whenToPreferThis":"Use this endpoint when you need a fast, verifiable, pay-per-use check of EVM calldata byte length and format validity without any state retention — ideal for preflight validation before submitting Ethereum transactions, gas estimation workflows, or debugging malformed calldata. Prefer this over building your own parser when auditability (via SHA256 evidence) and agent-native micropayment billing via USDC/x402 are desirable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:04.440Z","isFirstParty":false,"canonicalSlug":"delx-commerce-evm-calldata-size-bytes-9f76c058"}