Docs

eth_getLogs - Hyperliquid RPC Method

Query event logs on Hyperliquid. Essential for indexing perpetual futures trading, onchain order books, and institutional-grade derivatives on the trading-focused EVM and HyperCore ecosystem built for onchain perpetuals and market data.

Returns an array of all logs matching a given filter object on Hyperliquid.

Why Hyperliquid? Build on the trading-focused EVM and HyperCore ecosystem built for onchain perpetuals and market data with HyperCore market structure, sub-second finality, and direct access to trading-focused data services.

Use Cases

The eth_getLogs method is essential for:

  • Event indexing - Track contract events for perpetual futures trading, onchain order books, and institutional-grade derivatives
  • 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