rest/deploymentinfo - Bitcoin

This endpoint reports the activation state of each consensus soft fork the node knows about, as of the chain tip or a given block.

Parameters

ParameterTypeLocationRequiredDescription
blockhashstringpathNoReport deployment state as of this block instead of the tip
formatstringpathYesResponse format: json

Request

bashcurl --location --request GET 'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/rest/deploymentinfo.json'

example.js

javascriptconst response = await fetch(
    'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/rest/deploymentinfo.json'
);
console.log(await response.json());

example.py

pythonimport requests

response = requests.get('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/rest/deploymentinfo.json')

print(response.json())

Response

json{
    "hash": "000000000000000000019c481c042c0625abe1dc04fe26795e2e24b152791e5f",
    "height": 967816,
    "script_flags": [
        "CHECKLOCKTIMEVERIFY",
        "CHECKSEQUENCEVERIFY",
        "DERSIG",
        "NULLDUMMY",
        "P2SH",
        "TAPROOT",
        "WITNESS"
    ],
    "deployments": {
        "segwit": {
            "type": "buried",
            "active": true,
            "height": 481824
        },
        "taproot": {
            "type": "bip9",
            "height": 709632,
            "active": true,
            "bip9": {
                "start_time": 1619222400,
                "timeout": 1628640000,
                "min_activation_height": 709632,
                "status": "active",
                "since": 709632,
                "status_next": "active"
            }
        }
    }
}

Only segwit and taproot are shown; the node also reports bip34, bip65, bip66, and csv.

Response Parameters

FieldTypeDescription
hashstringHash of the block the report is made against
heightnumericHeight of that block
deploymentsobjectOne entry per soft fork, keyed by name
deployments[].typestringburied for forks locked in by height, bip9 for version-bits deployments
deployments[].activebooleanTrue when the fork is active at this block
deployments[].heightnumericActivation height
deployments[].bip9objectVersion-bits detail for bip9 deployments, including status and since

buried deployments were activated long ago and are hardcoded by height. bip9 deployments carry the full version-bits record, including the signalling window and the height at which the status last changed.

Use Cases

  • Capability Checks: Confirm Taproot or SegWit is active before relying on it
  • Historical Queries: Pass a block hash to see what was active at that point
  • Node Comparison: Verify two nodes agree on consensus rules

Error Handling

HTTP StatusMessageDescription
400Bad requestThe path is malformed, or a hash or height is invalid
403ForbiddenMissing or invalid ACCESS-TOKEN
404Not foundNo object matches the requested hash, height, or outpoint
500Internal errorThe node failed to process the request