{"uid":"cap_0Sev_gffjrnK3KBfdScqk","slug":"moneytools-contract-event-logs-decoded-9dab438a","name":"MoneyTools Contract Event Logs (Decoded)","description":"Contract event logs (decoded): Recent events of a contract (≤5000 blocks), decoded with your event signature or automatically via the open Sourcify signature DB. Free tier 10/day; then $0.002 via x402 (HTTP 402 + PAYMENT-REQUIRED) or X-API-Key credits. Not charged on failure. $0.002 USDC per call via x402 on Base. Run by MoneyTools.","url":"https://tools.moneytools.dev/v1/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":{"const":"http"},"method":{"const":"GET"},"queryParams":{"type":"object","required":["chain","address"],"properties":{"chain":{"type":"string","examples":["base"],"description":"chain: base, ethereum, arbitrum, optimism, polygon, bsc, avalanche"},"event":{"type":"string","examples":["Transfer(address indexed from, address indexed to, uint256 value)"],"description":"event signature"},"limit":{"type":"number","examples":["20"],"description":"max logs 1-100"},"blocks":{"type":"number","examples":["10"],"description":"look-back blocks (default 1000, max 5000)"},"address":{"type":"string","examples":["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"],"description":"contract"},"toBlock":{"type":"string","description":"end block"},"fromBlock":{"type":"string","description":"start block"}}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","properties":{"payment":{"type":"object","properties":{"charged":{"type":"boolean"},"network":{"type":"string"},"amountUsd":{"type":"string"},"transaction":{"type":["string","null"]}}},"freeTier":{"type":"object"},"_moneytools":{"type":"object","description":"optional plan / partner hints"}},"description":"Tool-specific JSON result (see llms.txt / openapi.json). Always includes payment info.","additionalProperties":true}}}}},"responseSchema":{"type":"json"},"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_zZGXGXXBrpmZFHXIQt0K2","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 and decodes recent on-chain event logs for a smart contract (up to 5000 blocks back), using a provided event signature or the Sourcify signature database for automatic decoding.","exampleAgentPrompt":"Can you fetch the last 500 blocks of Transfer events for the USDC contract at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base, using the signature Transfer(address indexed from, address indexed to, uint256 value), and return up to 20 logs?","exampleUseCases":[{"title":"Monitor recent ERC-20 transfers","prompt":"Get me the last 1000 blocks of Transfer events for the USDC contract 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base — decode them using the Transfer(address indexed from, address indexed to, uint256 value) signature and show me up to 50 logs."},{"title":"Debug DeFi contract activity","prompt":"My Uniswap pool contract on Arbitrum at 0xC31E54c7a869B9FcBEcc14363CF510d1c41fa443 had some unexpected swaps — can you pull the last 2000 blocks of decoded event logs and show me up to 100 entries?"},{"title":"Audit NFT mint events on Polygon","prompt":"Pull the recent Mint or Transfer events for the NFT contract 0x2953399124F0cBB46d2CbACD8A89cF0599974963 on Polygon for the last 500 blocks, auto-detect the event signatures, and return up to 30 logs."}],"resultDescription":"A JSON object containing an array of decoded event logs for the specified contract and block range, each log including decoded parameter values (e.g. from/to addresses, amounts), plus metadata about the payment (whether a charge was applied, the transaction hash, and the amount in USD), and optional plan/partner hints under _moneytools.","failureModes":["Invalid or unrecognized contract address returns an error","Chain not supported returns a validation error","Block range exceeds 5000 blocks results in a capped or error response","Event signature not found in Sourcify DB and none provided returns undecodable raw logs","Free tier exhausted (10/day) with no payment method results in HTTP 402","Network/RPC node unavailability causes retrieval failure","Contract has no events in the requested block range returns empty logs array"],"whenToPreferThis":"Choose this endpoint when you need decoded (human-readable) on-chain event logs for a specific smart contract across major EVM chains, especially when you don't have the full ABI but want automatic signature resolution via Sourcify. It supports a pay-per-call model via x402 on Base with USDC, making it ideal for agents that need occasional on-chain log queries without a subscription. Prefer it over raw RPC calls when you want structured, decoded output without setting up your own node or indexer.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-05T12:43:43.594Z","isFirstParty":false,"canonicalSlug":"moneytools-contract-event-logs-decoded-9dab438a"}