{"uid":"cap_QBFF5Em7NOc4lUiHjSXZV","slug":"logicnodes-evm-contract-type-detector-5dade255","name":"LogicNodes EVM Contract Type Detector","description":"Exact answers for AI agents: 40+ tools for EVM chains and Aptos, gas on 14 chains, never a guess. Free tier; pay per call in USDC (x402) on 13 networks.","url":"https://logicnodes.io/paid/v1/tools/evm_contract_type?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"block":{"type":"string","description":"\"latest\" (default), \"safe\", \"finalized\", or a decimal block number. Every value in the answer is read at this one block"},"chain":{"type":"string","description":"EVM CAIP-2 chain id such as eip155:8453, or a bare chain id number as a string. Chain names are refused."},"address":{"type":"string","description":"0x + 40 hex digits (EIP-55 checksum enforced when mixed-case)"}}},"responseSchema":{"type":"json","example":{"ok":true,"tool":"evm_contract_type"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NpkmZpvXw27dRp6lYZx6a","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Identifies the type/classification of a smart contract at a given EVM address and block height","exampleAgentPrompt":"What type of smart contract is deployed at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Base (eip155:8453)? Check at the latest block.","exampleUseCases":[{"title":"Token contract verification before swap","prompt":"Before I approve this token swap, can you check what type of contract 0xdAC17F958D2ee523a2206206994597C13D831ec7 is on Ethereum (eip155:1) at the latest block? I want to confirm it's actually an ERC-20 token."},{"title":"NFT contract classification for marketplace","prompt":"I need to know whether the contract at 0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D on Ethereum mainnet (eip155:1) is an ERC-721 or ERC-1155 NFT — check at the finalized block."},{"title":"Proxy contract detection for security audit","prompt":"Can you tell me what kind of contract is at 0x1F98431c8aD98523631AE4a59f267346ea31F984 on Arbitrum (eip155:42161) at block 150000000? I'm trying to find out if it's a proxy or an implementation contract."}],"resultDescription":"A JSON object with an 'ok' boolean and a 'tool' field confirming the tool used, plus the detected contract type/classification for the given address at the specified block on the specified EVM chain.","failureModes":["Invalid or non-checksummed mixed-case address returns an error","Chain name (e.g. 'ethereum') instead of CAIP-2 ID or numeric chain ID is refused","Address is an EOA (externally owned account) with no contract code","Unsupported chain ID returns an error","Payment failure via x402 protocol causes request rejection","Block number beyond chain tip returns an error"],"whenToPreferThis":"Use this endpoint when you need a definitive, on-chain classification of a smart contract type on an EVM-compatible chain, especially when accuracy matters for downstream logic (e.g. before executing a transaction, auditing a contract, or routing DeFi operations). Prefer LogicNodes over RPC self-inspection when you want a structured, AI-friendly answer rather than raw bytecode analysis. Particularly useful when you need historical contract classification at a specific block.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T06:44:00.259Z","isFirstParty":false,"canonicalSlug":"logicnodes-evm-contract-type-detector-5dade255"}