I’m working with Bitcoin Core model 25.0 and am going through a query about dealing with mempool transactions evicted for non-block inclusion causes. My question pertains to any transaction that has existed in my node’s mempool sooner or later, not simply these constructed by me.
Context:
In cases the place a transaction is evicted from the mempool for causes aside from block inclusion, I’m serious about understanding the period for which it stays accessible for querying via an RPC command.
Particular Questions:
Period of Accessibility: How lengthy does a transaction, evicted for non-block inclusion causes, stay queryable in Bitcoin Core model >=25.0?
RPC Strategies: Is there a technique or RPC command to search for particulars of those non-block inclusion evicted mempool transactions by their transaction ID?
What I’ve Tried:
I’ve used the getrawtransaction
command with -txindex
enabled. Whereas it efficiently retrieves transactions within the mempool or any block, it appears to fail for transactions evicted for non-block inclusion causes, leading to an error.
500 Inside Server Error (Code: -5, Message: No such mempool or blockchain transaction. Use gettransaction for pockets transactions).