Zcash
utxoupdatepsbt8 额度
用 UTXO 集数据更新 PSBT 中的 segwit 输入/输出
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| psbt | string | Base64 编码的 PSBT。 |
| descriptors | (string | Object)[] | 用于填充脚本和密钥的描述符:描述符字符串或 { desc, range },其中 range(数字或 [begin, end],默认 1000)限制所探索的 HD 索引。 (可选) |
返回值
类型
string
已填充输入 UTXO 数据(以及由描述符派生的数据)的 Base64 编码 PSBT。
代码示例
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": "utxoupdatepsbt",
"params": [
"cHNidP8BAHUCAAAAASaBcTce3/KF6Tet7qSze3gADAVmy7OtZGQXE8pCFxv2AAAAAAD+////…"
]
}'