getmempooldescendants

Returns all in-mempool descendants if txid is present in the mempool.

Example Request and Result for getmempooldescendants method

In this section, we provide an illustrative example of a request made to retrieve details contents using the getmempooldescendants method. Additionally, we present the resulting response containing information about the in-mempool descendants.

Parameters

FieldTypeDescription

txid*

string

The transaction id, and it must be in mempool

verbose

boolean

default=false. It's true for a JSON object and false for array of transaction ids

The example in this section uses a non-existing project id.

Make sure you replace it with your Bitcoin mainnet or Bitcoin Testnet endpoint when issuing the API calls.

Don't have a project id? Here's a straightforward guide on how to obtain one!

Returns all in-mempool descendants for a transaction.

POST https://bitcoin-mainnet.blastapi.io/<project-id>

Request Body

NameTypeDescription

jsonrpc*

string

1.0

id*

string

bwarelabs

method*

string

getmempooldescendants

params*

array<string>

["b86ae732473ff2c91c04073ec9cbef5e4ddaa701741e141e41345df72122b795", null]

{
    "result": [
        "2ed4518fdef1313e431bc3bc558083da0d399ec7ba9705fbb7e911ffa607e766"
    ],
    "error": null,
    "id": "bwarelabs"
}

Curl Request example

curl --location 'https://bitcoin-mainnet.blastapi.io/<project-id>' \
--header 'Content-Type: application/json' \
--data '{"jsonrpc": "1.0",
"method": "getmempooldescendants",
"params": ["b86ae732473ff2c91c04073ec9cbef5e4ddaa701741e141e41345df72122b795", null],
"id": "bwarelabs"}'

Last updated