{"uid":"cap_TomVxZDcAARL5e9AuHcy7","slug":"base44-deterministic-utility-batch-worker-88c3ec1f","name":"Base44 Deterministic Utility Batch Worker","description":"Pay-per-call deterministic utility operations over x402 on Base Mainnet.","url":"https://untitled-ef4f71e4.base44.app/api/apps/6a8fe38d53b9b6beef4f71e4/functions/ardeUtilityBatchMainnetWorker","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","required":["operation","input"],"properties":{"input":{"type":"object","description":"Operation-specific bounded input object"},"operation":{"enum":["unit_convert","evm_hex_quantity_normalize","evm_hex_data_normalize","http_version_normalize","allow_header_normalize","vary_header_normalize","origin_header_normalize","cors_preflight_check","status_retry_classify","cookie_security_check","csv_null_normalize"],"type":"string"}}},"maxItems":10,"minItems":1,"description":"Up to 10 deterministic Atomic Work units under one exact Base Mainnet x402 settlement"}}},"responseSchema":{"type":"json","example":{"ok":true,"worker":"deterministic-utility-batch-v1","results":[{"index":0,"result":{"to":"km","from":"mi","value":1,"result":1.609344,"dimension":"length"},"operation":"unit_convert"},{"index":1,"result":{"input":"h2","normalized":"HTTP/2","recognized":true},"operation":"http_version_normalize"}],"price_usd":0.005,"batch_size":2,"environment":"production_pilot","effective_max_price_per_atomic_work_usd":0.0005}},"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_ierY7yrd9DMk-8BM6ZCB1","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":"Executes up to 10 deterministic utility operations in a single batch call (unit conversion, EVM hex normalization, HTTP/CORS header analysis, CSV cleaning, etc.) settled via x402 micropayment on Base Mainnet.","exampleAgentPrompt":"Can you run two utility operations in one batch: first convert 26.2 miles to kilometers, and then normalize the HTTP version string 'h2' to its canonical form?","exampleUseCases":[{"title":"EVM hex normalization for onchain data pipeline","prompt":"I'm processing raw EVM transaction data and need to normalize a hex quantity '0x0000000000000000000000000000000000000000000000000000000000000064' and also normalize a hex data field '0x' — can you batch both in one call?"},{"title":"CORS preflight validation for API gateway","prompt":"Check whether a CORS preflight request from origin 'https://app.example.com' with method 'POST' and header 'Content-Type' should be allowed — and also tell me if the status code 429 warrants a retry."},{"title":"CSV data cleaning with unit conversion","prompt":"I have a CSV with a null-looking value '\\N' in a cell that needs to be normalized, and I also need to convert 100 pounds to kilograms — batch both operations together so I only pay once."}],"resultDescription":"A JSON object with ok:true, a results array where each item contains its index, operation name, and computed result object (e.g. converted value, normalized string, boolean check outcome), plus metadata: batch_size, price_usd (0.005), worker identifier, and environment.","failureModes":["Invalid operation enum value returns an error for that batch item","Input object missing required fields for the chosen operation causes a validation error","Batch exceeds 10 items — rejected with schema validation error","x402 payment failure or insufficient balance prevents execution","Malformed hex string input causes normalization to fail","Unsupported unit dimension or unit name causes unit_convert to fail"],"whenToPreferThis":"Choose this endpoint when you need multiple lightweight, deterministic utility computations (normalization, conversion, classification) bundled into a single cheap micropayment call on Base Mainnet. It is ideal for agents that need to sanitize or standardize data as part of a larger workflow without spinning up separate services. Prefer it over generic code-execution endpoints when you specifically need EVM hex normalization, HTTP/CORS header analysis, or unit conversion with x402 settlement.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:34:26.606Z","isFirstParty":false}