Module: Etherscan::Logs

Defined in:
lib/etherscan/api.rb

Class Method Summary collapse

Class Method Details

.get_logs(fromBlock, toBlock, address, topics) ⇒ Object



102
103
104
105
106
107
108
109
110
# File 'lib/etherscan/api.rb', line 102

def get_logs(fromBlock, toBlock, address, topics)
  call = Etherscan::Call.new(Etherscan.chain, 'logs', 'getLogs')
  call.api_key = Etherscan.api_key
  call.fromBlock = fromBlock
  call.toBlock = toBlock
  call.address = address
  call.topics = topics
  call.fetch
end