{"uid":"cap_11S_LnTu6ArTfHXQgnVLs","slug":"agentshelf-base-events-log-fetcher-cf22bf55","name":"AgentShelf Base Events Log Fetcher","description":"Call when an agent needs raw Base logs for one contract, with optional topic0-topic3, a capped block range, and an optional event signature for decoding. Public mainnet.base.org windows stay small and HTTP 429 is not billed. Read-only. Send JSON fields address (string), topic0 (string), event (string). Exact $0.005 USDC on Base. Try unpaid POST /v1/sandbox/base-events first.","url":"https://agentshelf.syntexa.ch/v1/base-events?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"event":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*\\([A-Za-z0-9_,\\s]*\\)$","examples":["Transfer(address indexed from, address indexed to, uint256 value)"],"maxLength":300,"description":"Optional Solidity event signature. Example: Transfer(address indexed from, address indexed to, uint256 value). topic0 defaults to its keccak. Arrays are not decoded."},"topic0":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$","examples":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"],"description":"First log topic, 32 bytes of hex. Example: 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef is ERC-20 Transfer. Omit it for a wildcard in that position."},"topic1":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$","description":"Second log topic, 32 bytes of hex. Example: 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef is ERC-20 Transfer. Omit it for a wildcard in that position."},"topic2":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$","description":"Third log topic, 32 bytes of hex. Example: 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef is ERC-20 Transfer. Omit it for a wildcard in that position."},"topic3":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$","description":"Fourth log topic, 32 bytes of hex. Example: 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef is ERC-20 Transfer. Omit it for a wildcard in that position."},"address":{"type":"string","examples":["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"],"description":"Contract on Base mainnet. Example: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 (Circle USDC). Logs are filtered to this address. EIP-55 or all one case."},"to_block":{"type":"string","description":"Last block, inclusive, or latest. On public Base the span is at most 16 blocks. With a configured BASE_RPC_URL, or on Ethereum, the span is at most 2000. Omit it to anchor the default window."},"from_block":{"type":"string","pattern":"^(0|[1-9]\\d*)$","description":"First block, inclusive. On public Base the span is at most 16 blocks. With a configured BASE_RPC_URL, or on Ethereum, the span is at most 2000. Omit both bounds for the default recent window."}}},"responseSchema":null,"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":"down","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_yvhvLV0xM_J-CY8BfY_XF","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 raw event logs from a specified contract on Base mainnet, with optional topic filtering and Solidity event signature decoding.","exampleAgentPrompt":"Pull the ERC-20 Transfer event logs for the USDC contract at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base mainnet using event signature Transfer(address indexed from, address indexed to, uint256 value), covering the last 16 blocks up to latest.","exampleUseCases":[{"title":"Monitor USDC transfers on Base","prompt":"Fetch all Transfer events from the USDC contract at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base mainnet — use the event signature Transfer(address indexed from, address indexed to, uint256 value) and get the most recent 16 blocks."},{"title":"Track NFT mint events for a collection","prompt":"Get the raw logs for the Mint event on Base mainnet contract 0x4200000000000000000000000000000000000006 using topic0 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef, from block 12000000 to latest."},{"title":"Debug specific contract event emission","prompt":"I need to check whether contract 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD on Base mainnet emitted any events matching topic0 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef in the last few blocks — can you fetch those logs and decode them using Transfer(address indexed from, address indexed to, uint256 value)?"}],"resultDescription":"Returns an array of raw event log objects from Base mainnet for the specified contract, each containing block number, transaction hash, log index, raw topic values (topic0–topic3), and raw data. If a Solidity event signature is supplied, decoded parameter values are also included alongside the raw fields.","failureModes":["HTTP 429 if rate limit exceeded on public Base RPC (not billed)","Block range exceeds 16-block cap on public mainnet (error returned)","Invalid address format returns validation error","Invalid topic hash format (not 0x + 64 hex chars) returns schema error","Invalid event signature format returns pattern mismatch error","No logs found for given filters returns empty array","Contract does not exist on Base mainnet returns empty result"],"whenToPreferThis":"Choose this endpoint when you need on-chain event logs specifically from Base mainnet for a single contract address, with optional topic filtering up to topic3 and optional Solidity ABI decoding. It is purpose-built for Base, handles the public RPC window constraint automatically, and offers a free sandbox at /v1/sandbox/base-events for testing before paying. Prefer it over generic RPC calls when you need decoded event parameters without setting up your own node or API key.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-23T21:25:06.015Z","isFirstParty":false,"canonicalSlug":"agentshelf-base-events-log-fetcher-cf22bf55"}