Cartouche.Filter.Log (Cartouche v0.8.0)

Copy Markdown View Source

A decoded Ethereum log entry.

Produced by Cartouche.Filter for kind: :log filters and returned by Cartouche.RPC.get_filter_logs/2. Addresses, hashes, and topics are decoded to raw binaries; :block_number, :log_index, and :transaction_index to integers. :extra_data is the opaque term a Cartouche.Filter was started with, stamped onto every log it dispatches, and is nil elsewhere.

Summary

Types

t()

@type t() :: %Cartouche.Filter.Log{
  address: binary(),
  block_hash: binary(),
  block_number: non_neg_integer(),
  data: binary(),
  extra_data: term(),
  log_index: non_neg_integer(),
  removed: boolean(),
  topics: [binary()],
  transaction_hash: binary(),
  transaction_index: non_neg_integer()
}