Blockchain explorer for Ethereum based network and a tool for inspecting and analyzing EVM based blockchains.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
blockscout/lib/explorer/ethereumex_extensions.ex

14 lines
367 B

defmodule Explorer.EthereumexExtensions do
@moduledoc """
Downloads the trace for a Transaction from a node.
"""
alias Ethereumex.HttpClient
@dialyzer {:nowarn_function, trace_transaction: 1}
def trace_transaction(hash) do
params = [hash, ["trace"]]
{:ok, trace} = HttpClient.request("trace_replayTransaction", params, [])
trace
end
end