<p>That's because you're pasting a <strong><em>block hash</em></strong> into a field that expects a <strong><em>transaction hash</em></strong>. </p>

<p>It looks like <code>btc.com</code> doesn't support listing all transactions for a given block, it will only give a tx count: <a href="https://btc.com/api-doc#Block" rel="nofollow noreferrer">https://btc.com/api-doc#Block</a>.</p>

<p>Blockchain.info does, however at the api endpoint:</p>

<p><code>https://blockchain.info/rawblock/$block_hash</code></p>

<p>So, you can copy the hash of any block from the list of the first link in your answer to the <code>$block_hash</code> field in <code>https://blockchain.info/rawblock/$block_hash</code>.</p>

CC BY-SA 4.0
2018-08-15T17:55:19.607Z
2018-08-16T01:47:27.690Z
2018-08-16T01:47:27.690Z
JBaczuk
<p>I use <a href="https://chain.api.btc.com/v3/block/date/20151215" rel="nofollow noreferrer">https://chain.api.btc.com/v3/block/date/20151215</a> to achieve list of blocks and also use <a href="https://chain.api.btc.com/v3/tx/0eab89a271380b09987bcee5258fca91f28df4dadcedf892658b9bc261050d96?verbose=3" rel="nofollow noreferrer">https://chain.api.btc.com/v3/tx/0eab89a271380b09987bcee5258fca91f28df4dadcedf892658b9bc261050d96?verbose=3</a> to get transaction info for a single transaction. Now I have a question. To access transaction info of all blocks what should I do?
when I copy the hash of any block from the list of the first link in the second link, it shows error.</p>

<transactions><blockchain><historical-trade-data>
how to achieve transaction info of all the blocks
Mahsa Mirzaee
# how to achieve transaction info of all the blocks

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

I use <https://chain.api.btc.com/v3/block/date/20151215> to achieve list of blocks and also use <https://chain.api.btc.com/v3/tx/0eab89a271380b09987bcee5258fca91f28df4dadcedf892658b9bc261050d96?verbose=3> to get transaction info for a single transaction. Now I have a question. To access transaction info of all blocks what should I do?
when I copy the hash of any block from the list of the first link in the second link, it shows error.

**Tags:** transactions, blockchain, historical-trade-data


---

## 1 answers

### Answer by username_1 on 2018-08-15. Score: 1

That's because you're pasting a ***block hash*** into a field that expects a ***transaction hash***.

It looks like `btc.com` doesn't support listing all transactions for a given block, it will only give a tx count: <https://btc.com/api-doc#Block>.

Blockchain.info does, however at the api endpoint:

`https://blockchain.info/rawblock/$block_hash`

So, you can copy the hash of any block from the list of the first link in your answer to the `$block_hash` field in `https://blockchain.info/rawblock/$block_hash`.


---

