getrawmempool
getrawmempool(true)
Returns all transaction ids in memory pool as a json array of string transaction ids. If we use verbose as 'true' it returns more than just transaction ids and one of the result is 'depends'.
"depends" : [(json array) unconfirmed transactions used as inputs for this transaction "hex",(string) parent transaction id]
Example:
"2004b140d4b4eb1048cdb7def895a211c279711e47cc402c64f91f1c0d20f0dc": {
"fees": {
"base": 0.00000446,
"modified": 0.00000446,
"ancestor": 0.00000892,
"descendant": 0.00000446
},
"vsize": 142,
"weight": 565,
"fee": 0.00000446,
"modifiedfee": 0.00000446,
"time": 1598036451,
"height": 1807966,
"descendantcount": 1,
"descendantsize": 142,
"descendantfees": 446,
"ancestorcount": 2,
"ancestorsize": 284,
"ancestorfees": 892,
"wtxid": "4e680766ede2535b53e868c95d1483a443f9ab7f8b9d9ef4fcb355a768faba16",
"depends": [
"8b72e7045466d79a60ea13c9700b268ae0d695a7666008fc0c454775d7d95561"
],
"spentby": [
],
"bip125-replaceable": false
}
}
Child transaction:

Parent transaction which had Unconfirmed input in above case:

Both transactions got confirmed in block 1807995.