getmempoolancestors

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

This method will use 10 Compute Units.


Reference: Here

Parameters

txid - string, required

The transaction id (must be in mempool)

verbose - boolean, optional, default=false

True for a json object, false for array of transaction ids

Returns (for verbose = false)

[           (json array)
  "hex",    (string) The transaction id of an in-mempool ancestor transaction
  ...
]

Returns (for verbose = true)

Last updated

Was this helpful?