{{define "txdetail"}}{{$addr := .AddrStr}}{{$tx := .Tx}}{{$data := .}}
{{$tx.Txid}} {{if $tx.Rbf}} RBF{{end}}
{{if $tx.Blocktime}}
{{if $tx.Confirmations}}mined{{else}}first seen{{end}} {{unixTimeSpan $tx.Blocktime}}
{{end}} {{if $tx.ConfirmationETABlocks}}
confirmation estimated in {{relativeTime $tx.ConfirmationETASeconds}} ({{$tx.ConfirmationETABlocks}} blocks)
{{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}}{{amountSpan $vin.ValueSat $data "tx-amt copyable"}}{{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}} {{amountSpan $vout.ValueSat $data "copyable"}}{{if $vout.Spent}}{{else}}× {{end}}
{{else}}
No Outputs
{{end}}
FLO Data
{{end}}