<p>Yes. Use the <code>getblockhash</code> and <code>getblock</code> commands. You would do:</p>

<pre><code>getblockhash 517716
</code></pre>

<p>and this will return you the block hash for block 517716. Then you can do</p>

<pre><code>getblock &lt;hash&gt; 2
</code></pre>

<p>where <code>&lt;hash&gt;</code> is the hash from <code>getblockhash</code>. This will give you the full block details with the full details of all of the transactions in the block. If you just want txids, change the <code>2</code> to a <code>1</code>.</p>

<hr>

<p>Note that this only works if you are not in pruned mode. If you are pruning, there is no guarantee that you still have the block.</p>

CC BY-SA 3.0
2018-04-11T16:31:14.487Z
2018-04-11T16:31:14.487Z
Ava Chow
<p>I'm trying to fetch specific block transactions, is it possible to do so using bitcoin-core?</p>

<p>for example block number: <code>517716</code> can I get hex transactions or even just the txid's of that block? </p>

CC BY-SA 3.0
2018-04-11T15:20:20.077Z
I don't understand the question.  Are you saying you want to retrieve all the transactions that were mined in a specific block?  In what format?
Nate Eldredge
<transactions><block>
is it possible to retrieve some block transactions using bitcoin-core?
Tailer
# is it possible to retrieve some block transactions using bitcoin-core?

(Asked by: username_0 on 2018-04-11)

I'm trying to fetch specific block transactions, is it possible to do so using bitcoin-core?

for example block number: `517716` can I get hex transactions or even just the txid's of that block?

**Tags:** transactions, block

> **Comments:**
> **username_1**: I don't understand the question.  Are you saying you want to retrieve all the transactions that were mined in a specific block?  In what format?  

---

## 1 answers

### Answer by username_2 on 2018-04-11. Score: 2 | Accepted answer

Yes. Use the `getblockhash` and `getblock` commands. You would do:

```
getblockhash 517716

```

and this will return you the block hash for block 517716. Then you can do

```
getblock <hash> 2

```

where `<hash>` is the hash from `getblockhash`. This will give you the full block details with the full details of all of the transactions in the block. If you just want txids, change the `2` to a `1`.

---

Note that this only works if you are not in pruned mode. If you are pruning, there is no guarantee that you still have the block.


---

