{{define "txdetail"}}{{$cs := .CoinShortcut}}{{$addr := .AddrStr}}{{$tx := .Tx}}{{$data := .}}
{{$tx.Txid}} {{if eq $tx.EthereumSpecific.Status 1}}{{end}}{{if eq $tx.EthereumSpecific.Status 0}}{{end}}
{{- if $tx.Blocktime}}
{{if $tx.Confirmations}}mined{{else}}first seen{{end}} {{formatUnixTime $tx.Blocktime}}
{{end -}}
{{- range $vin := $tx.Vin -}} {{- else -}} {{- end -}}
{{- range $a := $vin.Addresses -}} {{if and (ne $a $addr) $vin.Searchable}}{{$a}}{{else}}{{$a}}{{end}} {{- else -}} Unparsed address {{- end -}}
No Inputs
{{- range $vout := $tx.Vout -}} {{- else -}} {{- end -}}
{{- range $a := $vout.Addresses -}} {{- if and (ne $a $addr) $vout.Searchable}}{{$a}}{{else}}{{$a}}{{- end -}} {{- else -}} Unparsed address {{- end -}}
No Outputs
{{formatAmount $tx.ValueOutSat}} {{$cs}}
{{- if $tx.TokenTransfers -}}
ERC20 Token Transfers
{{- range $erc20 := $tx.TokenTransfers -}}
{{if ne $erc20.From $addr}}{{$erc20.From}}{{else}}{{$erc20.From}}{{end}}
{{if ne $erc20.To $addr}}{{$erc20.To}}{{else}}{{$erc20.To}}{{end}}
{{formatAmountWithDecimals $erc20.Value $erc20.Decimals}} {{$erc20.Symbol}}
{{- end -}}
{{- end -}}
{{- if $tx.FeesSat -}} Fee: {{formatAmount $tx.FeesSat}} {{$cs}} {{- end -}}
{{- if $tx.Confirmations -}} {{$tx.Confirmations}} Confirmations {{- else -}} Unconfirmed Transaction! {{- end -}} {{formatAmount $tx.ValueOutSat}} {{$cs}}
{{end}}