⚡ We welcome businesses to test our enterprise-grade service

Method: POST miner_start

dropdown

方法 RPC miner_start 例如 Ethereum (ETH)

POST miner_start

方法不允许

开始挖矿过程。要开始挖矿,您必须首先使用 --miner-coinbase 命令行选项指定一个矿工 coinbase。

Parameters

-

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


Response

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