<p>It seems that since v3.1.0, <a href="https://github.com/spesmilo/electrum/blob/f1b757821838ec4496e9e978cca70cee222f98e9/RELEASE-NOTES#L24-L27" rel="nofollow noreferrer">Electrum does not download any more the complete blockchain_headers, but only the pieces it needs to track transactions</a>. And installing a <a href="https://download.electrum.org/" rel="nofollow noreferrer">previous version</a> doesn't seem to work either.</p>

<p>So the more direct approach is probably to download the hashes from a web like <a href="https://blockchair.com/bitcoin/blocks" rel="nofollow noreferrer">https://blockchair.com/bitcoin/blocks</a>.</p>

<p>It is limited to 1 million cells for free, but as you only need "Hash" column, just:</p>

<ol>
<li><p>deselect all checkboxes but "Hash", and click on "Export" selecting then "csv". Open this file with your spreadsheet app.</p></li>
<li><p>If you need another column, repeat the step but just with it, and Export again to a (2) file.</p></li>
<li><p>Open the file from (2), copy the column, and paste it next to the first column in file from (1).</p></li>
<li><p>as the results are both ordered by time, rows coincide and you already have the desired data!</p></li>
</ol>

<hr>

<p>PS: As for Electrum, it is need to install a <a href="https://download.electrum.org/" rel="nofollow noreferrer">previous version</a> below v3. With a version 2.6.4 it seems to work and produce <a href="https://drive.google.com/file/d/1QPDGjz5VXDQsjDZ1TiflEVyY7HOoRIkz/view?usp=sharing" rel="nofollow noreferrer">a complete blockchain_headers file</a>. There's <a href="https://bitcoin.stackexchange.com/questions/66873/do-you-know-any-download-site-for-full-blockchain-header-data-6-in-csv-ascii-f/73987#73987">a Python script to convert it to a <code>.csv</code> file</a>.</p>

