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

Zcash

gettxoutproof8クレジット

1 つ以上のトランザクションがブロックに含まれていることの、hex エンコードされた proof を返します

ネットワーク: zcash

パラメータ

名前型説明
txidsstring[]証明するトランザクションID。
blockhashstringトランザクションを含むブロック。指定しない場合、この呼び出しは未使用の出力を持つトランザクション(またはノードが -txindex 付きで実行されている場合)にのみ機能します。 (任意)

戻り値

型

string

トランザクションがブロックに含まれていることを示す、hex エンコードされた merkle proof(シリアライズされた MerkleBlock)。

コード例

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": "gettxoutproof",
  "params": [
    [
      "a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"
    ],
    "00000000152340ca42227603908689183edc47355204e7aca59383b0aaac1fd8"
  ]
}'