{"uid":"cap_qMGMsYcdlGZ3HCYUDS7sV","slug":"blockchain-event-logs-query-03a946f4","name":"Blockchain Event Logs Query","description":"Use when you need recent event logs of a contract on Base, Ethereum, Arbitrum, Optimism or Polygon: filter by contract, optional topic0 (event signature hash) and a block range of at most 200 blocks (defaults to the last 10). Returns up to 200 logs with topics and data.","url":"https://biosfera.46-62-215-147.sslip.io/o/event-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":["chain","address"],"properties":{"chain":{"enum":["base","ethereum","arbitrum","optimism","polygon"],"type":"string"},"topic0":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$"},"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"to_block":{"type":"integer","minimum":0},"from_block":{"type":"integer","minimum":0}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_FFRNoD-qjb7zatm2jQMyq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches recent on-chain event logs for a smart contract across Base, Ethereum, Arbitrum, Optimism, or Polygon, with optional event signature and block range filtering","exampleAgentPrompt":"Can you pull the last 200 blocks of event logs for the USDC contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum, filtered to Transfer events (topic0 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef)?","exampleUseCases":[{"title":"Audit DeFi protocol transfers on Base","prompt":"Show me all Transfer events for the token contract 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base from block 15000000 to 15000200."},{"title":"Debug failed NFT mint events on Polygon","prompt":"Fetch the event logs for the NFT contract 0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D on Polygon over the last 10 blocks so I can see if any Mint events were emitted."},{"title":"Monitor DAO governance votes on Arbitrum","prompt":"Get me the recent event logs for the governance contract 0x789fC99093B09aD01C34DC7251D0C89ce743e5a4 on Arbitrum, filtered by the VoteCast event signature 0xb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda4, covering blocks 100000 to 100200."}],"resultDescription":"Returns up to 200 event log entries for the specified contract, each containing the block number, transaction hash, log index, topics array (including topic0 through topic3), and raw ABI-encoded data field, covering at most 200 blocks of history.","failureModes":["Block range exceeds 200 blocks — request rejected","Invalid contract address format (must be 0x-prefixed 40-hex address)","Invalid topic0 format (must be 0x-prefixed 64-hex hash)","Unsupported chain value — must be one of base, ethereum, arbitrum, optimism, polygon","No logs found in the specified range — returns empty list","RPC node timeout or chain congestion causing delayed response","Payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint when you need raw on-chain event logs for a specific smart contract across major EVM chains without running your own node or indexer. It is ideal for lightweight event monitoring, debugging contract interactions, auditing recent token transfers, or triggering agent workflows based on on-chain activity — all within a 200-block sliding window. Prefer this over full indexing solutions when you only need a narrow recent block range and don't need historical data beyond 200 blocks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T12:51:32.640Z","isFirstParty":false,"canonicalSlug":"blockchain-event-logs-query-03a946f4"}