Zcash
getmempooldescendants8 额度
返回某笔内存池交易在内存池中的所有后代交易
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| txid | string | 交易 ID。必须在内存池中。 |
| verbose | boolean | false(默认)返回 txid 数组,true 返回以 txid 为键、含完整内存池条目详情的对象。 (可选) |
返回值
类型
string[] | Object
verbose=false 时为内存池中后代 txid 的数组。verbose=true 时为以后代 txid 为键的对象,含内存池条目字段(vsize、weight、time、height、descendantcount、descendantsize、ancestorcount、ancestorsize、wtxid、fees、depends、spentby、bip125-replaceable、unbroadcast)。
代码示例
curl https://holy-burned-sky-zcash-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7 \
-X POST \
-H 'content-type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getmempooldescendants",
"params": [
"4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b",
false
]
}'