getmempooldescendants - DigiByte
Example code for the getmempooldescendants json-rpc method. Сomplete guide on how to use getmempooldescendants json-rpc in GetBlock.io Web3 documentation.
Parameters
txid
- string, required
The transaction id (must be in mempool)
verbose
- boolean, optional, default=false
True for a json object, false for array of transaction ids
Request
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "getmempooldescendants",
"params": ["b63e5ee86d5407718083f2642bd6ca8d6425de315e3cbbc7e478c99f9b295056", false],
"id": "getblock.io"}'
Response
{
"error": null,
"id": "getblock.io",
"result": [
"c7229dcd13432d3dafb8408eb4c61c6973b585b4232039ff2a777057cd3f419f",
"d8047111681bcb24ade1355458bee569dfa2eda33ddf0d6a3b1eaa21fca0729b",
"177b36ad581a51d9eaaa23d6933ee932a1c4997d12469b9ed6ea3ec83ae626c8",
"ca603f623a08bd0e825792de6ee158d3a92af4ba512cc9202dd17af6be35dcd3"
]
}
Last updated