banner

I am working with Bitcoin Core version 25.0 and am facing a question about handling mempool transactions evicted for non-block inclusion reasons. My query pertains to any transaction that has existed in my node’s mempool at some point, not just those constructed by me.

Context:

In instances where a transaction is evicted from the mempool for reasons other than block inclusion, I am interested in understanding the duration for which it remains accessible for querying through an RPC command.

Specific Questions:

Duration of Accessibility: How long does a transaction, evicted for non-block inclusion reasons, remain queryable in Bitcoin Core version >=25.0?

RPC Methods: Is there a method or RPC command to look up details of these non-block inclusion evicted mempool transactions by their transaction ID?

What I’ve Tried:

I have used the getrawtransaction command with -txindex enabled. While it successfully retrieves transactions in the mempool or any block, it seems to fail for transactions evicted for non-block inclusion reasons, resulting in an error.

500 Internal Server Error (Code: -5, Message: No such mempool or blockchain transaction. Use gettransaction for wallet transactions).

banner

Converter

Source: CurrencyRate
Top Selling Multipurpose WP Theme

Newsletter

Subscribe my Newsletter for new blog posts, tips & new photos. Let's stay updated!

banner

Leave a Comment

Layer 1
Your Crypto & Blockchain Beacon

CryptoInsightful

Welcome to CryptoInsightful.com, your trusted source for in-depth analysis, news, and insights into the world of cryptocurrencies, blockchain technology, NFTs (Non-Fungible Tokens), and cybersecurity. Our mission is to empower you with the knowledge and understanding you need to navigate the rapidly evolving landscape of digital assets and emerging technologies.