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_web/controllers/internal_transaction_contro...

18 lines
436 B

defmodule ExplorerWeb.InternalTransactionController do
use ExplorerWeb, :controller
alias Explorer.Transaction.Service, as: Transaction
def index(conn, %{"transaction_id" => transaction_id}) do
hash = String.downcase(transaction_id)
internal_transactions = Transaction.internal_transactions(hash)
render(
conn,
internal_transactions: internal_transactions,
transaction_hash: hash
)
end
end