diff --git a/docs/_rpc/ns-miner.md b/docs/_rpc/ns-miner.md index f8ca0775d5..176cf11b67 100644 --- a/docs/_rpc/ns-miner.md +++ b/docs/_rpc/ns-miner.md @@ -70,3 +70,13 @@ Sets the etherbase, where mining rewards will go. | 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 what you want 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]}` |