bitcoind.app
CommandsGuidesContact ↗
Home/Blockchain/getmempoolancestors
Blockchain

getmempoolancestors

If txid is in the mempool, returns all in-mempool ancestors.

Parameters

txidstringREQUIRED
The transaction id
verbosebooleanoptional
True for detailed info. Default: false

Returns

array|objectTransaction IDs or detailed mempool entries

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"getmempoolancestors","params":["txid_here"]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

[
  "b104ecf24be...",
  "a1075db55d4..."
]
← Previous
getdifficulty
Next →
getmempooldescendants

More Blockchain Commands

getbestblockhashgetblockgetblockchaininfogetblockcountgetblockfiltergetblockhash

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