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

Method: POST les_setClientParams

dropdown

方法 GETH RPC les_setClientParams 例如 Ethereum (ETH)

POST les_setClientParams

Method not allowed

如果ID列表为空,则设置连接客户端指定列表或所有连接客户端的容量和定价因素。

Parameters

ids - IDS

客户端ID

params - JSON对象

能力和定价因素

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_setClientParams",
"params": [null, null],
"id": "getblock.io"}'


Response

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