{"uid":"cap_bsrOuMh2kfEJR5GckKMIf","slug":"delx-evm-native-balance-budget-check-d4bcf6dd","name":"Delx EVM Native Balance Budget Check","description":"EVM Native Balance Budget: EVM Native Balance Budget checks caller-supplied native balance against value plus fee reserve from bounded caller-supplied values without an external provider. Call EVM Native Balance Budget 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 Native Balance Budget as versioned deterministic…","url":"https://api.delx.ai/api/v1/x402/evm-native-balance-budget","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"value_wei":{"type":"string","maxLength":8192,"description":"Value Wei supplied to EVM Native Balance Budget; used only for this bounded calculation and processed in memory without retention."},"balance_wei":{"type":"string","maxLength":8192,"description":"Balance Wei supplied to EVM Native Balance Budget; used only for this bounded calculation and processed in memory without retention."},"fee_ceiling_wei":{"type":"string","maxLength":8192,"description":"Fee Ceiling Wei supplied to EVM Native Balance Budget; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"sufficient":true,"required_raw":"50042000000000000","available_raw":"100000000000000000","shortfall_raw":"0"},"schema":"delx/util-evm-native-balance-budget/v1","status":"pass","evidence":{"retained":false,"input_sha256":"215698e92004a17e3f8455c07967d1ebfb7bad3916a0afaafb6a0ce1a1fd5ad4","external_calls":0},"operation":"evm_preflight:evm_native_balance_budget"}},"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_cpdc16LB3RbHHJL9z_f5b","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 wallet's native token balance is sufficient to cover a transaction value plus a fee ceiling, returning sufficiency, required amount, available amount, and shortfall.","exampleAgentPrompt":"Before sending 0.05 ETH on-chain, check whether my wallet balance of 0.1 ETH (100000000000000000 wei) is enough to cover the transfer value of 50000000000000000 wei plus a fee ceiling of 42000000000000000 wei.","exampleUseCases":[{"title":"Pre-flight check before ETH transfer","prompt":"I'm about to send 0.05 ETH to another address. My wallet has 100000000000000000 wei and the estimated gas fee ceiling is 42000000000000000 wei. Can you confirm my balance is sufficient and tell me if there's any shortfall?"},{"title":"Agent wallet top-up decision","prompt":"My autonomous agent wallet currently holds 80000000000000000 wei. It needs to execute a transaction worth 60000000000000000 wei with a fee ceiling of 30000000000000000 wei. Check if it needs to be topped up and by how much."},{"title":"Smart contract interaction budget gate","prompt":"Before my agent calls a smart contract, verify that a balance of 500000000000000000 wei can cover a value of 200000000000000000 wei and a fee ceiling of 50000000000000000 wei — and return the exact shortfall if it can't."}],"resultDescription":"Returns a JSON object indicating whether the balance is sufficient (boolean), the total required amount in wei, the available balance in wei, and the shortfall in wei (0 if sufficient). Also includes audit evidence: whether data was retained (always false), an SHA-256 hash of the input, and the number of external calls made (always 0).","failureModes":["Missing or malformed wei string inputs may cause validation errors","Extremely large wei values exceeding maxLength of 8192 characters will be rejected","Non-numeric strings passed as wei values will result in computation errors","All three fields are optional but omitting all may return a degenerate or error result"],"whenToPreferThis":"Use this endpoint when an AI agent needs to gate an EVM transaction on balance sufficiency before submission — especially in automated pipelines where overspending or failed transactions are costly. Prefer this over on-chain balance queries when you already have the balance cached and need fast, in-memory arithmetic without an RPC call. It is ideal for preflight checks in agent workflows that batch multiple on-chain operations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:14:49.684Z","isFirstParty":false}