Author

Topic: Big List of bitcoin block hashes (Read 1083 times)

jr. member
Activity: 49
Merit: 1
April 02, 2022, 06:11:29 AM
#12
it takes a while.. with more than 730030 entries XD
Why does it take time?
There are so many ways to get it in a very short time. For example you could find a block explorer with an API that lets you search and fetch hashes with block height then get them from 0 to 730,030.
Or you could download and run a SPV client like Electrum, let it sync for a minute to download the blockchain_headers file which is currently about 55 MB (it also verifies headers) then just read that data file 80 bytes at a time and hash that to get each block hash within seconds.

So basically the time it takes for you to construct such a list should be roughly the same as the time it takes you download 55 MB from the internet.

the tool works in the background, doesn't need any computing power, creates a list for me from 0 - xxxxxx .. so everything is fine... i like to program and that's why i created the tool...

Thanks anyway!! Smiley
legendary
Activity: 3472
Merit: 10611
April 02, 2022, 05:59:51 AM
#11
it takes a while.. with more than 730030 entries XD
Why does it take time?
There are so many ways to get it in a very short time. For example you could find a block explorer with an API that lets you search and fetch hashes with block height then get them from 0 to 730,030.
Or you could download and run a SPV client like Electrum, let it sync for a minute to download the blockchain_headers file which is currently about 55 MB (it also verifies headers) then just read that data file 80 bytes at a time and hash that to get each block hash within seconds.

So basically the time it takes for you to construct such a list should be roughly the same as the time it takes you download 55 MB from the internet.
jr. member
Activity: 49
Merit: 1
April 02, 2022, 05:38:44 AM
#10
Is anyone else interested in a list of block hashes (BTC)?
I can make a list available in the next few days, I wrote a little tool to read in..

Code:
0000000004db6bc621f87b60eaf55d0069e415c431bf2c5a3e566b5e6f318998  CNT: 66154
000000000067fb57b70c3f233170c735db3bf97d8ec3c7938a051e8d577720d6  CNT: 66155
000000000008690ada906f8939342df2969006dcb6be0979ece32d2428a8b24e  CNT: 66156
0000000000513a50edcfbc8fdf297717dfa20a9632d259362b0eab999036fabc  CNT: 66157
0000000003681f0db1699deeaec4715b70dffbf4c47c1ec8aa512d8616562a2f  CNT: 66158
0000000004cb66ebb55280e54a730f02a75fee4cc739735612e4e9a4e84f7f06  CNT: 66159
0000000007f57bf898e28c4bfdaa6faedd77e338e8975ea8ceae8e41df8805f2  CNT: 66160
0000000002da8e2bc6e9471c2ab2a1a765dcebf9cfdd756d9d5c9b768f817857  CNT: 66161
00000000006de5a14a9ba858143849da12e5e1ab5559065ea8de7d70e0f72642  CNT: 66162
0000000002c22ac0e55c0c3ffb1cb7d3a0d1be98729840a04e0f992315ba94dc  CNT: 66163
000000000040457e7d373d0a8936d95a1ea735bbd722744c93e263b33d6cb106  CNT: 66164
0000000009e8f6727fc03bb98180b2b207625f6be0abf034606cdbab234a2f00  CNT: 66165
00000000042fd6149efc75225860dbc3cd423b8c90d6b2be5edb70d1eab23075  CNT: 66166
000000000a289819e3864dcb5ddf2e571434de73bf7cc45a00c119278be7427a  CNT: 66167
0000000003531f64f33542446ed64bf7256703cebd232054ed80a6e64f7951a4  CNT: 66168
0000000005b65d76fa80f53fc50c4dd2ab9ba2b849fda780153318f867d86b38  CNT: 66169
000000000930008a87441840c023ce50e99b79c74f18d120582cefbc47e76143  CNT: 66170
0000000001f8239143e2f8b7e151da5ebdd40931e4eea0290a83f5704676893a  CNT: 66171
0000000006504dbcd0d41503e4e7df03016b05356f84bf00fa5c69728de3a0cd  CNT: 66172
000000000871168470edeb66409d7a4d01dc17f3edcccf9f5c78a6a1d0e7d0d5  CNT: 66173
000000000893b45721f43f5d317656ab6b82ac76ddaf543976648c7714344eea  CNT: 66174
0000000003341f718be514e885e7c0c14c66ccbc67e40e791b3311456a560370  CNT: 66175
000000000007198d2fa784855d2f0d1d0fbfb4d987cdf22c1d5826ac7fc9e5eb  CNT: 66176
...........

it takes a while.. with more than 730030 entries XD
legendary
Activity: 3472
Merit: 10611
April 29, 2017, 11:04:12 PM
#9
Ah i see, so basically they have to broadcast the founded block to other miners through nodes, there is really more into this crypto currency than meets the eye.
Thanks for the reference by the way.

not just other miners, to the whole bitcoin network which means all the bitcoin nodes. each full node has the whole blockchain and can verify everything.
this one is a more detailed answer about blocks that can help you see how things are put together: https://bitcoin.stackexchange.com/a/35700
https://en.bitcoin.it/wiki/Full_node
https://bitcoin.org/en/bitcoin-core/features/validation
https://bitcoin.stackexchange.com/questions/9248/how-do-nodes-verify-bitcoin-transactions
sr. member
Activity: 1400
Merit: 269
April 29, 2017, 10:48:33 PM
#8
Quote
what you quoted is not a code, it is a JSON listing block hashes. and yes these hashes are found when a block is solved.
no you can't just mine fake transactions, because if you do then you have to send that block to others, and others don't just take the block of your hand and say ok, thanks. they will verify it to see if it is legit!
malleability is a different thing.
(this is a simple answer/explanation because i know if i go into details i will embarrass myself since i am not exactly sure about half of it)
you can read these though:
www.coindesk.com/information/how-bitcoin-mining-works/
https://en.bitcoin.it/wiki/Mining
https://en.bitcoin.it/wiki/Proof_of_work

