文档
定价GitHub控制台

Zcash

decoderawtransaction8 额度

将序列化的交易 hex 解码为 JSON。

网络: zcash

参数

名称类型描述
hexstringstring原始交易 hex。
iswitnessboolean是否为见证序列化。 (可选)

返回值

类型

Object

解码后的交易。

代码示例

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": "decoderawtransaction",
  "params": [
    "01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff…"
  ]
}'