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

Method: POST les_clientInfo

dropdown

方法 GETH RPC les_clientInfo 例如 Ethereum (ETH)

POST les_clientInfo

Method not allowed

如果ID列表为空,请在指定的客户端列表或所有连接的客户端上获取单个客户信息(连接,余额,定价)。

Parameters

ids - JSON对象的数组

选修的。 客户端ID列表。

Request

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


Response

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