📝 Share Your Feedback on Twitter and Claim 1M Free GetBlock Requests

grs
Groestlcoin (GRS)

Method: POST disconnectnode

dropdown

方法 RPC disconnectnode 例如 Groestlcoin (GRS)

POST disconnectnode

Method not allowed

立即与指定的对等节点断开连接。

严格来说,可以提供“地址”和“ nodeid”的一个以识别节点。

要通过nodeid断开连接,要么将“地址”设置为空字符串,要么仅使用名为“ nodeid”参数调用。

Parameters

address - 字符串,可选,默认值= sublack to nodeid

节点的IP地址/端口

nodeid - 数字,可选,默认值=地址的后备

节点ID(有关节点ID,请参见GetPeerInfo)

Request

curl --location --request POST 'https://grs.getblock.io/mainnet/' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "disconnectnode",
"params": [null, null],
"id": "getblock.io"}'


Response

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