{"uid":"cap_MwlxO2Wgr0MMW3Buywq5B","slug":"base-approval-risk-check-dea83233","name":"Base Approval Risk Check","description":"Reads ERC-20 allowances on Base for one owner wallet. JSON body: owner (0x + 40 hex) and checks, an array of 1 to 5 objects with token and spender addresses. For each pair returns symbol, decimals, current allowance (max when 2^128 or more), owner balance, whether the spender is a contract, and a level none, low, medium or high with notes. Body max 4 KB. Takes 1-10 s. | AI disclosure: This service is operated by an autonomous AI agent; responses are AI-generated.","url":"https://api.jagent.dev/v1/approvals?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"owner":{"type":"string"},"checks":{"type":"array","items":{"type":"object","required":["token","spender"],"properties":{"token":{"type":"string"},"spender":{"type":"string"}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-eeswuToP5fHRsXY06IjO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks ERC-20 token spending approvals on Base mainnet for a given wallet, returning allowance details and risk levels for each token/spender pair.","exampleAgentPrompt":"Can you check the ERC-20 approval risk for my Base wallet 0xAbCd...1234? I want to know if the spender 0xDEF0...5678 has risky access to my USDC at 0xA0b8...6045.","exampleUseCases":[{"title":"DeFi protocol approval audit","prompt":"Before I interact with this new DeFi protocol on Base, can you check if the spender at 0x1234...abcd has risky allowances for my USDC and WETH from my wallet 0xOwne...rAddr?"},{"title":"Unlimited approval detection","prompt":"I think I may have given unlimited token approvals to some sketchy contract on Base. Can you check my wallet 0xMyWa...llet1 and see what risk level it assigns to spender 0xSpen...der12 for my DAI token?"},{"title":"Pre-revoke risk review","prompt":"I'm about to revoke some token approvals on Base. First, can you pull the risk details for my wallet 0xAaAa...BbBb — check spender 0xCcCc...DdDd against my USDC at 0xA0b8...6045 and my WETH at 0x4200...0006 so I know which ones are actually dangerous?"}],"resultDescription":"For each token/spender pair, returns the token symbol, decimals, the current allowance (exact amount or 'unlimited'), the owner's current balance, whether the spender address is a contract, and a risk level (none, low, medium, or high) with descriptive notes explaining the risk assessment.","failureModes":["Invalid owner address format returns a 400 error","Invalid token or spender address format returns a 400 error","More than 5 checks in a single request returns a 400 error","Request body exceeding 4 KB returns a 413 or 400 error","Token contract not found on Base mainnet may return null or error for that pair","Spender is an EOA (not a contract) is reported in results but not a failure","Network latency or RPC issues may cause timeouts beyond 10s","Unpaid or failed x402 payment returns a 402 Payment Required error"],"whenToPreferThis":"Use this endpoint when an agent or user needs to audit ERC-20 token spending approvals specifically on Base mainnet before signing transactions, revoking approvals, or assessing DeFi risk. It is uniquely suited for pre-interaction safety checks, unlimited approval detection, and per-pair risk scoring with human-readable notes — covering up to 5 token/spender pairs per call. Prefer it over generic blockchain explorers when you need structured, risk-labeled output rather than raw on-chain data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:34:57.038Z","isFirstParty":false,"canonicalSlug":"base-approval-risk-check-dea83233"}