Etherscan v0.1.4 Etherscan.API.Transactions
Module to wrap Etherscan transaction endpoints.
Link to this section Summary
Functions
Check contract execution status by transaction_hash
Link to this section Functions
Link to this function
get_contract_execution_status(transaction_hash)
get_contract_execution_status(transaction_hash :: String.t()) :: {:ok, map()} | {:error, atom()}
Check contract execution status by transaction_hash.
Examples
iex> transaction_hash = "0x40eb908387324f2b575b4879cd9d7188f69c8fc9d87c901b9e2daaea4b442170"
iex> response = Etherscan.API.Transactions.get_contract_execution_status(transaction_hash)
{:ok, %{"errDescription" => "", "isError" => "0"}} = response
iex> transaction_hash = "0x15f8e5ea1079d9a0bb04a4c58ae5fe7654b5b2b4463375ff7ffb490aa0032f3a"
iex> response = Etherscan.API.Transactions.get_contract_execution_status(transaction_hash)
{:ok, %{"errDescription" => "Bad jump destination", "isError" => "1"}} = response