<%= gettext "Transaction Details" %>

<%= @transaction.hash %>

<%= gettext "Overview" %>

<%= gettext "Transaction Hash" %>
<%= @transaction.hash %>
<%= gettext "Transaction Status" %>
<%= @transaction.status %>
<%= gettext "Block Number" %>
<%= link(@transaction.block_number, to: block_path(@conn, :show, @conn.assigns.locale, @transaction.block_number), class: "transaction__link") %> (<%= gettext "%{confirmations} block confirmations", confirmations: @transaction.confirmations %>)
<%= 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) %> <%= gettext "POA" %>
<%= gettext "From" %>
<%= link(@transaction.from_address, to: address_path(@conn, :show, @conn.assigns.locale, @transaction.from_address)) %>
<%= gettext "To" %>
<%= link(@transaction.to_address, to: address_path(@conn, :show, @conn.assigns.locale, @transaction.to_address)) %>
<%= gettext "Value" %>
<%= @transaction.value %>
<%= gettext "Gas Limit" %>
<%= @transaction.gas |> Cldr.Number.to_string! %>
<%= gettext "Gas Price" %>
<%= @transaction.gas_price |> Cldr.Number.to_string! %> (<%= 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 %>
<%= gettext "Nonce" %>
<%= @transaction.nonce %>
<%= gettext "Input" %>
<%= @transaction.input %>