POSTgetmempooldescendants

Bitcoin Mainnethttps://bitcoin-mainnet.nodit.io/

Returns all in-mempool descendants for a transaction in the mempool. A descendant is an unconfirmed transaction that spends an output of the target transaction.

Set verbose to true to return an object keyed by transaction id with detailed mempool data.

Request Body
idintegerrequired
jsonrpcstringrequired
methodstringrequired
paramsoneOf[]required

It contains following parameters in order:

  1. txid: The transaction id, as a string. (required, must be in the mempool)
  2. verbose: The response format, as a boolean. (optional, default false)
    • false: Returns an array of transaction ids.
    • true: Returns an object with detailed data for each transaction.
params[0]string

The transaction id. The transaction must be in the mempool.

params[1]boolean

Whether to return a detailed object. When false, an array of transaction ids is returned.

Responses

응답 본문이 없습니다.

X-API-KEY
RequestCU30
cURL
curl -X POST "https://bitcoin-mainnet.nodit.io/" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "getmempooldescendants",
  "params": [
    "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b",
    false
  ]
}'
Response
Example · 200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    "9b0fc92260312ce44e74ef369f5c66bbb85848f2eddd5a7a1cde251e54ccfdd5"
  ]
}