dcr

Decred (DCR)

Method: POST addnode

dropdown
POST

addnode

Method not allowed

Attempts to add or remove a persistent peer.

Parameters

addr - string

IP address and port of the peer to operate on.

subcmd - string

"add" to add a persistent peer, "remove" to remove a persistent peer, or "onetry" to try a single connection to a peer.

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


Response

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