{"uid":"cap_fUvKmWJAI-S_w8OgjaW5r","slug":"delx-evm-legacy-fee-check-bb971774","name":"Delx EVM Legacy Fee Check","description":"EVM Legacy Fee Check: EVM Legacy Fee Check checks gasPrice and gasLimit values for a legacy transaction budget from bounded caller-supplied values without an external provider. Call EVM Legacy Fee Check 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 Legacy Fee Check as versioned deterministic JSON. Price: $0.001 U…","url":"https://api.delx.ai/api/v1/x402/evm-legacy-fee-check","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_cEPLFNp_FV2-A_L_3ICrY","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 (Type 0) EVM transaction's computed gas fee falls within a specified maximum budget ceiling.","exampleAgentPrompt":"Before I broadcast this legacy Ethereum transaction, check whether the fee is within budget — gas limit is 21000, gas price is 10000000000 wei, and my maximum fee ceiling is 300000000000000 wei.","exampleUseCases":[{"title":"Pre-send gas budget guard for ETH transfer","prompt":"I'm about to send a legacy Ethereum transfer with a gas limit of 21000 and a gas price of 50 gwei (50000000000 wei). Can you check whether that fee is under my ceiling of 2000000000000000 wei before I broadcast it?"},{"title":"DeFi swap preflight fee validation","prompt":"I want to make sure my DeFi swap won't bust my gas budget — gas limit is 200000, gas price is 15000000000 wei, and I can't spend more than 5000000000000000 wei in fees. Run a preflight check."},{"title":"Agent-automated batch transaction gating","prompt":"For each of these pending transactions, check if the legacy gas fee is within budget before queuing them — start with gas limit 150000, gas price 20000000000 wei, and a maximum fee of 3500000000000000 wei."}],"resultDescription":"Returns a JSON object indicating whether the computed fee (gas_limit × gas_price_wei) is within the specified maximum_fee_wei ceiling. Includes a boolean `within_budget` field, the computed `fee_ceiling_wei` value, a pass/fail `status`, and an evidence block confirming no data was retained and no external calls were made.","failureModes":["Missing required fields (gas_limit, gas_price_wei, or maximum_fee_wei) returns a validation error","Non-numeric or malformed wei strings cause parse errors","Gas price or maximum fee strings exceeding 8192 characters are rejected","Integer overflow for extremely large gas values may produce unexpected results"],"whenToPreferThis":"Use this endpoint when you need a fast, stateless, in-memory preflight check for legacy (Type 0) EVM transactions before broadcasting — particularly in agent pipelines where you want to gate transaction submission on a fee ceiling without making any external blockchain calls. Prefer this over on-chain simulation when you only need arithmetic validation of gas_limit × gas_price_wei against a budget, and you want a verifiable evidence trail (input hash, zero retention, zero external calls).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:12:44.849Z","isFirstParty":false}