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

perf: erigon block headers #35

Open
banteg opened this issue Aug 17, 2023 · 0 comments
Open

perf: erigon block headers #35

banteg opened this issue Aug 17, 2023 · 0 comments

Comments

@banteg
Copy link
Contributor

banteg commented Aug 17, 2023

erigon supports erigon_getHeaderByNumber, which can be wrapped into a jsonrpc batches of 100-1000 to get all block headers in minutes. this method could also be used as a cheap way to enrich other datasets with timestamps.

let block = provider.request("erigon_getHeaderByNumber", [number]).await;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant