dcr

Decred (DCR)

Method: POST version

dropdown
POST

version

Returns the JSON-RPC API version (semver).

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


Response

{
    "error": null,
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "dcrd": {
            "buildmetadata": "release.go1-16-3",
            "major": 1,
            "minor": 6,
            "patch": 2,
            "prerelease": "",
            "versionstring": "1.6.2+release"
        },
        "dcrdjsonrpcapi": {
            "buildmetadata": "",
            "major": 6,
            "minor": 2,
            "patch": 0,
            "prerelease": "",
            "versionstring": "6.2.0"
        }
    }
}