<%= gettext "Transaction Details" %>

<%= @transaction.hash %>

<%= gettext "Overview" %>

<%= gettext "Transaction Hash" %>
<%= @transaction.hash %>
<%= gettext "Transaction Status" %>
<%= gettext "Success" %>
<%= gettext "Block Number" %>
<%= link(@transaction.block_number, to: block_path(@conn, :show, @conn.assigns.locale, @transaction.block_number), class: "transaction__link") %>
<%= gettext "Age" %>
<%= @transaction.age %> (<%= @transaction.formatted_timestamp %>)
<%= gettext "Value" %>
<%= Decimal.div(Decimal.new(@transaction.value), Decimal.new(1_000_000_000_000_000_000)) |> Decimal.to_string(:normal) %> POA
<%= gettext "Gas Limit" %>
<%= @transaction.gas |> Cldr.Number.to_string! %> wei
<%= gettext "Gas Price" %>
<%= Decimal.div(Decimal.new(@transaction.gas_price), Decimal.new(1_000_000_000_000_000_000)) |> Decimal.to_string(:normal) %> POA (<%= Decimal.div(Decimal.new(@transaction.gas_price), Decimal.new(1_000_000_000)) |> Decimal.to_string(:normal) %> Gwei)
<%= gettext "Cumulative Gas Used" %>
<%= @transaction.cumulative_gas_used |> Cldr.Number.to_string! %> wei
<%= gettext "Nonce" %>
<%= @transaction.nonce %>
<%= gettext "Input" %>
<%= @transaction.input %>