Can I get all block header data like the SPV node?


It hasn't been long since I studied Blockchain.

I only need header data, not all block data, for study purposes.

As far as I know, the SPV node stores only the block's header information.

Can i get all block header data in python?

seonguk park

Posted 2020-06-19T10:39:20.750

Reputation: 21

You can run a node ( and use the getblockheader RPC command.

– darosior – 2020-06-19T10:47:38.013

Can't I download it with python code? – seonguk park – 2020-06-19T10:52:43.453

You can use a wrapper against it RPC API, such as Note that you'll have to wait for bitcoind to sync (can take anywhere from some hours to a week depending on your hardware).

– darosior – 2020-06-19T13:01:53.433

No answers