{"uid":"cap_4qpu466SogpXCzV3KZypg","slug":"gnosis-eth-getlogs-a16615ea","name":"Gnosis ETH getLogs","description":"Returns the event logs one contract emitted on Gnosis Chain over the last N blocks, read with eth_getLogs. Takes address (contract, 0x + 40 hex), optional topic0 (event signature hash, 0x + 64 hex) and optional blocks (1-100, default 10). Query: address (contract, 0x + 40 hex), topic0 (optional event signature hash, 0x + 64 hex), blocks (optional, last N blocks, 1-100 (default 10)).","url":"https://ari001.tailb4ac3a.ts.net/v1/ventures/gnosis_chain_rpc_api/gnosis_eth_getlogs?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["address"],"properties":{"blocks":{"type":"string","pattern":"^[0-9]{1,3}$","description":"optional, last N blocks, 1-100 (default 10)"},"topic0":{"type":"string","pattern":"^0x[a-fA-F0-9]{64}$","description":"optional event signature hash, 0x + 64 hex"},"address":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"contract, 0x + 40 hex"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["ok","service"],"properties":{"ok":{"type":"boolean"},"chain":{"type":"string"},"error":{"type":"string","description":"present when ok is false"},"method":{"type":"string"},"result":{"type":"object","properties":{"logs":{"type":"array","maxItems":200},"count":{"type":"integer"},"to_block":{"type":"integer"},"truncated":{"type":"boolean"},"from_block":{"type":"integer"}}},"service":{"type":"string"}}}}}}},"responseSchema":null,"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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ketcNiQFLEU8RbMui5NQN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches event logs emitted by a specific contract on Gnosis Chain over the last N blocks using eth_getLogs","exampleAgentPrompt":"Can you pull the last 20 blocks of event logs for the Gnosis Chain contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, filtering for Transfer events with topic0 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef?","exampleUseCases":[{"title":"Monitor DeFi protocol activity","prompt":"Fetch the last 50 blocks of event logs from the Gnosis Chain contract 0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb — I want to see all events it has emitted recently."},{"title":"Track ERC-20 transfers on Gnosis","prompt":"Pull Transfer event logs for the Gnosis Chain token contract at 0x4ECaBa5870353805a9F068101A40E0f32ed605C6 over the last 30 blocks, using topic0 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef."},{"title":"Audit smart contract emissions","prompt":"Show me all event logs emitted by the Gnosis contract at 0x6810e776880C02933D47DB1b9fc05908e5386b96 over the last 10 blocks so I can audit its recent on-chain activity."}],"resultDescription":"Returns a JSON object with an array of up to 200 event logs (each containing topics, data, block number, transaction hash, and log index), total log count, from_block and to_block range, and a truncated flag indicating if the result was capped. On error, an error string is included and ok is false.","failureModes":["Invalid contract address format (not 0x + 40 hex) returns validation error","Invalid topic0 format (not 0x + 64 hex) returns validation error","blocks parameter out of range (>100 or <1) returns validation error","Contract has no logs in requested block range — returns empty logs array with count 0","RPC node unavailable or timeout — returns ok: false with error message","More than 200 logs truncated — truncated flag set to true"],"whenToPreferThis":"Use this endpoint when you need raw event logs from a specific contract on Gnosis Chain (xDai), not Ethereum mainnet. Choose it over Ethereum-mainnet getLogs endpoints when your contract is deployed on Gnosis. It is ideal for reading DeFi events, ERC-20 transfers, governance votes, or any custom contract events in a lightweight lookback window of 1–100 blocks without running your own Gnosis node.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T06:49:31.955Z","isFirstParty":false,"canonicalSlug":"gnosis-eth-getlogs-a16615ea"}