<p>Updated for October 2021: blockchain.info (now blockchain.com) doesn't give raw data back just from appending <code>?format=hex</code> to its usual explorer anymore. Rather, you have to use their API, which they document here: <a href="https://www.blockchain.com/api/blockchain_api" rel="nofollow noreferrer">https://www.blockchain.com/api/blockchain_api</a></p>
<p>I couldn't get this to work in my browser, but at the terminal this worked for me:</p>
<pre><code>% wget -O block154595.blk &quot;https://blockchain.info/rawblock/0000000000000bae09a7a393a8acded75aa67e46cb81f7acaa5ad94f9eacd103?format=hex&quot;
</code></pre>

CC BY-SA 4.0
2021-10-26T17:40:29.510Z
2021-10-26T17:40:29.510Z
owensmartin
<p>You can use <a href="https://github.com/bitpay/insight-api" rel="nofollow noreferrer">insight</a> by bitpay:</p>

<pre><code>/insight-api/rawblock/[:blockHash]
/insight-api/rawblock/[:blockHeight]
/insight-api/rawtx/[:rawid]
</code></pre>

CC BY-SA 3.0
2018-02-15T05:42:47.967Z
This is also a great option, only accepting the other answer because it's more in line with what I was looking for, AKA online block explorer with that functionality.
Hendeca
CC BY-SA 3.0
2018-02-15T01:03:20.640Z
2018-02-15T01:03:20.640Z
skang404
<p>You can get this info from blockchain.info, by simply adding <code>?format=hex</code>to the end of the relevant URL. </p>

<p>For example, here is a recent block (height 509,244):</p>

<p><a href="https://blockchain.info/block/0000000000000000000635bda771916ca727db53fea5441508f7161386e066be" rel="noreferrer">https://blockchain.info/block/0000000000000000000635bda771916ca727db53fea5441508f7161386e066be</a></p>

<p>And here is the raw data for that block, in hex:</p>

<p><a href="https://blockchain.info/block/0000000000000000000635bda771916ca727db53fea5441508f7161386e066be?format=hex" rel="noreferrer">https://blockchain.info/block/0000000000000000000635bda771916ca727db53fea5441508f7161386e066be?format=hex</a></p>

<p>(Note that you will need to parse the block header out of this data, as that URL will dump the raw data for the entire block)</p>

<p>Similarly, here is a transaction from that block:</p>

<p><a href="https://blockchain.info/tx/74d350ca44c324f4643274b98801f9a023b2b8b72e8e895879fd9070a68f7f1f" rel="noreferrer">https://blockchain.info/tx/74d350ca44c324f4643274b98801f9a023b2b8b72e8e895879fd9070a68f7f1f</a></p>

<p>And here is the raw data from that transaction, in hex</p>

<p><a href="https://blockchain.info/tx/74d350ca44c324f4643274b98801f9a023b2b8b72e8e895879fd9070a68f7f1f?format=hex" rel="noreferrer">https://blockchain.info/tx/74d350ca44c324f4643274b98801f9a023b2b8b72e8e895879fd9070a68f7f1f?format=hex</a></p>

CC BY-SA 3.0
2018-02-15T05:42:13.797Z
Thank you, didn't know about this! Just what I was looking for.
Hendeca
CC BY-SA 4.0
2021-04-26T12:15:02.137Z
Do you happen to know the URL for testnet?
igobivo
CC BY-SA 3.0
2018-02-15T01:10:33.773Z
2018-02-15T01:10:33.773Z
chytrik
<p>I've looked at some of the more popular blockchain explorers, but none of them seem to provide the feature I'm looking for. I'd like to find a blockchain explorer that allows you to see raw Tx data and raw block headers. The explorer's I've seen parse the raw data and present it in a more human readable format. Are there any that provide the raw data?</p>

<p>Thank you!</p>

<transactions><blockchain><raw-data><block-header>
Are there any blockchain explorers that provide raw Tx data and block headers?
Hendeca
# Are there any blockchain explorers that provide raw Tx data and block headers?

(Asked by: username_0 on 2018-02-15)

I've looked at some of the more popular blockchain explorers, but none of them seem to provide the feature I'm looking for. I'd like to find a blockchain explorer that allows you to see raw Tx data and raw block headers. The explorer's I've seen parse the raw data and present it in a more human readable format. Are there any that provide the raw data?

Thank you!

**Tags:** transactions, blockchain, raw-data, block-header


---

## 3 answers

### Answer by username_3 on 2018-02-15. Score: 5 | Accepted answer

You can get this info from blockchain.info, by simply adding `?format=hex`to the end of the relevant URL.

For example, here is a recent block (height 509,244):

<https://blockchain.info/block/0000000000000000000635bda771916ca727db53fea5441508f7161386e066be>

And here is the raw data for that block, in hex:

<https://blockchain.info/block/0000000000000000000635bda771916ca727db53fea5441508f7161386e066be?format=hex>

(Note that you will need to parse the block header out of this data, as that URL will dump the raw data for the entire block)

Similarly, here is a transaction from that block:

<https://blockchain.info/tx/74d350ca44c324f4643274b98801f9a023b2b8b72e8e895879fd9070a68f7f1f>

And here is the raw data from that transaction, in hex

<https://blockchain.info/tx/74d350ca44c324f4643274b98801f9a023b2b8b72e8e895879fd9070a68f7f1f?format=hex>

> **Comments:**
> **username_0**: Thank you, didn't know about this! Just what I was looking for.  
> **username_4**: Do you happen to know the URL for testnet?  

---

### Answer by username_1 on 2021-10-26. Score: 1

Updated for October 2021: blockchain.info (now blockchain.com) doesn't give raw data back just from appending ?format=hex to its usual explorer anymore. Rather, you have to use their API, which they document here: https://www.blockchain.com/api/blockchain_api
I couldn't get this to work in my browser, but at the terminal this worked for me:
% wget -O block154595.blk "https://blockchain.info/rawblock/0000000000000bae09a7a393a8acded75aa67e46cb81f7acaa5ad94f9eacd103?format=hex"


---

### Answer by username_2 on 2018-02-15. Score: 1

You can use insight by bitpay:
/insight-api/rawblock/[:blockHash]
/insight-api/rawblock/[:blockHeight]
/insight-api/rawtx/[:rawid]

> **Comments:**
> **username_0**: This is also a great option, only accepting the other answer because it's more in line with what I was looking for, AKA online block explorer with that functionality.  

---

