<p>You can use the command <code>bitcoin-cli getrawmempool</code> to get a JSON array of all transactions that are stored locally in your mempool.</p>

<p>Since <a href="https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-0.9.0.md#090-release-notes" rel="nofollow noreferrer">v0.9 release</a> you can also pass a verbose boolean to get more info related to the transactions in your mempool like size, fees, or ancestor/dependent transaction within the mempool. </p>

<p>Do note that there is no one global copy of the mempool. The mempool is node dependent and stores valid transactions that your node has seen but has not yet been confirmed in the block. Since you have just downloaded and spun up your Bitcoin Core node, your mempool information might be limited when you compare it to nodes that have been running for days.</p>

CC BY-SA 4.0
2022-06-18T17:06:42.010Z
How to get asm instruction for a transaction in mempool? Because getrawmempool doesn't include it, even with verbose.
Vincent Alex
CC BY-SA 4.0
2019-12-03T06:58:30.263Z
2019-12-03T07:16:35.620Z
2019-12-03T07:16:35.620Z
Ugam Kamat
<p>I’m trying to get all transaction ids in the memory pool as json array. I just finish downloading bitcoin core and do now know where to begin. Any help would be appreciated!!</p>

<bitcoin-core><json-rpc><raw-transaction><getmemorypool><gettransaction>
How to implement getrawmempool?
Xi Zheng
# How to implement getrawmempool?

(Asked by: username_0 on 2019-12-03)

I’m trying to get all transaction ids in the memory pool as json array. I just finish downloading bitcoin core and do now know where to begin. Any help would be appreciated!!

**Tags:** bitcoin-core, json-rpc, raw-transaction, getmemorypool, gettransaction


---

## 1 answers

### Answer by username_1 on 2019-12-03. Score: 1

You can use the command `bitcoin-cli getrawmempool` to get a JSON array of all transactions that are stored locally in your mempool.

Since [v0.9 release](https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-0.9.0.md#090-release-notes) you can also pass a verbose boolean to get more info related to the transactions in your mempool like size, fees, or ancestor/dependent transaction within the mempool.

Do note that there is no one global copy of the mempool. The mempool is node dependent and stores valid transactions that your node has seen but has not yet been confirmed in the block. Since you have just downloaded and spun up your Bitcoin Core node, your mempool information might be limited when you compare it to nodes that have been running for days.

> **Comments:**
> **username_2**: How to get asm instruction for a transaction in mempool? Because getrawmempool doesn't include it, even with verbose.  

---

