Zcash
converttopsbt8 额度
将网络序列化的交易转换为 PSBT
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| hexstring | string | 十六进制编码的原始交易。 |
| permitsigdata | boolean | 为 true 时丢弃已有签名;为 false(默认)时,交易带有签名则调用失败。 (可选) |
| iswitness | boolean | 该 hex 是否为见证序列化的交易。省略时由节点猜测。 (可选) |
返回值
类型
string
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": "converttopsbt",
"params": [
"0200000001…"
]
}'