eth

Ethereum (ETH)

Method: POST admin_addPeer

dropdown
POST

admin_addPeer

方法不允许

添加静态节点。

Parameters

string -

要添加的对等节点的 Enode URL

Request

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


Response

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