getmempoolancestors

Input(s) 2

This command returns all ancestors of a given transaction in the mempool, either as a list of transaction IDs or as detailed information about each ancestor if verbose mode is chosen.

How is this used?

You're assembling a complex puzzle that requires putting together several groups of pieces before you can connect them into the final picture. Similarly, in the Bitcoin network, a transaction may depend on other transactions that must be confirmed before it can be processed. The 'getmempoolancestors' command is like getting a list of all the smaller groups of puzzle pieces (ancestor transactions) you need to assemble first to understand the whole picture (the transaction chain).

Request

method

getmempoolancestors

txid

Required

verbose

Optional

Inputs(2)

one required input remaining...

txid (required) - The transaction id, and it must be in mempool
verbose default=false. It returns detailed information about each transaction

Result