miner_getHashrate
Get hashrate in H/s (Hash operations per second).| CLIENT | METHOD INVOCATION |
|---|---|
| Console | miner.getHashrate() |
| RPC | {“method”: “miner_getHashrate”, “params”: []} |
miner_setExtra
Sets the extra data a miner can include when miner blocks. This is capped at 32 bytes.| CLIENT | METHOD INVOCATION |
|---|---|
| Go | miner.setExtra(extra string) (bool, error) |
| Console | miner.setExtra(string) |
| RPC | {“method”: “miner_setExtra”, “params”: [string]} |
miner_setGasPrice
Sets the minimal accepted gas price when mining transactions. Any transactions that are below this limit are excluded from the mining process.| CLIENT | METHOD INVOCATION |
|---|---|
| Go | miner.setGasPrice(number *rpc.HexNumber) bool |
| Console | miner.setGasPrice(number) |
| RPC | {“method”: “miner_setGasPrice”, “params”: [number]} |
miner_setRecommitInterval
Updates the interval for recomitting the miner sealing work.| CLIENT | METHOD INVOCATION |
|---|---|
| Console | miner.setRecommitInterval(interval int) |
| RPC | {“method”: “miner_setRecommitInterval”, “params”: [number]} |
miner_start
Start the CPU mining process.| CLIENT | METHOD INVOCATION |
|---|---|
| Go | miner.Start() error |
| Console | miner.start() |
| RPC | {“method”: “miner_start”, “params”: []} |
miner_stop
Stop the CPU mining operation.| CLIENT | METHOD INVOCATION |
|---|---|
| Go | miner.Stop() bool |
| Console | miner.stop() |
| RPC | {“method”: “miner_stop”, “params”: []} |
miner_setEtherbase
Sets the etherbase, where mining rewards will go.| CLIENT | METHOD INVOCATION |
|---|---|
| Go | miner.SetEtherbase(common.Address) bool |
| Console | miner.setEtherbase(address) |
| RPC | {“method”: “miner_setEtherbase”, “params”: [address]} |
miner_setGasLimit
Sets the gas limit the miner will target when mining. Note: on networks where EIP-1559 is activated, this should be set to twice the gas target (i.e. the effective gas used on average per block) to be.| CLIENT | METHOD INVOCATION |
|---|---|
| Go | miner.SetGasLimit(number *rpc.HexNumber) bool |
| Console | miner.SetGasLimit(number) |
| RPC | {“method”: “miner_setGasLimit”, “params”: [number]} |

