<blockquote>
  <p>Bitcoin core doesn't support batch requests</p>
</blockquote>

<p>Yes it does. Bitcoin Core uses the follows the <a href="http://www.jsonrpc.org/specification#batch" rel="nofollow noreferrer">JSON-RPC Specification for batching requests</a>. Just use that with a custom client of your choice to interact with the RPC server to get that information. <a href="https://github.com/jgarzik/python-bitcoinrpc" rel="nofollow noreferrer">python-bitcoinrpc</a> makes this easy to do.</p>

CC BY-SA 3.0
2018-04-09T05:36:02.037Z
2018-04-09T05:36:02.037Z
Ava Chow
<p>Are you sure you need Bitcoin Core and RPC calls for this task?</p>

<p>May be you need some tool for sniffing bitcoin network for all transactions. Have a look to this: <a href="https://github.com/sebicas/bitcoin-sniffer" rel="nofollow noreferrer">https://github.com/sebicas/bitcoin-sniffer</a> </p>

<p>This tool is very old. I am not sure that it works today. Take the main idea.</p>

<hr>

<p>Another solution is implementing your own RPC-command. Something like "dumpwholemempool". I think it is not too difficult.</p>

CC BY-SA 3.0
2018-04-09T05:21:06.430Z
2018-04-09T05:26:55.447Z
2018-04-09T05:26:55.447Z
amaclin
<p><code>getrawmempool</code> returns only TXID (verbose off), what I'm doing is calling <code>getrawtransaction</code> for each transaction ID to get a transaction hex.</p>

<p>Bitcoin core doesn't support batch requests and each RPC call takes 0.06 sec, for ~ 5000 transactions, it takes 5 min which is so expensive. 
can I get mempool transactions as hex instantly? </p>

<transactions><mempool>
is it possible to get mempool transactions as hex using bitcoin-core?
Tailer
# is it possible to get mempool transactions as hex using bitcoin-core?

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

`getrawmempool` returns only TXID (verbose off), what I'm doing is calling `getrawtransaction` for each transaction ID to get a transaction hex.

Bitcoin core doesn't support batch requests and each RPC call takes 0.06 sec, for ~ 5000 transactions, it takes 5 min which is so expensive.
can I get mempool transactions as hex instantly?

**Tags:** transactions, mempool


---

## 2 answers

### Answer by username_1 on 2018-04-09. Score: 2 | Accepted answer

> Bitcoin core doesn't support batch requests

Yes it does. Bitcoin Core uses the follows the [JSON-RPC Specification for batching requests](http://www.jsonrpc.org/specification#batch). Just use that with a custom client of your choice to interact with the RPC server to get that information. [python-bitcoinrpc](https://github.com/jgarzik/python-bitcoinrpc) makes this easy to do.


---

### Answer by username_2 on 2018-04-09. Score: 1

Are you sure you need Bitcoin Core and RPC calls for this task?

May be you need some tool for sniffing bitcoin network for all transactions. Have a look to this: <https://github.com/sebicas/bitcoin-sniffer>

This tool is very old. I am not sure that it works today. Take the main idea.

---

Another solution is implementing your own RPC-command. Something like "dumpwholemempool". I think it is not too difficult.


---

