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

/

Nervos Network (CKB)

ckb
Nervos Network (CKB)

Method: POST add_node

dropdown

方法 RPC add_node 例如 Nervos Network (CKB)

POST add_node

Method not allowed

尝试将节点添加到对等列表并尝试连接到它。

Parameters

peer_id - 细绳

节点的节点ID。

address - 细绳

节点的地址。

Request

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


Response

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