lib/etherscan/api.rb in etherscan-0.1.0 vs lib/etherscan/api.rb in etherscan-0.1.1

- old
+ new

@@ -95,9 +95,23 @@ call.fetch end end end + module Logs + class << self + 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 + end + end + module Proxy class << self def eth_block_number call = Etherscan::Call.new(Etherscan.chain, 'proxy', 'eth_blockNumber') call.api_key = Etherscan.api_key