Zcash
gettxoutproof8 额度
返回十六进制编码的证明,证明一笔或多笔交易已包含在某个区块中
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| txids | string[] | 要证明的交易 ID。 |
| blockhash | string | 包含这些交易的区块。不提供时,调用仅适用于有未花费输出的交易(或节点以 -txindex 运行时)。 (可选) |
返回值
类型
string
十六进制编码的 merkle 证明(序列化的 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"
]
}'