{"uid":"cap_EmpoPjEavQMEQFPq6xcnE","slug":"vibes-coded-base-erc20-allowance-lookup-e973fee9","name":"Vibes-Coded Base ERC20 Allowance Lookup","description":"Pay-per-call JSON for AI agents: skill search, listing optimization, install plans, productization, and artifact risk scoring. HTTP 402 → USDC. Full skill marketplace on-site.","url":"https://vibes-coded.com/api/v1/outcomes/base-erc20-allowance?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"ok":true,"owner":"0xdbbc87e7947201eacc9a7521dda4801e99994566","token":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","spender":"0xa8f2b1c3d4e5f60718293a4b5c6d7e8f90a1b2c3","decimals":6,"resource":"base-erc20-allowance","allowance":50,"generated_at":"2026-08-16T20:00:00Z","allowance_raw":50000000}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_eGYOxNLyzsjiL8GtZ6S5P","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current ERC20 token spending allowance granted by an owner to a spender on the Base network, with human-readable and raw decimal amounts.","exampleAgentPrompt":"What's the current USDC allowance that the contract 0xa8f2b1c3d4e5f60718293a4b5c6d7e8f90a1b2c3 has to spend on behalf of wallet 0xdbbc87e7947201eacc9a7521dda4801e99994566 on Base?","exampleUseCases":[{"title":"Pre-transaction allowance verification","prompt":"Before I submit this DeFi trade, can you check how much USDC the Uniswap router at 0xa8f2b1c3d4e5f60718293a4b5c6d7e8f90a1b2c3 is approved to spend from my wallet 0xdbbc87e7947201eacc9a7521dda4801e99994566 on Base?"},{"title":"Wallet security allowance audit","prompt":"I want to audit my wallet's token approvals — can you look up the current allowance for token 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 granted by 0xdbbc87e7947201eacc9a7521dda4801e99994566 to spender 0xa8f2b1c3d4e5f60718293a4b5c6d7e8f90a1b2c3 on Base?"},{"title":"DeFi agent approval gating","prompt":"Check if wallet 0xdbbc87e7947201eacc9a7521dda4801e99994566 has at least 100 USDC approved for the contract 0xa8f2b1c3d4e5f60718293a4b5c6d7e8f90a1b2c3 on Base before I proceed with the swap."}],"resultDescription":"Returns a JSON object containing: the owner and spender addresses, the ERC20 token contract address, token decimals (e.g. 6 for USDC), the human-readable allowance amount, the raw allowance in smallest units (e.g. 50000000 for 50 USDC), a resource identifier, and a generated_at ISO timestamp indicating when the data was fetched.","failureModes":["Invalid owner, token, or spender address format returns an error","Contract address not found on Base network may return zero allowance or an error","Network congestion or RPC issues may cause timeouts","Payment failure (HTTP 402) if USDC payment is not provided or insufficient","Allowance may be stale if queried immediately after an on-chain approval transaction"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-call lookup of an ERC20 token allowance specifically on the Base network without running your own blockchain node or RPC infrastructure. It is ideal for AI agents that need to gate transactions on approval status, audit wallet permissions, or verify DeFi interaction preconditions without setting up Web3 libraries.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T06:42:22.440Z","isFirstParty":false,"canonicalSlug":"vibes-coded-base-erc20-allowance-lookup-e973fee9"}