Skip to content

feat: eth_getLogs proxy compatibility for archive-node use cases #60

@satyakwok

Description

@satyakwok

Add an eth_getLogs-compatible endpoint that proxies into the indexer's log table. Many tools (TheGraph, Goldsky, Tenderly, indexing libraries) call eth_getLogs directly and expect block-range + topic-filter semantics.

Why

Sentrix's public RPC at rpc.sentrixchain.com runs against fullnodes that don't keep deep log history (CHAIN_WINDOW_SIZE rolls). Tools that need "all USDC transfers ever" hit a wall. The indexer has full log history in Postgres — exposing eth_getLogs over that fills the gap.

Scope

  • eth_getLogs JSON-RPC method served by the indexer (separate port or under /rpc)
  • Block-range support (fromBlock / toBlock, including latest/earliest)
  • Topic filter support (1, 2, 3, 4 topics with OR within position)
  • Address filter (single or array)
  • Pagination + max-result-cap (e.g. 10k logs per request) with continuation token

Acceptance

  • eth_getLogs returns identical results to running the same query on an archive node
  • Used by sentrix-dex subgraph for historical Swap event backfill

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions