{"uid":"cap_b5S4k1Q1_7f_7PbaPYYdX","slug":"delx-evm-allowance-budget-check-d12ae9c1","name":"Delx EVM Allowance Budget Check","description":"EVM Allowance Budget Check: EVM Allowance Budget Check checks caller-supplied allowance against a required token amount from bounded caller-supplied values without an external provider. Call EVM Allowance Budget 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 Allowance Budget Check as versioned deterministic…","url":"https://api.delx.ai/api/v1/x402/evm-allowance-budget-check","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"required_raw":{"type":"string","maxLength":8192,"description":"Required Raw supplied to EVM Allowance Budget Check; used only for this bounded calculation and processed in memory without retention."},"allowance_raw":{"type":"string","maxLength":8192,"description":"Allowance Raw supplied to EVM Allowance Budget Check; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"sufficient":true,"required_raw":"1500000","available_raw":"2000000","shortfall_raw":"0"},"schema":"delx/util-evm-allowance-budget-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"86f8e28708672cfff8511f7fd84c12592b126a4ae90afbc3845c23a473821c16","external_calls":0},"operation":"evm_preflight:evm_allowance_budget_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_N3K_I6L9G-qKp6T_BV5Tm","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":"Checks whether an EVM token allowance is sufficient to cover a required spend amount, returning a pass/fail result with shortfall details.","exampleAgentPrompt":"Before executing the on-chain swap, check if my token allowance of 2000000 raw units is sufficient to cover the required 1500000 raw units — I need to know if there's a shortfall before I proceed.","exampleUseCases":[{"title":"Pre-transaction allowance preflight","prompt":"I'm about to call a smart contract that requires 3000000 raw token units — can you check whether my current approved allowance of 2500000 raw units is enough, and tell me the shortfall if not?"},{"title":"Agent DeFi workflow guard","prompt":"Before my agent submits the DeFi position, verify that the allowance of 5000000 raw units covers the 4200000 raw units required by the protocol, and flag it if we're short."},{"title":"Budget check before batch token spend","prompt":"I have an allowance of 1000000 raw units set for this contract — check if that's sufficient for the 800000 raw units I need to spend and confirm whether we're good to proceed."}],"resultDescription":"Returns a JSON object with a boolean 'sufficient' flag, the required_raw and available_raw amounts, the shortfall_raw (0 if sufficient), a pass/fail status string, the operation name, and evidence metadata including whether inputs were retained and number of external calls made.","failureModes":["Missing or malformed required_raw or allowance_raw values (non-numeric strings may cause computation failure)","Values exceeding maxLength of 8192 characters rejected","Network or service unavailability returning 5xx errors","Payment required errors (402) if USDC balance insufficient for the $0.001 fee"],"whenToPreferThis":"Use this endpoint when an AI agent needs to preflight-check an EVM token allowance before submitting an on-chain transaction or smart contract call. It is purpose-built for autonomous agent workflows where spending raw token units need to be validated against an approved allowance without any external blockchain RPC calls — the computation is done in-memory with no state retention, making it safe for sensitive budget data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:47:11.264Z","isFirstParty":false}