{"uid":"cap_Pk-VMTPZNRCJHyCMe5CFZ","slug":"base-spend-permission-audit-aa3a56fd","name":"Base Spend Permission Audit","description":"🆕 Base Account spend permissions let an app or agent spend a scoped, recurring allowance from a wallet — the primitive behind autonomous agent payments on Base. This reconstructs a wallet's ACTIVE spend permissions from onchain approve/revoke events and flags the dangerous ones: unlimited allowance, no expiry, unrecognized spender. The Base-native, agent-era drain check that ERC-20 approval tools can't see.","url":"https://402.com.tr/api/x402/spend-audit","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"],"type":"string"},"pathParams":{"type":"object"},"queryParams":{"type":"object","required":["wallet"],"properties":{"wallet":{"type":"string","description":"Wallet address"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_QEVvt-sp-_ynH5Q3Oq_kD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Reconstructs a wallet's active Base Account spend permissions from onchain events and flags dangerous ones (unlimited allowance, no expiry, unrecognized spender)","exampleAgentPrompt":"Check my Base wallet 0x1234...abcd for dangerous spend permissions — flag any that have unlimited allowances, no expiry, or unrecognized spenders.","exampleUseCases":null,"resultDescription":"A list of active spend permissions reconstructed from onchain approve/revoke events for the wallet, with each permission annotated for risk: whether the allowance is unlimited, whether it has no expiry, and whether the spender address is unrecognized — enabling agents to identify potentially dangerous recurring payment authorizations.","failureModes":["Invalid or malformed wallet address returns 400 error","Non-Base wallet address yields no results or error","Onchain data unavailable or RPC timeout returns 500","No active spend permissions found returns empty result set","Payment not included or insufficient USDC balance returns 402"],"whenToPreferThis":"Use this endpoint when you need to audit Base Account spend permissions specifically — the ERC-20 approval-level tools cannot see these agent-era recurring allowances. Prefer this over generic approval checkers when investigating autonomous agent payment risks, x402 protocol exposure, or Base-native recurring spending grants.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:55:25.269Z","isFirstParty":false}