Zcash
verifytxoutproof8 额度
验证证明指向某个区块中的交易
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| proof | string | gettxoutproof 生成的十六进制编码证明。 |
返回值
类型
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…"
]
}'