Method: Ethereum::Client#initialize

Defined in:
lib/elchapo/ethereum/client.rb

#initializeClient

Returns a new instance of Client.



16
17
18
19
20
21
22
23
24
25
26
# File 'lib/elchapo/ethereum/client.rb', line 16

def initialize
  @id = 0
  @log = log
  @batch = nil
  # @formatter = Ethereum::Formatter.new
  @gas_price = DEFAULT_GAS_PRICE
  @gas_limit = DEFAULT_GAS_LIMIT
  if @log == true
    @logger = Logger.new("/tmp/ethereum_ruby_http.log")
  end
end