I'm looking for a way/link/service to get a list of ALL (~4400000) block hashes yet.

Any idea how to get that?


2 Answers 2


QuickBlocks provides a command line tool getBlock that can do this. It runs against a local node, if present, or Infura if not. It retrieves only 10,000 blocks at a time, but you could write a shell script to loop over (with a sleep to allow for Infura's rate limit). You call it with

getBlock start-stop

and it prints all JSON for all the blocks from start to stop. You could do

getBlock start-stop | grep hash

to retieve only the hashes.

[Full disclosure: I wrote QuickBlocks. Sorry to keep shilling it, but it actually does answer this question directly. We're announcing parts of it as open source very soon.]


I don't know of a service that just provides exactly that.

You can use Etherscan o Infura nodes to query all blocks, and store the hashes in a database. But those services have rate limits and very like you will reach them when querying for that amount of blocks.

You can setup your own node. If you need block hashes it is very likely you might need in the future transactions data. So having a node my provide more flexible queries going forward.

Also you can put a bounty in reddit.com/r/ethereum if someones provides the data.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.