> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# getmempooldescendants | Bitcoin

> The getmempooldescendants method retrieves all in-mempool descendants for a specific transaction in the mempool. Bitcoin via Chainstack.

The `getmempooldescendants` method retrieves all in-mempool descendants for a specific transaction in the mempool.

<Note>
  **Get an unconfirmed transaction hash**

  For the example to work, get an unconfirmed transaction hash from [mempool.space](https://mempool.space/).
</Note>

<Note>
  **Empty result**

  If there is no pending transaction in the mempool that is an ancestor to the one you are querying, you will get an empty response.
</Note>

<Check>
  **Get your own node endpoint today**

  [Start for free](https://console.chainstack.com/) and get your app to production levels immediately. No credit card required.

  You can sign up with your GitHub, X, Google, or Microsoft account.
</Check>

## Parameters

* `txid` (required) — the transaction ID for which to retrieve in-mempool descendants.

## Response

* `result` — an array containing all in-mempool descendant transactions for the specified transaction.
* `error` — an object containing an error message if an error occurred, otherwise `null`.
* `id` — an integer representing the ID of the request, used to match requests with responses.

## Use case

The `getmempooldescendants` method is useful for exploring the descendants of a transaction in the mempool. It provides insights into the chain of transactions that depend on the specified transaction.


## OpenAPI

````yaml /openapi/bitcoin_node_api/getmempooldescendants.json POST /788f110831fe13808302bd79796d55e8
openapi: 3.0.0
info:
  title: getmempooldescendants example
  version: 1.0.0
  description: >-
    This is an API example for getmempooldescendants, a method to retrieve all
    in-mempool descendants for a  transaction in the mempool.
servers:
  - url: https://nd-202-842-353.p2pify.com
security: []
paths:
  /788f110831fe13808302bd79796d55e8:
    post:
      tags:
        - Blockchain Operations
      summary: getmempooldescendants
      operationId: getMempoolDescendants
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  default: '1.0'
                method:
                  type: string
                  default: getmempooldescendants
                params:
                  type: array
                  items:
                    type: string
                    description: The transaction ID
                    example: >-
                      48b46e5905386ea21ff94d2be67dd7a75cc177c53e301d1ca29c5721d502793e
                  default:
                    - >-
                      48b46e5905386ea21ff94d2be67dd7a75cc177c53e301d1ca29c5721d502793e
                id:
                  type: integer
                  default: 1
      responses:
        '200':
          description: All in-mempool descendants for the specified transaction
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    type: array
                    description: An array of in-mempool descendant transactions
                  error:
                    type: object
                  id:
                    type: integer

````