{{define "txdetail"}}{{$cs := .CoinShortcut}}{{$addr := .AddrStr}}{{$tx := .Tx}}{{$data := .}}
{{$tx.Txid}} {{- if $tx.Rbf}} RBF{{end -}}
{{- if $tx.Blocktime}}
{{if $tx.Confirmations}}mined{{else}}first seen{{end}} {{formatUnixTime $tx.Blocktime}}
{{end -}}
{{range $vin := $tx.Vin}}
{{range $a := $vin.Addresses}} {{if and (ne $a $addr) $vin.IsAddress}}{{$a}}{{else}}{{$a}}{{end}} {{else}} {{if $vin.Hex}}Unparsed address{{else}}No Inputs (Newly Generated Coins){{end}} {{end}} {{if $vin.Txid}} {{end}} {{if $vin.Addresses}}{{formatAmount $vin.ValueSat}} {{$cs}}{{end}}
{{else}}
No Inputs
{{end}}
 
{{- range $vout := $tx.Vout -}}
{{range $a := $vout.Addresses}} {{if and (ne $a $addr) $vout.IsAddress}}{{$a}}{{else}}{{$a}}{{end}} {{- else -}} Unparsed address {{- end -}} {{formatAmount $vout.ValueSat}} {{$cs}}{{if $vout.Spent}}{{else}}× {{end}}
{{else}}
No Outputs
{{end}}
{{end}}