Go Centurion

skip to content

downloads

documentation

Search

miner Namespace

Last edited on March 17, 2026
The miner API is now deprecated because mining was switched off at the transition to proof-of-stake. It existed to provide remote control the node's mining operation and set various mining specific settings. It is provided here for historical interest!

miner_getHashrate

Get hashrate in H/s (Hash operations per second).
ClientMethod invocation
Consoleminer.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.
ClientMethod invocation
Gominer.setExtra(extra string) (bool, error)
Consoleminer.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.
ClientMethod invocation
Gominer.setGasPrice(number *rpc.HexNumber) bool
Consoleminer.setGasPrice(number)
RPC{"method": "miner_setGasPrice", "params": [number]}

miner_setRecommitInterval

Updates the interval for recomitting the miner sealing work.
ClientMethod invocation
Consoleminer.setRecommitInterval(interval int)
RPC{"method": "miner_setRecommitInterval", "params": [number]}

miner_start

Start the CPU mining process.
ClientMethod invocation
Gominer.Start() error
Consoleminer.start()
RPC{"method": "miner_start", "params": []}

miner_stop

Stop the CPU mining operation.
ClientMethod invocation
Gominer.Stop() bool
Consoleminer.stop()
RPC{"method": "miner_stop", "params": []}

miner_setEtherbase

Sets the etherbase (coinbase) address, where mining rewards in CTN will go.
ClientMethod invocation
Gominer.SetEtherbase(common.Address) bool
Consoleminer.setEtherbase(address)
RPC{"method": "miner_setEtherbase", "params": [address]}

miner_setGasLimit

Sets the Newton limit (gas limit) the miner will target when mining. Note: on networks with an EIP-1559-like fee market, this should be set to twice the gas target (i.e. the effective gas used on average per block).
ClientMethod invocation
Gominer.SetGasLimit(number *rpc.HexNumber) bool
Consoleminer.SetGasLimit(number)
RPC{"method": "miner_setGasLimit", "params": [number]}

Previous

les

Next

net

DOWNLOADS

© 2026 go-centurion Authors. Based on go-ethereum.