<p>It hasn't been long since I studied Blockchain.</p>
<p>I only need header data, not all block data, for study purposes.</p>
<p>As far as I know, the SPV node stores only the block's header information.</p>
<p>Can i get all block header data in python?</p>

CC BY-SA 4.0
2020-06-19T10:47:38.013Z
You can run a node (https://bitcoincore.org/) and use the `getblockheader` RPC command.
Antoine Poinsot
CC BY-SA 4.0
2020-06-19T10:52:43.453Z
Can't I download it with python code?
seonguk park
CC BY-SA 4.0
2020-06-19T13:01:53.433Z
You can use a wrapper against it RPC API, such as https://github.com/petertodd/python-bitcoinlib. Note that you'll have to wait for `bitcoind` to sync (can take anywhere from some hours to a week depending on your hardware).
Antoine Poinsot
<blockchain><hash><python><spv><block-header>
Can I get all block header data like the SPV node?
seonguk park
# Can I get all block header data like the SPV node?

(Asked by: username_0 on 2020-06-19)

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?

**Tags:** blockchain, hash, python, spv, block-header

> **Comments:**
> **username_1**: You can run a node (https://bitcoincore.org/) and use the `getblockheader` RPC command.  
> **username_0**: Can't I download it with python code?  
> **username_1**: You can use a wrapper against it RPC API, such as https://github.com/petertodd/python-bitcoinlib. Note that you'll have to wait for `bitcoind` to sync (can take anywhere from some hours to a week depending on your hardware).  

---

## 0 answers

