⚡ We welcome businesses to test our enterprise-grade service

Method: POST miner_setRecommitInterval

dropdown

方法 GETH RPC miner_setRecommitInterval 例如 Ethereum (ETH)

POST miner_setRecommitInterval

Method not allowed

更新推荐矿工密封工作的间隔。

Parameters

interval - 整数

推荐间隔

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


Response

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