Miner methods
POST : miner_changeTargetGasLimit
Updates the target gas limit set using the
--target-gas-limit
command line option.Parameters
integer
: quantity
- The target gas price in Wei.Returns
result
- Success
or error
.BODY
{
"jsonrpc": "2.0",
"method": "miner_changeTargetGasLimit",
"params": [
800000
],
"id": 1
}
POST : miner_start
Starts the mining process. To start mining, you must first specify a miner coinbase using the
--miner-coinbase
command line option.Parameters
None
Returns
result
: boolean
- true
if mining starts, or if the node was already mining.BODY
{
"jsonrpc": "2.0",
"method": "miner_start",
"params": [],
"id": 1
}
POST : miner_stop
Stops the mining process on the client.
Parameters
None
Returns
result
: boolean
- true
if mining stops, or if the node was not mining.BODY
{
"jsonrpc": "2.0",
"method": "miner_stop",
"params": [],
"id": 1
}
Last modified 7mo ago