<blockquote>
<p>Is it possible to detect stamps/inscriptions/brc-20 txs from the rpc method <code>getrawmempool</code> with verbose true?</p>
</blockquote>
<p>Yes. You could write a tool which periodically dumps the mempool and inspects the transactions to try to determine whether they match particular patterns.</p>
<blockquote>
<p>Is it possible to develop a small external utility that could access and modify the mempool, if not via rpc then some other possible way?</p>
</blockquote>
<p>No. Bitcoin Core does not have RPCs to directly manipulate the mempool, nor are there other ways to modify the mempool. There is no way to forcefully drop something from the mempool nor force something into the mempool.</p>

CC BY-SA 4.0
2023-12-27T18:59:57.063Z
thank you, ya figured can get witness data from getrawmempool verbose true option and then detect. 
Bummer on external util. Hopefully consensus is separated out as a binary and people have better clients in the future.
WhoIsNinja
CC BY-SA 4.0
2024-01-08T02:13:59.393Z
what is this for https://bitcoincore.org/en/doc/26.0.0/rpc/blockchain/importmempool/ ?
WhoIsNinja
CC BY-SA 4.0
2024-01-08T02:56:35.290Z
Bitcoin Core can store a copy of its mempool to disk, primarily for the purpose of preserving the mempool between short shutdowns. `importmempool` allows such a copy to be loaded while Bitcoin Core is running. However, it does not blindly add everything to the mempool, nor can it be used to delete things. All transactions in the copy are validated as if they had just been received over the network. If the current mempool of the node contains transactions not in the copy, those transaction still remain in the mempool.
Ava Chow
CC BY-SA 4.0
2024-01-08T03:55:41.100Z
gotcha, ya saw it does XOR with existing mempool, good to know it does validate added txs
WhoIsNinja
CC BY-SA 4.0
2023-12-26T16:12:54.310Z
2023-12-26T16:12:54.310Z
Ava Chow
<ul>
<li><p>Is it possible to detect stamps/inscriptions/brc-20 txs from the rpc method <code>getrawmempool</code> with verbose true?</p>
</li>
<li><p>Is it possible to develop a small external utility that could access and modify the mempool, if not via rpc then some other possible way?</p>
</li>
</ul>

<json-rpc><mempool><spam>
Modifying mempool with an external program
WhoIsNinja
# Modifying mempool with an external program

(Asked by: username_0 on 2023-12-25)

* Is it possible to detect stamps/inscriptions/brc-20 txs from the rpc method `getrawmempool` with verbose true?
* Is it possible to develop a small external utility that could access and modify the mempool, if not via rpc then some other possible way?

**Tags:** json-rpc, mempool, spam


---

## 1 answers

### Answer by username_1 on 2023-12-26. Score: 1 | Accepted answer

> Is it possible to detect stamps/inscriptions/brc-20 txs from the rpc method `getrawmempool` with verbose true?

Yes. You could write a tool which periodically dumps the mempool and inspects the transactions to try to determine whether they match particular patterns.

> Is it possible to develop a small external utility that could access and modify the mempool, if not via rpc then some other possible way?

No. Bitcoin Core does not have RPCs to directly manipulate the mempool, nor are there other ways to modify the mempool. There is no way to forcefully drop something from the mempool nor force something into the mempool.

> **Comments:**
> **username_0**: thank you, ya figured can get witness data from getrawmempool verbose true option and then detect.  Bummer on external util. Hopefully consensus is separated out as a binary and people have better clients in the future.  
> **username_0**: what is this for https://bitcoincore.org/en/doc/26.0.0/rpc/blockchain/importmempool/ ?  
> **username_1**: Bitcoin Core can store a copy of its mempool to disk, primarily for the purpose of preserving the mempool between short shutdowns. `importmempool` allows such a copy to be loaded while Bitcoin Core is running. However, it does not blindly add everything to the mempool, nor can it be used to delete things. All transactions in the copy are validated as if they had just been received over the network. If the current mempool of the node contains transactions not in the copy, those transaction still remain in the mempool.  
> **username_0**: gotcha, ya saw it does XOR with existing mempool, good to know it does validate added txs  

---

