<p>The mempool in Bitcoin represents a collection of unconfirmed transactions, and it doesn't have a concept of &quot;blocks&quot; like the blockchain does. Each transaction in the mempool exists independently and is not grouped into blocks.</p>
<p>To retrieve the transaction IDs (<code>txids</code>) from a specific block in the Bitcoin blockchain, you can use the <code>getblock</code> command in <code>bitcoin-cli</code>. However, the mempool itself doesn't have blocks, so you won't be able to retrieve the transaction IDs in the same way as you would for confirmed blocks.</p>
<p>If you're specifically interested in the transactions displayed in the <strong>Mempool Block</strong> section on mempool.space, those are not actual blocks but rather a visual representation of the mempool transactions arranged in a block-like structure.</p>
<p>To retrieve the transaction IDs in that specific arrangement, you would need to use the API provided by mempool.space itself or explore their public API documentation for more details on how to fetch the mempool block data programmatically.</p>
<p>Here's the <a href="https://mempool.space/" rel="nofollow noreferrer">mempool.space</a> API documentation that you can refer to: <a href="https://mempool.space/docs/api" rel="nofollow noreferrer">https://mempool.space/docs/api</a></p>

CC BY-SA 4.0
2023-06-07T18:22:48.847Z
2023-06-07T18:22:48.847Z
Mmdrza
<p>I want to get the txids of the (mem-pool 0 I mean the mempool block that will next to be confirmed) using bitcoin-cli.</p>
<p>Basicly I want to get the txids in <a href="https://mempool.space/tr/mempool-block/0" rel="nofollow noreferrer">https://mempool.space/tr/mempool-block/0</a> this memblock. I am looking for this for days If you help that will be much appreciated.</p>

CC BY-SA 4.0
2023-06-07T16:40:33.120Z
Wouldn't that be https://developer.bitcoin.org/reference/rpc/getblocktemplate.html ? Though the mempools of nodes are not synchronised.
RedGrittyBrick
CC BY-SA 4.0
2023-06-08T17:29:19.227Z
Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
Community
<bitcoin-core><bitcoin-cli><mempool>
How can I get the txids of memblock that will be confirmed in the next blcok using bitcoin-cli?
Gencehan ARPAÇAY
# How can I get the txids of memblock that will be confirmed in the next blcok using bitcoin-cli?

(Asked by: username_0 on 2023-06-07)

I want to get the txids of the (mem-pool 0 I mean the mempool block that will next to be confirmed) using bitcoin-cli.

Basicly I want to get the txids in <https://mempool.space/tr/mempool-block/0> this memblock. I am looking for this for days If you help that will be much appreciated.

**Tags:** bitcoin-core, bitcoin-cli, mempool

> **Comments:**
> **username_1**: Wouldn't that be https://developer.bitcoin.org/reference/rpc/getblocktemplate.html ? Though the mempools of nodes are not synchronised.  
> **username_2**: Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.  

---

## 1 answers

### Answer by username_3 on 2023-06-07. Score: -2

The mempool in Bitcoin represents a collection of unconfirmed transactions, and it doesn't have a concept of "blocks" like the blockchain does. Each transaction in the mempool exists independently and is not grouped into blocks.

To retrieve the transaction IDs (`txids`) from a specific block in the Bitcoin blockchain, you can use the `getblock` command in `bitcoin-cli`. However, the mempool itself doesn't have blocks, so you won't be able to retrieve the transaction IDs in the same way as you would for confirmed blocks.

If you're specifically interested in the transactions displayed in the **Mempool Block** section on mempool.space, those are not actual blocks but rather a visual representation of the mempool transactions arranged in a block-like structure.

To retrieve the transaction IDs in that specific arrangement, you would need to use the API provided by mempool.space itself or explore their public API documentation for more details on how to fetch the mempool block data programmatically.

Here's the [mempool.space](https://mempool.space/) API documentation that you can refer to: <https://mempool.space/docs/api>


---

