View Source Ethex.Abi.Event (ethex v0.1.0)

"https://mainnet.infura.io/v3/{{INFURA_API_KEY}}"

%{ address: ["0x497c41e4d95e9738bde7f23977e22d875de8fbd4"], fromBlock: "0xF83845", toBlock: "0xFA3845" }

Link to this section Summary

Functions

decode given logs using given function selectors.

combine eth_getLogs with decode, using the given abi_name, which MUST register in Abi genserver.

Link to this section Functions

@spec decode(list(), [ABI.FunctionSelector.t(), ...]) :: list()

decode given logs using given function selectors.

discard log when no function_selector match its method_id.

Link to this function

decode_log(log, selector)

View Source
@spec decode_log(map(), ABI.FunctionSelector.t()) :: map()
Link to this function

get_logs_and_decode(rpc, abi_name, filter)

View Source
@spec get_logs_and_decode(String.t(), String.t(), map()) ::
  {:error, any()} | {:ok, list()}

combine eth_getLogs with decode, using the given abi_name, which MUST register in Abi genserver.

NOTE: address in filter SHOULD match abi_name, or will be discard.