I'm looking for a way/link/service to get a list of ALL (~4400000) block hashes yet.
Any idea how to get that?
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community
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
and it prints all JSON for all the blocks from
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.