{"uid":"cap_fiMzm6nrhP_y7iGy_deMx","slug":"bot-bazaar-erc-20-allowance-risk-evaluator-1ad6ac0a","name":"Bot Bazaar ERC-20 Allowance Risk Evaluator","description":"Evaluate an ERC-20 token allowance amount and spender for unlimited-approval exposure compared with zero-allowance EIP-3009 authorizations.","url":"https://bot-bazaar.fly.dev/v1/x402/erc20-allowance-risk?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"allowance_atomic":{"type":"string","description":"Approved allowance in atomic units"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_sZHis4U5LMLP6_EiZkkLx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Evaluates an ERC-20 token allowance amount to assess unlimited-approval exposure risk compared with zero-allowance EIP-3009 authorizations","exampleAgentPrompt":"Can you check whether an ERC-20 allowance of 115792089237316195423570985008687907853269984665640564039457584007913129639935 atomic units is dangerously close to unlimited approval, and how that compares to a zero-allowance EIP-3009 setup?","exampleUseCases":[{"title":"DeFi wallet approval safety check","prompt":"I approved a DeFi contract and I'm not sure if I gave it unlimited token access — can you evaluate an allowance of 1000000000000000000000 atomic units to see if it exposes me to unlimited-approval risk versus a safer EIP-3009 zero-allowance authorization?"},{"title":"AI agent pre-trade risk gate","prompt":"Before my agent executes a trade, check if the token allowance of 79228162514264337593543950335 atomic units sitting on this contract looks like an unsafe unlimited approval or if it's within normal bounds compared to EIP-3009 style auth."},{"title":"Smart contract audit allowance review","prompt":"I'm auditing a set of token approvals and need to flag any that look like unlimited grants — can you assess whether an allowance of 2000000000000000 atomic units represents an unlimited-approval risk versus what a zero-allowance EIP-3009 pattern would look like?"}],"resultDescription":"Returns a risk evaluation of the provided ERC-20 allowance amount in atomic units, indicating whether the allowance represents unlimited-approval exposure, how it compares to zero-allowance EIP-3009 authorizations, and a structured risk assessment the agent can act on to warn users or block transactions.","failureModes":["Missing or malformed allowance_atomic query parameter returns validation error","Non-numeric or negative allowance value causes parse failure","Payment not included or insufficient USDC causes 402 Payment Required response","Network timeout on fly.dev infrastructure returns 5xx error","Allowance value exceeding uint256 bounds triggers overflow error"],"whenToPreferThis":"Choose this endpoint when an AI agent or DeFi application needs to programmatically evaluate whether a given ERC-20 token allowance is dangerously large (i.e., effectively unlimited) versus a minimal EIP-3009 zero-allowance pattern, particularly before executing on-chain transactions or auditing wallet approvals. Prefer this over manual inspection when automating approval risk gates in agent workflows or when building a risk dashboard for Base/EVM wallet activity.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T19:07:09.552Z","isFirstParty":false,"canonicalSlug":"bot-bazaar-erc-20-allowance-risk-evaluator-1ad6ac0a"}