Docs

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 CodeMessageDescription
-32005Query returned more than 10000 resultsReduce block range
-32602Invalid paramsInvalid filter parameters