ドキュメント
料金GitHubダッシュボード

Zcash

scantxoutset8クレジット

output descriptor に一致するエントリを UTXO セットからスキャンします

ネットワーク: zcash

パラメータ

名前型説明
actionstringstart はスキャンを開始し、status は実行中のスキャンの進捗を報告し、abort はそれをキャンセルします。
scanobjects(string | Object)[]start では必須。スキャン対象の output descriptor:descriptor 文字列、またはオブジェクト { desc, range }。range(数値または [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)"
    ]
  ]
}'