module Web3::MinerCalls
Public Instance Methods
miner_makeDAG(number)
click to toggle source
See github.com/ethereum/wiki/wiki/JSON-RPC#miner_makedag
# File miner_calls.rb, line 4 def miner_makeDAG(number) response = do_request("miner_makeDAG",[number]) response["result"] end
miner_setExtra(extra)
click to toggle source
See github.com/ethereum/wiki/wiki/JSON-RPC#miner_setextra
# File miner_calls.rb, line 10 def miner_setExtra(extra) response = do_request("miner_setExtra",[extra]) response["result"] end
miner_setGasPrice(gasPrice)
click to toggle source
See github.com/ethereum/wiki/wiki/JSON-RPC#miner_setgasprice
# File miner_calls.rb, line 16 def miner_setGasPrice(gasPrice) response = do_request("miner_setGasPrice",[gasPrice]) response["result"] end
miner_start(threads)
click to toggle source
See github.com/ethereum/wiki/wiki/JSON-RPC#miner_start
# File miner_calls.rb, line 22 def miner_start(threads) response = do_request("miner_start",[threads]) response["result"] end
miner_startAutoDAG(number)
click to toggle source
See github.com/ethereum/wiki/wiki/JSON-RPC#miner_startautodag
# File miner_calls.rb, line 28 def miner_startAutoDAG(number) response = do_request("miner_startAutoDAG",[number]) response["result"] end
miner_stop()
click to toggle source
See github.com/ethereum/wiki/wiki/JSON-RPC#miner_stop
# File miner_calls.rb, line 34 def miner_stop() response = do_request("miner_stop") response["result"] end
miner_stopAutoDAG()
click to toggle source
See github.com/ethereum/wiki/wiki/JSON-RPC#miner_stopautodag
# File miner_calls.rb, line 40 def miner_stopAutoDAG() response = do_request("miner_stopAutoDAG") response["result"] end