{{define "txdetail"}}{{$cs := .CoinShortcut}}{{$addr := .AddrStr}}{{$tx := .Tx}}
{{- if $tx.Confirmations -}}
mined {{formatUnixTime $tx.Blocktime}}
{{- end -}}
{{- range $vin := $tx.Vin -}} {{- else -}} {{- end -}}
{{- if $vin.Txid -}} ➡  {{- end -}} {{- range $a := $vin.Addresses -}} {{if and (ne $a $addr) $vin.Searchable}}{{$a}}{{else}}{{$a}}{{end}} {{- else -}} {{- if $vin.ScriptSig.Hex -}}Unparsed address{{- else -}}No Inputs (Newly Generated Coins){{- end -}} {{- end -}}{{- if $vin.Addresses -}} {{formatAmount $vin.Value}} {{$cs}} {{- end -}}
No Inputs
{{- range $vout := $tx.Vout -}} {{- else -}} {{- end -}}
{{- range $a := $vout.ScriptPubKey.Addresses -}} {{- if and (ne $a $addr) $vout.ScriptPubKey.Searchable}}{{$a}}{{else}}{{$a}}{{- end -}} {{- else -}} Unparsed address {{- end -}} {{formatAmount $vout.Value}} {{$cs}} {{if $vout.Spent}}{{else -}} × {{- end -}}
No Outputs
{{- if $tx.Fees -}} Fee: {{formatAmount $tx.Fees}} {{$cs}} {{- end -}}
{{- if $tx.Confirmations -}} {{$tx.Confirmations}} Confirmations {{- else -}} Unconfirmed Transaction! {{- end -}} {{formatAmount $tx.ValueOut}} {{$cs}}
{{end}}