powered by
miner_setExtra sets the extra data a miner can include when miner blocks. This is capped at 32 bytes.
miner_setExtra
miner_setExtra(data)
String - Data to include in mined blocks.
Boolean - true if changed, otherwise false.
true
false
Other miner functions: gethr, miner_setEtherBase, miner_setGasPrice, miner_start, miner_stop
gethr
miner_setEtherBase
miner_setGasPrice
miner_start
miner_stop
# NOT RUN { miner_setExtra('My info') # } # NOT RUN { # }
Run the code above in your browser using DataLab