dcr

Decred (DCR)

Method: POST verifychain

dropdown
POST

verifychain

Method not allowed

Verifies the block chain database. The actual checks performed by the checklevel parameter is implementation specific.

For dcrd this is: checklevel=0 - Look up each block and ensure it can be loaded from the database. checklevel=1 - Perform basic context-free sanity checks on each block.

Parameters

checklevel - numeric

Optional, default=3

how in-depth the verification is (0=least amount of checks, higher levels are clamped to the highest supported level).

numblocks - numeric

Optional, default=288

the number of blocks starting from the end of the chain to verify.

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


Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}