> For the complete documentation index, see [llms.txt](/llms.txt).

# `getmempooldescendants`

Returns the in-mempool descendants of an unconfirmed transaction. This method uses [80 credits](/get-started/pricing/) from your daily balance.

Descendants are the unconfirmed transactions that spend from this transaction, directly or indirectly. The method returns an error if the transaction isn't in the mempool.

## Parameters[​](#parameters "Direct link to Parameters")

- `txid`: (string) _[required]_ - Transaction ID.
- `verbose`: (boolean) _[optional]_ - `false` returns an array of transaction IDs. `true` returns an object keyed by transaction ID, with the fields described in [getrawmempool](/reference/bitcoin/json-rpc-methods/getrawmempool/). The default is `false`.

## Returns[​](#returns "Direct link to Returns")

`result`: (array or object) - Descendant transaction IDs, or an object of mempool entries when `verbose` is `true`.

### Request[​](#request "Direct link to Request")

Replace the transaction ID with one currently in the mempool.

- curl

```
curl https://bitcoin-mainnet.infura.io/v3/<YOUR-API-KEY> \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "getmempooldescendants", "params": ["a4c7e2f1b0d9c8e7f6a5b4c3d2e1f0a9b8c7d6e5f4a3b2c1d0e9f8a7b6c5d4e3", false]}'

```

### Response[​](#response "Direct link to Response")

- JSON

```
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    "5b1d0e9f4c3a2b8170e6d5c4b3a29180f7e6d5c4b3a291807f6e5d4c3b2a1908"
  ]
}

```
