getmempoolancestors

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

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":"getmempoolancestors","params":["6b029135dcbff2c9bba177b3875542c1a5d0c8ffa6f889658b14ff9d97487b0a"]}'

Response

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