ltc

Litecoin (LTC)

Method: POST addnode

dropdown
POST

addnode

Method not allowed

Attempts add or remove node from the addnode list or try a connection to node once.

Parameters

node - string, required

The node (see getpeerinfo for nodes)

command - string, required

‘add’ to add a node to the list, ‘remove’ to remove a node from the list, ‘onetry’ to try a connection to the node once

Request

curl --location --request POST 'https://ltc.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"
}