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

Plain text for the Bitcoin symbol

5  Asked on February 18, 2021 by frdsbend


Candle decimal places

1  Asked on February 15, 2021 by matheus


How to fix Bitcoin QT loading issue

1  Asked on February 11, 2021 by t-erry


What is a ‘Satoshi’?

5  Asked on January 16, 2021 by nmat


Old wallet from old phone

1  Asked on January 8, 2021 by r4c00n


Ask a Question

Get help from others!

© 2022 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir