{"uid":"cap_-zFoFZbgMJyoI3GzW2e_Q","slug":"sitecheck-evm-contract-event-logs-d6cc9af2","name":"SiteCheck EVM Contract Event Logs","description":"Event logs of a contract over recent blocks (default 1,000, max 5,000), newest first, max 100: block, transaction hash, topics and data. topic0 takes an event signature such as Transfer(address,address,uint256) or a 32-byte hash. Public nodes refuse very large results: narrow the range or add topic0.","url":"https://api.sitecheck-api.workers.dev/api/evm/logs?utm_source=zero.xyz","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"},"queryParams":{"type":"object","required":["contract"],"properties":{"chain":{"type":"string","description":"base (default), ethereum, arbitrum, optimism or polygon"},"blocks":{"type":"string","description":"Blocks to search back from the latest (max 5000)"},"topic0":{"type":"string","description":"Event signature, e.g. Transfer(address,address,uint256), or a 32-byte hash"},"contract":{"type":"string","description":"Contract address, 0x…"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"logs":[{"data":"0x00000000000000000000000000000000000000000000000000000000002ca077","block":52582002,"topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x0000000000000000000000002610bbdd829f00fef0acf572a610391aa76f549c"],"txHash":"0x1eee8e31f014e26b5de018b0b958261ad564ff8efc81caf64366b38fc5fc30c2","logIndex":1},{"data":"0x00000000000000000000000000000000000000000000000000000000002ca077","block":52582002,"topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x000000000000000000000000fdf682f51fe81aa4898f0ae2163d8a55c127fbc7"],"txHash":"0x1eee8e31f014e26b5de018b0b958261ad564ff8efc81caf64366b38fc5fc30c2","logIndex":3}],"chain":"base","count":100,"source":"https://base-rpc.publicnode.com (eth_blockNumber, eth_getLogs)","topic0":"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","window":{"blocks":5,"toBlock":52582006,"fromBlock":52582002},"contract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","checkedAt":"2026-10-14T04:49:19.284Z","truncated":true,"disclaimer":"Information only, not financial advice."}},"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_C8ctoGcjhPnoUciD3aSg_","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":"Fetches raw event logs emitted by an EVM smart contract on a specified chain, optionally filtered by event topic signature","exampleAgentPrompt":"Pull the last 200 blocks of Transfer event logs for the USDC contract at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base, filtering by topic0 Transfer(address,address,uint256).","exampleUseCases":[{"title":"Track ERC-20 token transfer activity","prompt":"Fetch all Transfer events fired by the USDC contract 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base over the last 500 blocks so I can see recent transfer activity."},{"title":"Monitor DeFi protocol events on Arbitrum","prompt":"Get the latest event logs from the Uniswap V3 pool contract 0x1d42064Fc4Beb5F8aAF85F4617AE8b3b5B8Bd801 on Arbitrum, filtered to Swap(address,address,int256,int256,uint160,uint128,int24) events, going back 1000 blocks."},{"title":"Audit contract events for compliance","prompt":"Retrieve all on-chain logs emitted by contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum over the past 5000 blocks so I can audit every event it has fired recently."}],"resultDescription":"Returns a JSON object containing an array of event log entries, each with block number, transaction hash, log index, topics array, and raw data hex. Also includes metadata: chain name, total count, block window (fromBlock/toBlock), the contract address queried, topic0 filter used, timestamp, a truncated flag if results were capped, and data source attribution.","failureModes":["Missing required 'contract' query parameter returns an error","Invalid or malformed contract address (not 0x-prefixed hex) causes a bad request error","Unsupported chain name returns an error; only base, ethereum, arbitrum, optimism, polygon are accepted","Blocks value exceeding 5000 is rejected or capped","No logs found returns an empty logs array with count 0","RPC node timeout or unavailability may cause a service error","Malformed topic0 (invalid event signature or non-32-byte hash) may return no results or an error"],"whenToPreferThis":"Choose this endpoint when you need raw EVM event log data for a specific contract on a supported L1/L2 chain (Base, Ethereum, Arbitrum, Optimism, Polygon) and want to filter by event type via topic0. It is pay-per-call with no API key setup, making it ideal for agent workflows that need occasional on-chain event lookups without provisioning dedicated RPC infrastructure. Prefer this over full blockchain node queries when you need a simple, affordable REST call to retrieve recent contract events.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T12:32:35.888Z","isFirstParty":false,"canonicalSlug":"sitecheck-evm-contract-event-logs-d6cc9af2"}