> ## Documentation Index
> Fetch the complete documentation index at: https://docs.parallaxprotocol.org/llms.txt
> Use this file to discover all available pages before exploring further.

# miner

The miner API is responsible to provide remote control the node's mining operation and set various mining specific settings.

### 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\_setCoinbase

Sets the coinbase, where mining rewards will go.

| CLIENT | METHOD INVOCATION |
| - | - |
| Go | miner.SetCoinbase(util.Address) bool |
| Console | miner.setCoinbase(address) |
| RPC | \{"method": "miner\_setCoinbase", "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]} |

***

*Adapted from [miner Namespace](https://geth.ethereum.org/docs/interacting-with-geth/rpc/ns-miner) in the go-ethereum documentation, © The go-ethereum Authors. See the [third-party notices](https://github.com/ParallaxProtocol/parallax-docs/blob/main/THIRD_PARTY_NOTICES.md).*


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.