View Source Ethex (ethex v0.1.3)

Documentation for Ethex.

Link to this section Summary

Link to this section Functions

@spec block_number(String.t()) :: {:error, any()} | {:ok, integer()}

See Ethex.Blockchain.GossipMethod.eth_block_number/1.

Link to this function

call(rpc, abi_name, address, fun_name, args \\ [])

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


@spec create_wallet() :: map()

See Ethex.Account.Wallet.create/0.

Link to this function


View Source
@spec create_wallet(String.t()) :: map()

See Ethex.Account.Wallet.create/1.

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

See Ethex.Abi.Event.decode/2.

Link to this function

decode_log(log, selector)

View Source
@spec decode_log(map(), ABI.FunctionSelector.t()) :: map()

See Ethex.Abi.Event.decode_log/2.

Link to this function

gen_block_range(rpc, last_block)

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

See Ethex.Abi.Event.gen_block_range/2.

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()}

See Ethex.Abi.Event.get_logs_and_decode/3.

Link to this function


View Source
@spec get_selectors_by_name(String.t()) :: {:ok, list()} | {:error, :not_found}

See Ethex.Abi.Abi.get_selectors_by_name/1.

Link to this function

register_abi(name, abi_file_path)

View Source
@spec register_abi(String.t(), any()) :: :ok | :error

See Ethex.Abi.Abi.register_abi/2.