Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to fetch token history #14925

Open
1 task done
paulmillr opened this issue Mar 9, 2025 · 3 comments
Open
1 task done

Impossible to fetch token history #14925

paulmillr opened this issue Mar 9, 2025 · 3 comments
Labels
A-observability Related to tracing, metrics, logs and other observability tools A-rpc Related to the RPC implementation C-enhancement New feature or request

Comments

@paulmillr
Copy link

paulmillr commented Mar 9, 2025

Describe the bug

I've built esplr - private block explorer, but it can't be ran on reth.

It utilizes trace_filter which is great and universal. Reth has 100-block limit for trace_filter, requiring 190k requests just get transactions (source code). If there are better APIs for this purpose, let's document / create them.

Other useful methods are in ots_ namespace, which allow ots_searchTransactionsBefore, ots_searchTransactionsAfter and ots_getContractCreator - seems to be fairly low-effort?

In any case, it would be awesome to make Reth support local block explorers! It seems like it can enable all kinds of different new use-cases besides mine.

Steps to reproduce

Run trace_filter request, batch size is max 100

Requirements

One thing to keep in mind is that Erigon has smaller datasets even though the feature / index is enabled.

Code of Conduct

  • I agree to follow the Code of Conduct
@paulmillr paulmillr added C-bug An unexpected or incorrect behavior S-needs-triage This issue needs to be labelled labels Mar 9, 2025
@emhane emhane added C-enhancement New feature or request A-rpc Related to the RPC implementation A-observability Related to tracing, metrics, logs and other observability tools and removed S-needs-triage This issue needs to be labelled C-bug An unexpected or incorrect behavior labels Mar 10, 2025
@Rjected
Copy link
Member

Rjected commented Mar 10, 2025

Opened an issue to make the block range configurable:
#14930

@paulmillr
Copy link
Author

Great that #14939 / #14930 have been solved! This improves things a lot.

One item that may still be missing is having proper indexes. To build list of address txs, we don't know when "first block containing tx" happened. This means we will need to walk through ALL blocks / full history.

How complicated would it be to add something similar to what's in Erigon? Or something better to solve this issue?

@paulmillr
Copy link
Author

@mattsse is it clear how much effort something like this could take?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-observability Related to tracing, metrics, logs and other observability tools A-rpc Related to the RPC implementation C-enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

3 participants