{"uid":"cap_9UM7PzUZD3qNdvlb8qAdS","slug":"delx-commerce-evm-legacy-fee-check-305f58c2","name":"Delx Commerce EVM Legacy Fee Check","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-legacy-fee-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"gas_limit":{"type":"integer","description":"Gas Limit supplied to EVM Legacy Fee Check; used only for this bounded calculation and processed in memory without retention."},"gas_price_wei":{"type":"string","maxLength":8192,"description":"Gas Price Wei supplied to EVM Legacy Fee Check; used only for this bounded calculation and processed in memory without retention."},"maximum_fee_wei":{"type":"string","maxLength":8192,"description":"Maximum Fee Wei supplied to EVM Legacy Fee Check; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"within_budget":true,"fee_ceiling_wei":"21000000000000"},"schema":"delx/util-evm-legacy-fee-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"3f479705a06db86ca332b2883b0bc646d76b8b39f7fea2aa864a00ee6e549ded","external_calls":0},"operation":"evm_preflight:evm_legacy_fee_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_uPbD9ApVIbPSq0LYrzGNa","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":"Validates whether a legacy EVM transaction's gas fee falls within a specified budget ceiling, returning a pass/fail result with verifiable evidence.","exampleAgentPrompt":"Before I send this Ethereum transaction, check if a gas limit of 21000 at a gas price of 10000000000 wei stays within my maximum fee of 21000000000000 wei.","exampleUseCases":[{"title":"Preflight check before ETH transfer","prompt":"I'm about to send an ETH transfer with a gas limit of 21000 and a gas price of 15 gwei (15000000000 wei) — can you confirm this comes in under my max fee ceiling of 400000000000000 wei before I broadcast it?"},{"title":"Agent cost-guard for DeFi automation","prompt":"My DeFi bot is about to execute a swap with gas limit 200000 and current gas price 8000000000 wei. Make sure the total fee stays within my budget cap of 2000000000000000 wei before it proceeds."},{"title":"Budget enforcement in batch transaction pipeline","prompt":"Check if a transaction with gas limit 50000 and gas price 12000000000 wei is within the allowed maximum fee of 700000000000000 wei — I need a verified pass before I include it in tonight's batch run."}],"resultDescription":"Returns a JSON object indicating whether the computed fee (gas_limit × gas_price_wei) falls within the maximum_fee_wei ceiling. Includes a boolean 'within_budget' field, the computed 'fee_ceiling_wei', an overall 'status' (pass/fail), and a tamper-evident evidence block containing the SHA-256 hash of the inputs, confirmation that no data was retained, and the count of external calls made (always 0).","failureModes":["Missing required fields (gas_limit, gas_price_wei, or maximum_fee_wei) result in validation error","Non-numeric or malformed wei strings may cause parse errors","gas_price_wei or maximum_fee_wei strings exceeding 8192 characters are rejected","Payment failure via x402 protocol blocks the request","Fee exceeds ceiling returns within_budget: false with status 'fail' (not an error, but a negative result)"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, verifiable, stateless preflight check for EVM legacy-style transactions (type 0) before submission — especially in agentic pipelines where tamper-evident evidence (SHA-256 input hash, no-retention confirmation) is required. It is ideal for cost-guard logic in automated workflows that must provably confirm fee compliance without retaining any input data. Prefer this over on-chain simulation when you only need a fee ceiling check and want a fast, cheap, off-chain result with cryptographic auditability.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:45.384Z","isFirstParty":false,"canonicalSlug":"delx-commerce-evm-legacy-fee-check-305f58c2"}