getmempoolancestors

The getmempoolancestors is a Litecoin RPC method that returns information about the ancestors of a transaction in the memory pool. This method can be used to analyze the dependency relationships between unconfirmed transactions and to investigate potential transaction issues, such as chains of unconfirmed transactions or transactions that depend on others with a low fee.


Parameters

parameter
description
txid
The transaction ID (string, required) of the transaction for which you want to retrieve the ancestors.
verbose
Whether to return a JSON object with detailed information about the ancestors (bool, optional, default = false). If false, only the transaction IDs of the ancestors are returned.
Return Object

The return object depends on the verbose parameter:

If verbose is false, the return object is an array of strings, each representing the transaction ID of an ancestor.

If verbose is true, the return object is a JSON object, where the keys are the transaction IDs of the ancestors, and the values are JSON objects containing detailed information about the ancestors.

Request Example
Request

Share on
Share on FacebookShare on XShare on LinkedIn
Did you find this page useful?