AnswerBun.com

How to know Block height when a transaction entered Mempool?

Bitcoin Asked on November 13, 2021

I’m hosting a Listening Bitcoin Node in Capital of Pakistan. I want to know the Block height when Transaction entered the mempool. Right now I’m using the time from the Json format of the Transaction and Checking the Block height against it. Do you guys think that this method is reliable or I fear that transactions in my mempool have more latency than usual node in Europe. Should use an Api to find the Entry Block Height of the transaction?

Please also suggest an api also?

One Answer

Bitcoin Core has a getmempoolentry command. This takes a txid and returns information about that transaction's mempool status. This includes height which is the block height when transaction entered pool.

Answered by Andrew Chow on November 13, 2021

Add your own answers!

Related Questions

Bitcoind daemon: error connecting to the server?

1  Asked on October 24, 2021 by komputer

       

Cannot open dump wallet file (code-8)

1  Asked on October 24, 2021 by requim

       

Opening a wallet with bitcoind

2  Asked on October 24, 2021 by steve-merriman

   

How can I download a single Bitcoin block?

1  Asked on October 24, 2021 by seonguk-park

     

What are “leaf versions” in Taproot?

2  Asked on October 24, 2021 by bertram-lund

   

Cannot start C-lightning after reboot

1  Asked on October 24, 2021 by jodobear

     

ElectrumX server as a Tor hidden service

1  Asked on October 24, 2021 by taghi

     

Ask a Question

Get help from others!

© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP