dcr

Decred (DCR)

Method: POST getblockchaininfo

dropdown

POST getblockchaininfo

Returns information about the current state of the block chain.

Parameters

-

Request

curl --location --request POST 'https://dcr.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "getblockchaininfo",
"params": [],
"id": "getblock.io"}'


Response

{
    "error": null,
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "bestblockhash": "000000000000000012f525769a1a492c7c2261ee20b862b8c8374d860a2a95bc",
        "blocks": 590054,
        "chain": "mainnet",
        "chainwork": "0000000000000000000000000000000000000000001c94ed36c8c77e0d849420",
        "deployments": {
            "fixlnseqlocks": {
                "expiretime": 1580169600,
                "since": 342784,
                "starttime": 1548633600,
                "status": "active"
            },
            "headercommitments": {
                "expiretime": 1599264000,
                "since": 431488,
                "starttime": 1567641600,
                "status": "active"
            },
            "lnfeatures": {
                "expiretime": 1536796800,
                "since": 189568,
                "starttime": 1505260800,
                "status": "active"
            },
            "lnsupport": {
                "expiretime": 1508976000,
                "since": 149248,
                "starttime": 1493164800,
                "status": "active"
            },
            "sdiffalgorithm": {
                "expiretime": 1524700800,
                "since": 149248,
                "starttime": 1493164800,
                "status": "active"
            },
            "treasury": {
                "expiretime": 1627776000,
                "since": 552448,
                "starttime": 1596240000,
                "status": "active"
            }
        },
        "difficulty": 406751438,
        "difficultyratio": 17582242224.688896,
        "headers": 590054,
        "initialblockdownload": false,
        "maxblocksize": 393216,
        "syncheight": 589877,
        "verificationprogress": 1
    }
}