eth_getLogs - Chiliz RPC Method
Query event logs on Chiliz. Essential for indexing sports fan tokens (Socios.com), club voting rights, gamified fan experiences, and tokenized sports assets on the sports-first blockchain powering 2M+ fan token wallets and dozens of licensed sports partnerships.
Returns an array of all logs matching a given filter object on Chiliz.
Why Chiliz? Build on the sports-first blockchain powering 2M+ fan token wallets and dozens of licensed sports partnerships with licensed partnerships with major football clubs, MiCA-compliant in EU, OG Esports integration, and SportFi DeFi infrastructure.
Use Cases
The eth_getLogs method is essential for:
- Event indexing - Track contract events for sports fan tokens (Socios.com), club voting rights, gamified fan experiences, and tokenized sports assets
- 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 Chiliz. Essential for reading contract state for sports fan tokens (Socios.com), club voting rights, gamified fan experiences, and tokenized sports assets.
eth_newFilter
Create an event log filter on Chiliz. Essential for event monitoring, contract activity tracking, and DeFi event streaming for sports fan tokens (Socios.com), club voting rights, gamified fan experiences, and tokenized sports assets.