module Harmony::Api::V1::Filters::Filter
Public Instance Methods
get_filter_changes(filter_id)
click to toggle source
# File lib/harmony/api/v1/filters/filter.rb, line 15 def get_filter_changes(filter_id) params = [Harmony::Api::Utilities.int_to_hex(filter_id)] response(post('getFilterChanges', params: params)) end
get_filter_logs(filter_id)
click to toggle source
get_filter_logs
returns the logs for the filter with the given id. If the filter could not be found an empty array of logs is returned.
# File lib/harmony/api/v1/filters/filter.rb, line 10 def get_filter_logs(filter_id) params = [Harmony::Api::Utilities.int_to_hex(filter_id)] response(post('getFilterLogs', params: params)) end
new_block_filter(_block_hash)
click to toggle source
# File lib/harmony/api/v1/filters/filter.rb, line 29 def new_block_filter(_block_hash) response(post('newBlockFilter')) end
new_filter(block_hash)
click to toggle source
# File lib/harmony/api/v1/filters/filter.rb, line 20 def new_filter(block_hash) response(post('newFilter', params: [block_hash])) end
new_pending_transaction_filter(topics: [])
click to toggle source
# File lib/harmony/api/v1/filters/filter.rb, line 24 def new_pending_transaction_filter(topics: []) params = [{ topics: topics }] response(post('newPendingTransactionFilter', params: params)) end