miner

Miner related features

class aioethereum.management.miner.MinerMixin

Bases: object

coroutine miner_setEtherBase(address)

https://github.com/ethereum/go-ethereum/wiki/Management-APIs#miner_setetherbase

NOT AVAILABLE

coroutine miner_setExtra(data)

https://github.com/ethereum/go-ethereum/wiki/Management-APIs#miner_setextra

Parameters:data (str) – Extra data a miner can include when miner blocks
Return type:bool
coroutine miner_setGasPrice(number)

https://github.com/ethereum/go-ethereum/wiki/Management-APIs#miner_setgasprice

Parameters:number (int) – Minimal accepted gas price when mining transactions
Return type:bool
coroutine miner_start(number)

https://github.com/ethereum/go-ethereum/wiki/Management-APIs#miner_start

Parameters:number (int) – CPU mining process with the given number of threads
Return type:bool
coroutine miner_stop()

https://github.com/ethereum/go-ethereum/wiki/Management-APIs#miner_stop

Return type:bool