{"uid":"cap_bruYxOOvha_w25LfxYocw","slug":"chainquery-getmempoolancestors-e64f21fb","name":"chainquery getmempoolancestors","description":"chainquery Bitcoin RPC: pay-per-call Bitcoin Core over x402, no API key. In-mempool ancestors of a transaction (txids or full entries) from chainquery's independent full node. Bitcoin Core getmempoolancestors.","url":"https://x402.chainquery.com/v1/rpc/getmempoolancestors","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"params":{"type":"string","description":"optional: JSON-encoded array of positional RPC params"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"result":{"description":"getmempoolancestors result"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ocdhlc--IN7QRR7_7j9bz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns in-mempool ancestor transactions (txids or full entries) for a given unconfirmed Bitcoin transaction via Bitcoin Core RPC","exampleAgentPrompt":"Can you pull all in-mempool ancestors for Bitcoin transaction f4184fc596403b9d638783cf57adfe4c75c605f6356fbc91338530e9831e9e16 — I want the full mempool entries, not just txids.","exampleUseCases":[{"title":"Analyze fee rate for RBF replacement","prompt":"I need to check the ancestor transactions in the mempool for this unconfirmed tx before I decide whether to replace it — can you pull all the parent transactions and their fee rates so I can calculate what I need to pay?"},{"title":"Trace stuck transaction dependencies","prompt":"This transaction has been pending for hours and I'm not sure why. Can you show me all the in-mempool ancestors for this txid and tell me if any of them are holding it up?"},{"title":"Validate mempool chain before broadcasting","prompt":"Before I broadcast my new transaction, I need to verify that all its parent transactions are still sitting in the mempool — can you pull the full ancestor chain and confirm they're there?"}],"resultDescription":"Returns a JSON object with the Bitcoin Core getmempoolancestors result: either an array of ancestor txids (verbose=false) or a map of txid to full mempool entry objects including fees, size, weight, descendant/ancestor counts, and dependency info (verbose=true).","failureModes":["Transaction not in mempool (txid confirmed or never seen) — returns RPC error","Invalid or malformed txid — returns RPC error","Payment not included or insufficient — HTTP 402 response requiring x402 payment","Params JSON malformed — query parameter parse error","Node temporarily unavailable — HTTP 5xx error"],"whenToPreferThis":"Use this endpoint when you need to trace the ancestor dependency graph of an unconfirmed Bitcoin transaction in the mempool, especially for fee estimation, RBF analysis, or understanding transaction chains. Prefer over block-explorer APIs when you need raw Bitcoin Core RPC semantics from an independent full node without requiring an API key registration.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:33:20.783Z","isFirstParty":false}