Zcash
getmempoolancestors8 크레딧
멤풀 트랜잭션의 멤풀 내 모든 조상(ancestor)을 반환합니다.
매개변수
| 이름 | 타입 | 설명 |
|---|---|---|
| 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": "getmempoolancestors",
"params": [
"4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b",
false
]
}'