文档
定价GitHub控制台

Zcash

verifytxoutproof8 额度

验证证明指向某个区块中的交易

网络: zcash

参数

名称类型描述
proofstringgettxoutproof 生成的十六进制编码证明。

返回值

类型

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…"
  ]
}'