DASH
POST
GET
Last updated on January 1, 1970
1 min read
Method getmempoolancestors undefined ()
connect with JSON-RPC protocol
getmempoolancestors
Returns all in-mempool ancestors for a transaction in the mempool.
Parameters
TXID
- string (hex)
The TXID of a transaction in the memory pool, encoded as hex in RPC byte order.
Format
- boolean
Optional.
Set to true to get json objects describing each transaction in the memory pool; set to false (the default) to only get an array of TXIDs.
Request
curl --location --request POST 'https://dash.getblock.io/mainnet/'
--header 'x-api-key: YOUR-API-KEY'
--header 'Content-Type: application/json'
--data-raw '{"jsonrpc": "2.0",
"method": "getmempoolancestors",
"params": ["dc63e7f6929658feade06fec1eeaf43b", false],
"id": "getblock.io"}'
Response
{
"error": null,
"id": "getblock.io",
"result": [
"d64eb30e5435e7a4564df9d06525a8ab48858fdaf111661d1e7874a72cebc132"
]
}
Start Building with GetBlock RPCs for Free
Previous
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }
Next
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }