<p>I don't know of a way to do that in Bitcoin Core today. Generally, the goal is for the mempool to be a prediction of what transactions may be mined next; that also implies letting other nodes know about things added to yours.</p>
<p>This functionality does exist internally however, as it's effectively used when loading the <code>mempool.dat</code> file from disk on startup. So it's probably not too hard to add such a feature if you're capable of developing it yourself.</p>

CC BY-SA 4.0
2023-07-02T02:15:29.087Z
2023-07-02T03:04:04.140Z
2023-07-02T03:04:04.140Z
Pieter Wuille
<p>If you use <code>sendrawtransaction</code> RPC call it will be &quot;sent unconditionally to all peers&quot; as the help says.</p>
<p>But if you only want to fill a mempool with transactions programmatically, is there any other way?</p>

<mempool>
Is there any way to send transactions to a bitcoin node via RPC avoiding its broadcasting to the network?
dev7ba
# Is there any way to send transactions to a bitcoin node via RPC avoiding its broadcasting to the network?

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

If you use `sendrawtransaction` RPC call it will be "sent unconditionally to all peers" as the help says.

But if you only want to fill a mempool with transactions programmatically, is there any other way?

**Tags:** mempool


---

## 1 answers

### Answer by username_1 on 2023-07-02. Score: 2 | Accepted answer

I don't know of a way to do that in Bitcoin Core today. Generally, the goal is for the mempool to be a prediction of what transactions may be mined next; that also implies letting other nodes know about things added to yours.

This functionality does exist internally however, as it's effectively used when loading the `mempool.dat` file from disk on startup. So it's probably not too hard to add such a feature if you're capable of developing it yourself.


---

