Skip to main content

getmempoolancestors

Example Request and Result for getmempoolancestors method

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

Parameters

FieldTypeDescription

txid*

stringThe transaction id (must be in mempool)
verbosebooleanTrue for a json object, false for array of transaction ids
info

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!

Curl Request example

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