Skip to main content

Module logs

Module logs 

Source

StructsΒ§

LogQueryArgs
Arguments shared by commands that query logs with eth_getLogs.
LogsArgs
CLI arguments for cast logs.

FunctionsΒ§

build_filter πŸ”’
Builds a Filter by first trying to parse the sig_or_topic as an event signature. If successful, topics_or_args is parsed as indexed inputs and converted to topics. Otherwise, sig_or_topic is prepended to topics_or_args and used as raw topics.
convert_block_number πŸ”’
event_topics πŸ”’
Encodes args as the indexed topics of event; empty arguments match any value.
format_logs πŸ”’
get_logs_bisecting πŸ”’
Fetches logs for the inclusive [from, to] range, recursively bisecting on failure.
get_logs_chunked πŸ”’
Retrieves logs, splitting the request into fixed-size block chunks when needed.
get_logs_chunked_concurrent πŸ”’
Retrieves logs for the inclusive [from, to] range using concurrent chunked requests.
is_range_limit_error πŸ”’
Returns true if err is a provider range/result-size limit that retrying over a smaller range can fix. Network, auth, rate-limit, and malformed-response errors return false.
pretty_log πŸ”’
Renders a log as an indented list item.
raw_topics πŸ”’
Parses raw topic hashes; empty topics match any value.
resolve_block_range πŸ”’
Resolves the filter’s block range to concrete block numbers.
resolve_block_tag πŸ”’
Resolves a [BlockNumberOrTag] to a concrete block number, querying the provider for tags.