dcr

Decred (DCR)

Method: POST getvoteinfo

dropdown
POST

getvoteinfo

Returns the vote info statistics.

Parameters

version - numeric

The stake version

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": "getvoteinfo",
"params": [5],
"id": "getblock.io"}'


Response

{
    "error": null,
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "agendas": [
            {
                "choices": [
                    {
                        "bits": 0,
                        "count": 0,
                        "description": "abstain voting for change",
                        "id": "abstain",
                        "isabstain": true,
                        "isno": false,
                        "progress": 0
                    },
                    {
                        "bits": 2,
                        "count": 0,
                        "description": "keep the existing consensus rules",
                        "id": "no",
                        "isabstain": false,
                        "isno": true,
                        "progress": 0
                    },
                    {
                        "bits": 4,
                        "count": 0,
                        "description": "change to the new consensus rules",
                        "id": "yes",
                        "isabstain": false,
                        "isno": false,
                        "progress": 0
                    }
                ],
                "description": "Enable features defined in DCP0002 and DCP0003 necessary to support Lightning Network (LN)",
                "expiretime": 1536796800,
                "id": "lnfeatures",
                "mask": 6,
                "quorumprogress": 0,
                "starttime": 1505260800,
                "status": "active"
            }
        ],
        "currentheight": 590063,
        "endheight": 592767,
        "hash": "000000000000000036d0fa5c8f9694b1eb6fa3458789430fe99b0d5bcabe55ed",
        "quorum": 4032,
        "startheight": 584704,
        "totalvotes": 0,
        "voteversion": 5
    }
}