{"uid":"cap_KTPKTJ-9ZomzRvo8avG4J","slug":"agent402-evm-event-logs-f418df58","name":"Agent402 EVM Event Logs","description":"Fetch contract event logs (eth_getLogs) on Ethereum, Base, Polygon, Arbitrum, or Optimism - bounded so it always answers: block range capped at 2000 blocks (default: the last 100, auto-narrowed for busy contracts), at most 200 logs returned (truncated flag set if more matched). Filter by contract address and optional topic0 (event signature hash). Keyless multi-endpoint failover.","url":"https://agent402.tools/api/event-logs","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"topic0":{"type":"string","description":"Optional event signature hash (32-byte 0x hex), e.g. the ERC-20 Transfer topic."},"address":{"type":"string","description":"Contract address to read logs from (0x…)."},"network":{"type":"string","description":"ethereum / base / polygon / arbitrum / optimism (default base)."},"toBlock":{"type":"string","description":"End block (decimal, 0x hex, or \"latest\"). Default latest."},"fromBlock":{"type":"string","description":"Start block (decimal or 0x hex). Default: toBlock - 100."}}},"responseSchema":{"type":"json","example":{"logs":[{"data":"0x…","topics":["0xddf2…"],"txHash":"0x…","blockNumber":26999512}],"count":87,"address":"0x8335…","network":"base","toBlock":27000000,"fromBlock":26999500,"truncated":false}},"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_TTOewGumwTvx2t2xAmNdQ","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 on-chain event logs for a given contract address and block range across multiple EVM networks, optionally filtered by event signature topic.","exampleAgentPrompt":"Fetch the last 100 blocks of event logs for the contract 0x8335… on Base, filtered to ERC-20 Transfer events using topic0 0xddf252ad…","exampleUseCases":[{"title":"Monitor ERC-20 token transfers","prompt":"Pull all Transfer event logs for the USDC contract on Base from block 26999500 to the latest block — I want to see who has been moving tokens in the last hour."},{"title":"Audit DeFi protocol activity","prompt":"Get me the raw event logs for the Uniswap v3 pool at 0xabc123… on Ethereum from block 19000000 to 19001000 so I can see all the swap and liquidity events."},{"title":"Debug smart contract interactions","prompt":"Can you fetch the event logs emitted by the contract at 0xdeadbeef… on Arbitrum over the last 100 blocks? I'm trying to figure out which transactions triggered events recently."}],"resultDescription":"A JSON object containing an array of raw event logs (each with data, topics array, txHash, and blockNumber), plus metadata: total count, queried address, network, fromBlock, toBlock, and a truncated flag indicating whether results were capped.","failureModes":["Invalid or malformed contract address returns an error","Unsupported network name results in a 400-level error","Block range too large may return truncated results (truncated: true)","Non-existent or zero-activity contract returns an empty logs array","Invalid topic0 hash format may cause a parsing error","Network congestion or RPC unavailability may cause timeout"],"whenToPreferThis":"Use this endpoint when you need raw EVM event logs for a specific contract across major networks (Ethereum, Base, Polygon, Arbitrum, Optimism) without setting up your own RPC node or API key. It is ideal for pay-per-call agent workflows that need on-chain data on demand, especially when filtering by event signature (topic0) such as ERC-20 Transfers. Prefer this over full indexing services when you need a quick targeted block range query rather than historical indexing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:18:15.675Z","isFirstParty":false}