getmempoolancestors
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Returns all in-mempool ancestor transactions for a given transaction ID. An ancestor is a transaction whose outputs are used as inputs in another transaction. You can get a summary or detailed object output.
Body
Returns all in-mempool ancestor transactions for a given transaction ID. An ancestor is a transaction whose outputs are used as inputs in another transaction. You can get a summary or detailed object output.
Request payload containing the documented method parameters and client request identifier.
jsonrpcstringrequiredJSON-RPC protocol version.
idstringrequiredClient-provided request identifier echoed in the response.
methodstringgetmempoolancestorsrequiredJSON-RPC method name.
paramsArray<string | boolean>requiredParameters:
txid(string, required) — Transaction ID to query.verbose(boolean, optional) — Whether to return a JSON object or just an array of txids. Default is false.
Response
Ancestor transaction(s) retrieved successfully
Unauthorized: API key is present but rejected by the NOWNodes gateway.
Method Not Allowed. Returned by the NOWNodes gateway for malformed or unsupported gateway-level requests.
Missing API key. The NOWNodes gateway returns plain text for this error.
Internal Server Error