{"uid":"cap_uSCMqcKOWAPcYCe0S1QO4","slug":"mach-gallery-base-logs-fetch-28d2260a","name":"Mach Gallery Base Logs Fetch","description":"Fast, low-cost Base data for autonomous agents. No API keys, no subscriptions; pay per call with USDC over x402.","url":"https://api.mach.gallery/api/base/logs?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"topics":{"type":"array","items":{"type":["string","null"],"description":"Ethereum log topic or null wildcard."},"maxItems":4},"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"Smart-contract address on Base mainnet."},"to_block":{"type":"integer","minimum":0,"description":"Last Base block to include in the log query."},"from_block":{"type":"integer","minimum":0,"description":"First Base block to include in the log query."}}},"responseSchema":{"type":"json","example":{"logs":[],"count":1,"network":"eip155:8453"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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_h6wTvWHzWBntMeBqymQsA","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 smart contract address on the Base blockchain within a specified block range and filtered by topics","exampleAgentPrompt":"Pull all event logs for Base contract address 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 from block 15000000 to 15001000, filtering by the Transfer topic 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.","exampleUseCases":[{"title":"Monitor ERC-20 transfer activity","prompt":"Get me all Transfer event logs for the USDC contract at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base from block 20000000 to 20005000 — I want to see every transfer that happened in that range."},{"title":"Audit contract events for a DeFi protocol","prompt":"Fetch all on-chain logs emitted by the Uniswap v3 pool at 0x4C36388bE6F416A29C8d8Eee81C771cE6bE14B18 on Base between blocks 18000000 and 18010000 so I can audit swap and liquidity events."},{"title":"Track wallet-specific on-chain activity","prompt":"Pull any logs involving the address 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Base from block 22000000 to 22050000 — I need to see what contract interactions happened in that window."}],"resultDescription":"Returns a JSON object containing an array of matching event logs, the count of results, and the network identifier (eip155:8453 for Base mainnet). Each log typically includes contract address, topics, data, block number, and transaction hash.","failureModes":["Invalid EVM address format returns a validation error","Block range too large may return empty or truncated results","No matching logs returns an empty array with count 0","Insufficient USDC payment via x402 results in a 402 Payment Required response","Invalid topic hash format causes request rejection","from_block greater than to_block may return an error or empty result"],"whenToPreferThis":"Choose this endpoint when you need raw EVM event logs from the Base blockchain without setting up API keys or subscriptions — ideal for autonomous agents that want pay-per-call access to Base log data. Prefer it over node providers like Alchemy or Infura when you need zero-setup, USDC micropayment-based access and are already operating in an x402-compatible payment environment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:37:25.094Z","isFirstParty":false,"canonicalSlug":"mach-gallery-base-logs-fetch-28d2260a"}