Search content
Sort by

Showing 3 of 3 results by kamir.tamaatiii
Post
Topic
Board Development & Technical Discussion
Re: How do you download a specific block number ?
by
kamir.tamaatiii
on 07/01/2015, 17:15:56 UTC
Without a local copy your only option is to use getdata since I doubt that an online block explorer would let you download 10000 blocks.


How do you access the raw protocol? I'm not familiar with this.
Post
Topic
Board Development & Technical Discussion
Re: How do you download a specific block number ?
by
kamir.tamaatiii
on 07/01/2015, 12:07:17 UTC
Yes, by their hashes using getdata in the raw protocol or getblock in the client.


I tried getblock "hash", but it seems like I can only get block that I already have in my disk, I want to get this function working without downloading the whole blockchain. Is there any way to connect to some kind of server and use this method on this server ?

TL;DR, I want to compile my own bootstrap.dat file that contain only blocks from a specific block number for example only blocks between 130000 and 140000, all this without having the blockchain in my hard drive.
Post
Topic
Board Development & Technical Discussion
Merits 2 from 1 user
Topic OP
How do you download a specific block number ?
by
kamir.tamaatiii
on 06/01/2015, 23:52:06 UTC
⭐ Merited by ABCbits (2)
I want to know if there is a way to download specific block numbers without download the whole blockchain.

Edit: I know that I can use bitcoin client with getblock "hash" function, but this require that the block with that "hash" to be in the hard drive, which I don't. So I'm looking for a similar function of getblock "hash" which doesn't require block to be in the hard drive, but instead it download it from some server or other peers.