{"uid":"cap_DgcOQa-CfObT8MgbCXZIJ","slug":"onchainexpat-x402-crypto-approval-checker-21d09b35","name":"OnchainExpat x402 Crypto Approval Checker","description":"Pay-per-request AI, crypto, proxy, and utility APIs using x402 protocol","url":"https://x402.onchainexpat.com/api/x402-crypto/approval-checker","method":"POST","headers":{},"bodySchema":{"type":"object","required":["address"],"properties":{"chain":{"type":"string","description":"Blockchain (default: ethereum)"},"address":{"type":"string","description":"Wallet address (0x + 40 hex chars)"}}},"responseSchema":{"type":"object","properties":{"data":{"type":"object","properties":{"chain":{"type":"string"},"address":{"type":"string"},"approvals":{"type":"array","description":"List of token approvals with spender, token, and amount"},"explorer_url":{"type":"string","description":"Link to view wallet on block explorer"},"risk_assessment":{"type":"object","description":"Risk level and recommendations"},"unlimited_approvals":{"type":"integer","description":"Count of unlimited (max uint256) approvals"}}},"success":{"type":"boolean"}}},"example":{"request":{"address":"0x1234567890123456789012345678901234567890"},"response":{"data":{"chain":"all","address":"0x1234567890123456789012345678901234567890","per_chain":{"base":{"summary":{"overall_risk":"minimal","nft_approvals":0,"erc20_approvals":0,"total_approvals":0,"risk_description":"No significant approval risks detected","high_risk_approvals":0,"unlimited_approvals":0},"chain_name":"Base","nft_approvals":[],"erc20_approvals":[],"recommendations":[{"action":"none_needed","message":"No immediate action required. Approvals look reasonable.","priority":"info"}]},"polygon":{"summary":{"overall_risk":"minimal","nft_approvals":0,"erc20_approvals":0,"total_approvals":0,"risk_description":"No significant approval risks detected","high_risk_approvals":0,"unlimited_approvals":0},"chain_name":"Polygon","nft_approvals":[],"erc20_approvals":[],"recommendations":[{"action":"none_needed","message":"No immediate action required. Approvals look reasonable.","priority":"info"}]},"arbitrum":{"summary":{"overall_risk":"minimal","nft_approvals":0,"erc20_approvals":0,"total_approvals":0,"risk_description":"No significant approval risks detected","high_risk_approvals":0,"unlimited_approvals":0},"chain_name":"Arbitrum","nft_approvals":[],"erc20_approvals":[],"recommendations":[{"action":"none_needed","message":"No immediate action required. Approvals look reasonable.","priority":"info"}]},"ethereum":{"summary":{"overall_risk":"minimal","nft_approvals":0,"erc20_approvals":0,"total_approvals":0,"risk_description":"No significant approval risks detected","high_risk_approvals":0,"unlimited_approvals":0},"chain_name":"Ethereum","nft_approvals":[],"erc20_approvals":[],"recommendations":[{"action":"none_needed","message":"No immediate action required. Approvals look reasonable.","priority":"info"}]},"optimism":{"summary":{"overall_risk":"minimal","nft_approvals":0,"erc20_approvals":0,"total_approvals":0,"risk_description":"No significant approval risks detected","high_risk_approvals":0,"unlimited_approvals":0},"chain_name":"Optimism","nft_approvals":[],"erc20_approvals":[],"recommendations":[{"action":"none_needed","message":"No immediate action required. Approvals look reasonable.","priority":"info"}]}},"chains_scanned":["ethereum","base","arbitrum","polygon","optimism"],"recommendations":[{"action":"none_needed","message":"No immediate action required. Approvals look reasonable.","priority":"info"}],"all_nft_approvals":[],"all_erc20_approvals":[],"cross_chain_summary":{"overall_risk":"minimal","nft_approvals":0,"erc20_approvals":0,"total_approvals":0,"risk_description":"No significant approval risks detected across any chain","high_risk_approvals":0,"unlimited_approvals":0},"chains_with_approvals":[]},"cached":false,"success":true,"timestamp":"2026-06-18T05:54:50.072138+00:00"}},"exampleRequest":{"address":"0x1234567890123456789012345678901234567890"},"tags":["x402"],"displayCostAmount":"0.04","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1TqFxz2Wdz3cgWZ_rLeZ6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks whether a cryptocurrency token approval is valid, active, or potentially risky for a given wallet or contract","exampleAgentPrompt":"Can you check if the USDC token approval I granted to the Uniswap V3 router contract (0xE592427A0AEce92De3Edee1F18E0157C05861564) is still active and whether the allowance amount looks risky for my wallet 0xAbCd1234...?","exampleUseCases":[{"title":"DeFi security audit for active approvals","prompt":"I'm worried about my wallet security after connecting to a few different protocols last month. Can you scan my wallet and check which token approvals are still active, and flag any that look risky or have unlimited allowances that I should revoke?"},{"title":"Verify contract spending before transaction","prompt":"I'm about to swap tokens on this new DEX platform but I want to make sure the smart contract address they're asking me to approve actually has reasonable token spending limits. Can you check what allowance amount it currently has for my USDT and whether it seems safe?"},{"title":"Validate token allowance after wallet migration","prompt":"I just recovered my wallet on a new device and I'm not sure if my old token approvals for various DeFi protocols are still valid or what the current allowance amounts are. Can you verify the approval status for my DAI on the Aave lending contract so I know if I need to re-approve anything?"}],"resultDescription":"Returns a JSON object with the current approval status, allowance amount, spender and token details, and potentially a risk flag indicating whether the approval is unlimited or otherwise potentially dangerous.","failureModes":["Invalid or malformed contract/wallet address returns an error","Unsupported blockchain network returns a not-supported error","No approval found for the given pair returns empty or null allowance","Network timeout or RPC node unavailability causes a service error","Payment failure via x402 protocol results in 402 response before processing"],"whenToPreferThis":"Use this endpoint when you need a quick pay-per-use check on a token approval's status without standing up your own blockchain RPC infrastructure. Ideal for DeFi security audits, wallet dashboards, or agent workflows that need to verify on-chain allowances on demand. Prefer this over building custom RPC calls when low-overhead, per-request billing via x402 is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:56:10.473Z","isFirstParty":false}