powered by
miner_setGasPrice sets the minimal accepted gas price when mining transactions. Any transactions that are below this limit are excluded from the mining process.
miner_setGasPrice
miner_setGasPrice(price)
Integer - Value of the gas price.
Boolean - true if changed, otherwise false.
true
false
Other miner functions: gethr, miner_setEtherBase, miner_setExtra, miner_start, miner_stop
gethr
miner_setEtherBase
miner_setExtra
miner_start
miner_stop
# NOT RUN { miner_setGasPrice(10) # } # NOT RUN { # }
Run the code above in your browser using DataLab