{"uid":"cap_jIaD-GYRyrFuhYmlHAHxz","slug":"47620-xyz-polygon-contract-inspector-35947cf9","name":"47620.xyz Polygon Contract Inspector","description":"Whether a polygon address is a contract, its bytecode size, and (for ERC-20s) name/symbol/decimals.","url":"https://47620.xyz/x/polygon/contract/:address?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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_P3S8OrgH9NWpgDLuu674w","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks whether a Polygon address is a smart contract, returns its bytecode size, and retrieves ERC-20 token metadata (name, symbol, decimals) if applicable.","exampleAgentPrompt":"Can you check if the Polygon address 0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619 is a smart contract, and if it's an ERC-20 token, tell me its name, symbol, and decimals?","exampleUseCases":[{"title":"Validate token contract before swap","prompt":"Before I swap into this token at 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174 on Polygon, can you confirm it's actually a deployed ERC-20 contract and tell me its name and symbol?"},{"title":"Distinguish contract from wallet address","prompt":"I have this Polygon address 0xaB5801a7D398351b8bE11C439e05C5B3259aeC9B — is it a smart contract or just a regular wallet? And if it's a contract, what's its bytecode size?"},{"title":"Fetch ERC-20 decimals for price calculation","prompt":"I need the decimals for the ERC-20 token at Polygon address 0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270 so I can correctly format the token amounts in my calculation."}],"resultDescription":"Returns a boolean indicating whether the address is a contract, the bytecode size in bytes, and — if the contract implements ERC-20 — the token name, symbol, and decimal precision.","failureModes":["Invalid or malformed Polygon address returns an error or empty result","Address exists but is an EOA (not a contract) — bytecode size is 0 and ERC-20 fields are absent","Contract exists but does not implement ERC-20 interface — name/symbol/decimals will be null or missing","Network congestion or RPC node issues may cause timeouts","Address of a self-destructed contract may return empty bytecode"],"whenToPreferThis":"Use this endpoint when you need to quickly determine whether a Polygon address is a deployed smart contract and optionally retrieve ERC-20 token metadata in a single call. Prefer it over generic Polygon RPC calls when you want a structured, pre-parsed response without manually calling eth_getCode and multiple ERC-20 view functions yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T02:56:21.202Z","isFirstParty":false,"canonicalSlug":"47620-xyz-polygon-contract-inspector-35947cf9"}