dcr

Decred (DCR)

Method: POST getbestblockhash

dropdown
POST

getbestblockhash

Returns the hash of the of the best (most recent) block in the longest 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": "getbestblockhash",
"params": [],
"id": "getblock.io"}'


Response

{
    "error": null,
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "000000000000000012f525769a1a492c7c2261ee20b862b8c8374d860a2a95bc"
}