요금GitHub대시보드

Zcash

verifytxoutproof8 크레딧

증명이 블록 내 트랜잭션을 가리키는지 검증합니다.

네트워크: zcash

매개변수

이름타입설명
proofstringgettxoutproof가 생성한 hex 인코딩 증명.

반환값

타입

string[]

증명이 확정하는 txid. 증명이 유효하지 않으면 빈 배열이며, 블록이 최적 체인에 없으면 오류.

코드 예제

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": "verifytxoutproof",
  "params": [
    "0100000…"
  ]
}'