eth_getLogs - Pulsechain RPC Method
Query event logs on Pulsechain. Essential for indexing low-cost DeFi, staking protocols, and Ethereum-compatible dApps with reduced fees on the Ethereum fork L1 with lower gas fees and proof-of-stake consensus.
Returns an array of all logs matching a given filter object on Pulsechain.
Why Pulsechain? Build on the Ethereum fork L1 with lower gas fees and proof-of-stake consensus with full Ethereum state fork, proof-of-stake consensus, lower gas fees than Ethereum mainnet, and PulseX DEX ecosystem.
Use Cases
The eth_getLogs method is essential for:
- Event indexing - Track contract events for low-cost DeFi, staking protocols, and Ethereum-compatible dApps with reduced fees
- 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 Pulsechain. Essential for reading contract state for low-cost DeFi, staking protocols, and Ethereum-compatible dApps with reduced fees.
eth_newFilter
Create an event log filter on Pulsechain. Essential for event monitoring, contract activity tracking, and DeFi event streaming for low-cost DeFi, staking protocols, and Ethereum-compatible dApps with reduced fees.