dcr

Decred (DCR)

Method: POST debuglevel

dropdown

POST debuglevel

Method not allowed

Dynamically changes the debug logging level.

The levelspec can either be a debug level or of the form subsystem=level,subsystem2=level2,...

The valid subsystems are AMGR, ADXR, BCDB, DCRD, CHAN, DISC, PEER, RPCS, SCRP, SRVR, SYNC, and TXMP.

Additionally, the special keyword show can be used to get a list of the available subsystems.

Parameters

levelspec - string

the debug level specification.

The valid debug levels are trace, debug, info, warn, error, and critical.

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


Response

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