0
  • 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?

1 Answer 1

1

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.

4
  • 1
    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
    Commented Dec 27, 2023 at 18:59
  • what is this for bitcoincore.org/en/doc/26.0.0/rpc/blockchain/importmempool ?
    – WhoIsNinja
    Commented Jan 8 at 2:13
  • 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.
    – Ava Chow
    Commented Jan 8 at 2:56
  • gotcha, ya saw it does XOR with existing mempool, good to know it does validate added txs
    – WhoIsNinja
    Commented Jan 8 at 3:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.