eth_getLogs - Boba Network RPC Method
Query event logs on Boba Network. Essential for indexing AI-powered dApps, Web2 API integration, enterprise blockchain solutions, and offchain computation on the Hybrid Compute L2 enabling smart contracts to access AI models and Web2 APIs natively.
Returns an array of all logs matching a given filter object on Boba Network.
Why Boba Network? Build on the Hybrid Compute L2 enabling smart contracts to access AI models and Web2 APIs natively with HybridCompute 2.0 for native AI/API access, $70M ecosystem funding, OP Stack compatibility, and two-way offchain integration.
Use Cases
The eth_getLogs method is essential for:
- Event indexing - Track contract events for AI-powered dApps, Web2 API integration, enterprise blockchain solutions, and offchain computation
- Token transfers - Monitor ERC20/ERC721 transfers
- DeFi analytics - Track swaps, liquidity events, and more
- Notification systems - Alert on specific on-chain events
Code Examples
Error Handling
| Error Code | Message | Description |
|---|---|---|
| -32005 | Query returned more than 10000 results | Reduce block range |
| -32602 | Invalid params | Invalid filter parameters |
Related Methods
eth_newFilter- Create a filter for logseth_getFilterChanges- Poll filter for new logs
eth_call
Execute smart contract calls without creating transactions on Boba Network. Essential for reading contract state for AI-powered dApps, Web2 API integration, enterprise blockchain solutions, and offchain computation.
eth_newFilter
Create an event log filter on Boba Network. Essential for event monitoring, contract activity tracking, and DeFi event streaming for AI-powered dApps, Web2 API integration, enterprise blockchain solutions, and offchain computation.