Bitcoin
getdeploymentinfo15 crédits
Returns softfork deployment status
Paramètres
| Nom | Type | Description |
|---|---|---|
| blockhash | string | Block hash at which to query deployment state. Default is the chain tip. (facultatif) |
Valeur renvoyée
Type
Object
hash and height of the queried block, and deployments: an object keyed by deployment name with type (buried or bip9), active, height (for buried or active deployments) and, for bip9, a bip9 object with bit, start_time, timeout, min_activation_height, status, since, status_next and statistics.
Exemples de code
curl https://holy-burned-sky-bitcoin-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"
]
}'