요금GitHub대시보드

Zcash

scantxoutset8 크레딧

출력 descriptor와 일치하는 항목을 UTXO 집합에서 스캔합니다.

네트워크: zcash

매개변수

이름타입설명
actionstringstart는 스캔을 시작하고, status는 실행 중인 스캔의 진행 상황을 보고하며, abort는 스캔을 취소합니다.
scanobjects(string | Object)[]start에 필요. 스캔할 출력 descriptor: descriptor 문자열 또는 { desc, range } 객체이며 range(number 또는 [begin, end], 기본값 1000)는 탐색할 HD 인덱스를 제한합니다. (선택)

반환값

타입

Object | boolean | null

start는 success, txouts(스캔한 출력), height, bestblock, unspents(txid, vout, scriptPubKey, desc, amount, height), total_amount를 반환합니다. status는 진행률(progress, 퍼센트)을 반환하며 실행 중인 스캔이 없으면 null입니다. abort는 스캔이 취소되면 true를 반환합니다. 전체 스캔은 수 분이 걸릴 수 있습니다.

코드 예제

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": "scantxoutset",
  "params": [
    "start",
    [
      "addr(bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq)"
    ]
  ]
}'