getmempooldescendants

If txid is in the mempool, returns all in-mempool descendants.

Arguments:

  1. "txid" (string, required) The transaction id (must be in mempool)
  2. verbose (boolean, optional, default=false) True for a json object, false for array of transaction ids

Request

curl 'https://rpc.web3api.io?x-api-key=YOUR-API-KEY' \
    -X POST \
    -H 'x-amberdata-blockchain-id: bitcoin-mainnet' \
    -d '{"jsonrpc":"2.0","id":1,"method":"getmempooldescendants","params":["b162685a7cae209861c9716f86d41cd43edd32e841ecbbd129099d78f4a78732"]}'

Response

{
    "result": [],
    "error": null,
    "id": 1
}