文档
定价GitHub控制台

Zcash

getdeploymentinfo8 额度

返回软分叉的部署状态

网络: zcash

参数

名称类型描述
blockhashstring查询部署状态所在的区块哈希。默认为链顶端。 (可选)

返回值

类型

Object

所查询区块的 hash 和 height,以及 deployments:以部署名称为键的对象,含 type(buried 或 bip9)、active、height(用于 buried 或已激活的部署),对于 bip9 还有 bip9 对象,含 bit、start_time、timeout、min_activation_height、status、since、status_next 和 statistics。

代码示例

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": "getdeploymentinfo",
  "params": [
    "000000000003ba27aa200b1cecaad478d2b00432346c3f1f3986da1afd33e506"
  ]
}'