CC BY-SA 4.0
2019-08-06T23:39:24.580Z
thanks ,the code works. In the output i see only 0's till 500k lines. looks like the electrum file doesn't contain the whole list
Vinay M
CC BY-SA 4.0
2019-08-07T16:32:02.997Z
You're rigth: It seems that since v3.1.0, Electrum does not download any more the complete blockchain_headers. I've modified the answer: you may use a previous version that downloads the complete blockchain. You need the last data? Because probably I have some from a year ago or so...
circulosmeos
CC BY-SA 4.0
2019-08-08T12:08:19.103Z
Electrum blockchain_headers file is not usable any more: I've changed the answer with another approach that fits your needs.
circulosmeos
CC BY-SA 4.0
2019-08-08T23:47:02.407Z
Thank you so much for helping me out . It was helpful. I have one more question - i have installed bitcoind and its downloading blocks. could you please tell me how to retrieve the balance, has,tx...etc ?
Vinay M
CC BY-SA 4.0
2019-08-09T06:42:46.173Z
Sorry, I do not know bitcoind: but you can post a new question and someone else will help you! :-)
circulosmeos
CC BY-SA 4.0
2020-02-18T05:23:32.637Z
I don't see an "export" option on blockchair any more. Is someone else offering that sort of service (downloading a small subset of the fields?)
nealmcb
CC BY-SA 4.0
2024-06-24T10:08:58.437Z
You can use later versions of Electrum, [You'll need to clear the `checkpoints.json` file though](https://bitcoin.stackexchange.com/a/123438/34190).
Lee
CC BY-SA 4.0
2019-08-05T16:16:28.390Z
2019-08-09T07:24:25.530Z
2019-08-09T07:24:25.530Z
circulosmeos
<p>i need all block headers hash (about 500k records), i tried to get from electrum wallet files, but when i convert the file to Ascii, it doesn't have full list. please help.</p>

CC BY-SA 4.0
2019-08-02T16:02:58.783Z
What do you mean by "convert the file to ascii"? Do you just displaying its contents as text? If so, that won't work because block headers are ascii text, they are blobs of binary data.
Ava Chow
CC BY-SA 4.0
2019-08-02T17:10:45.083Z
i took the file "blockchain_headers" from electrum wallet and converted to ASCII format and opened in text editer in windows i see the latest block hashes but initial blocks data showing as 0's.
Vinay M
CC BY-SA 4.0
2019-08-04T17:15:12.627Z
I don't know how to resolve your problem with the  wallet files, but if you have a full node, you can get all hash block with the rpc framework
vincenzopalazzo
<blockchain><electrum>
Bitcoin block headers download
Vinay M
# Bitcoin block headers download

(Asked by: username_0 on 2019-08-02)

i need all block headers hash (about 500k records), i tried to get from electrum wallet files, but when i convert the file to Ascii, it doesn't have full list. please help.

**Tags:** blockchain, electrum

> **Comments:**
> **username_1**: What do you mean by "convert the file to ascii"? Do you just displaying its contents as text? If so, that won't work because block headers are ascii text, they are blobs of binary data.  
> **username_0**: i took the file "blockchain_headers" from electrum wallet and converted to ASCII format and opened in text editer in windows i see the latest block hashes but initial blocks data showing as 0's.  
> **username_2**: I don't know how to resolve your problem with the  wallet files, but if you have a full node, you can get all hash block with the rpc framework  

---

## 1 answers

### Answer by username_3 on 2019-08-05. Score: 0 | Accepted answer

It seems that since v3.1.0, [Electrum does not download any more the complete blockchain\_headers, but only the pieces it needs to track transactions](https://github.com/spesmilo/electrum/blob/f1b757821838ec4496e9e978cca70cee222f98e9/RELEASE-NOTES#L24-L27). And installing a [previous version](https://download.electrum.org/) doesn't seem to work either.

So the more direct approach is probably to download the hashes from a web like <https://blockchair.com/bitcoin/blocks>.

It is limited to 1 million cells for free, but as you only need "Hash" column, just:

1. deselect all checkboxes but "Hash", and click on "Export" selecting then "csv". Open this file with your spreadsheet app.
2. If you need another column, repeat the step but just with it, and Export again to a (2) file.
3. Open the file from (2), copy the column, and paste it next to the first column in file from (1).
4. as the results are both ordered by time, rows coincide and you already have the desired data!

---

PS: As for Electrum, it is need to install a [previous version](https://download.electrum.org/) below v3. With a version 2.6.4 it seems to work and produce [a complete blockchain\_headers file](https://drive.google.com/file/d/1QPDGjz5VXDQsjDZ1TiflEVyY7HOoRIkz/view?usp=sharing). There's [a Python script to convert it to a `.csv` file](https://bitcoin.stackexchange.com/questions/66873/do-you-know-any-download-site-for-full-blockchain-header-data-6-in-csv-ascii-f/73987#73987).

> **Comments:**
> **username_0**: thanks ,the code works. In the output i see only 0's till 500k lines. looks like the electrum file doesn't contain the whole list  
> **username_3**: You're rigth: It seems that since v3.1.0, Electrum does not download any more the complete blockchain_headers. I've modified the answer: you may use a previous version that downloads the complete blockchain. You need the last data? Because probably I have some from a year ago or so...  
> **username_3**: Electrum blockchain_headers file is not usable any more: I've changed the answer with another approach that fits your needs.  
> **username_0**: Thank you so much for helping me out . It was helpful. I have one more question - i have installed bitcoind and its downloading blocks. could you please tell me how to retrieve the balance, has,tx...etc ?  
> **username_3**: Sorry, I do not know bitcoind: but you can post a new question and someone else will help you! :-)  
> **username_4**: I don't see an "export" option on blockchair any more. Is someone else offering that sort of service (downloading a small subset of the fields?)  
> **username_5**: You can use later versions of Electrum, [You'll need to clear the `checkpoints.json` file though](https://bitcoin.stackexchange.com/a/123438/34190).  

---