Individual blocks must contain a proof of work to be considered valid. This proof of work is verified by other Bitcoin nodes each time they receive a block. Bitcoin uses the hashcash proof-of-work function.
Ah i see, so basically they have to broadcast the founded block to other miners through nodes, there is really more into this crypto currency than meets the eye.
Thanks for the reference by the way.
legendary
Activity: 3472
Merit: 10611
April 29, 2017, 10:23:08 PM
#7
Noob question is this the hash code found when a block is solve?
What happens if i made an custom block that has fake transactions in it and put this code?
Would it result some malleability?

what you quoted is not a code, it is a JSON listing block hashes. and yes these hashes are found when a block is solved.
no you can't just mine fake transactions, because if you do then you have to send that block to others, and others don't just take the block of your hand and say ok, thanks. they will verify it to see if it is legit!
malleability is a different thing.
(this is a simple answer/explanation because i know if i go into details i will embarrass myself since i am not exactly sure about half of it)
you can read these though:
www.coindesk.com/information/how-bitcoin-mining-works/
https://en.bitcoin.it/wiki/Mining
https://en.bitcoin.it/wiki/Proof_of_work
Quote
Individual blocks must contain a proof of work to be considered valid. This proof of work is verified by other Bitcoin nodes each time they receive a block. Bitcoin uses the hashcash proof-of-work function.
sr. member
Activity: 1400
Merit: 269
April 29, 2017, 10:12:56 PM
#6
Quote
{
    "blocks" : [
    {
        "height" : 463810,
        "hash" : "00000000000000000060762edd15aac13cf9804ab5db39ab7195da2b32fa43d4",
        "time" : 1493337665,
        "main_chain" : true
    },
   
    {
        "height" : 463811,
        "hash" : "000000000000000000aaccaa47fc72fddf447a70630bda4ed581070a09adbee7",
        "time" : 1493338328,
        "main_chain" : true
    },
....snipped...
[/tt]

Noob question is this the hash code found when a block is solve?
What happens if i made an custom block that has fake transactions in it and put this code?
Would it result some malleability?
legendary
Activity: 3472
Merit: 10611
April 29, 2017, 10:07:16 PM
#5
Can someone help with the API?

Quote
Single Block
https://blockchain.info/rawblock/$block_hash
https://blockchain.info/block-index/$block_index?format=json

Can someone give me an example of using that on a hash?
Why does this example not work?
https://blockchain.info/rawblock/$000000000000000002165cb091c1cfe27e413cd4cad7d793cde5d5eaff0abbaa

because you have a $ before your hash Smiley
https://blockchain.info/rawblock/000000000000000002165cb091c1cfe27e413cd4cad7d793cde5d5eaff0abbaa
it is a weird programming language thing, i think it is PHP, $block_hash means block_hash is a variable needs to be replaced.
newbie
Activity: 59
Merit: 0
April 29, 2017, 07:53:21 PM
#4
Can someone help with the API?

Quote
Single Block
https://blockchain.info/rawblock/$block_hash
https://blockchain.info/block-index/$block_index?format=json

Can someone give me an example of using that on a hash?
Why does this example not work?
https://blockchain.info/rawblock/$000000000000000002165cb091c1cfe27e413cd4cad7d793cde5d5eaff0abbaa
newbie
Activity: 59
Merit: 0
April 28, 2017, 11:34:15 PM
#3
Niceeeeeeeeeeeeeeeeeeeee.
legendary
Activity: 3472
Merit: 10611
April 28, 2017, 11:12:38 PM
#2
all those websites that you see have an API page, take a look at their documentation for something called "block hash" and either program something to fetch the data or open the link simply in your browser and use the data manually.

an example from blockchain.info:
Blocks for one day: https://blockchain.info/blocks/$time_in_milliseconds?format=json
https://blockchain.info/blocks/1493420560000?format=json


{
    "blocks" : [
    {
        "height" : 463810,
        "hash" : "00000000000000000060762edd15aac13cf9804ab5db39ab7195da2b32fa43d4",
        "time" : 1493337665,
        "main_chain" : true
    },
   
    {
        "height" : 463811,
        "hash" : "000000000000000000aaccaa47fc72fddf447a70630bda4ed581070a09adbee7",
        "time" : 1493338328,
        "main_chain" : true
    },
....snipped...
newbie
Activity: 59
Merit: 0
April 28, 2017, 06:07:51 PM
#1
Every website only shows me the hashes one-by-one where you click links for Previous/Next Hash.

I don't need every hash, just a decently sized sample set. Does anyone know where I can find a list the block hashes?

example:
Code:
000000000000000000533392a66404f35b1bdabc2419b6d5ba3b06ed99cb92ff
000000000000000000bfbe9f129e27b08979cd2f281a4e46b45f15ab55bc1f4e
000000000000000001f513c78c604725f05c8d0f44618a8494fd25f0a7079fb7
00000000000000000008528fd0b421baf07768e07ce0ffdebc5cb41cf8b836f0
Jump to: