Zcash
gettxout8 크레딧
미사용 트랜잭션 출력의 상세 정보를 반환합니다.
매개변수
| 이름 | 타입 | 설명 |
|---|---|---|
| txid | string | 트랜잭션 ID. |
| n | number | 출력 인덱스(vout). |
| include_mempool | boolean | 멤풀을 고려할지 여부. 기본값은 true이며, 이 경우 멤풀 트랜잭션이 사용한 출력은 사용됨으로 보고됩니다. (선택) |
반환값
타입
Object | null
출력이 없거나 이미 사용되었으면 null. 그 외에는 bestblock, confirmations, value(BTC), scriptPubKey(asm, desc, hex, type, 정의된 경우 address), coinbase. 이전 Core 버전은 address와 desc 대신 reqSigs와 addresses를 반환합니다.
코드 예제
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": "gettxout",
"params": [
"4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b",
0,
true
]
}'