{{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 -}}
{{- range $a := $vin.Addresses -}}
{{if and (ne $a $addr) $vin.Searchable}}{{$a}}{{else}}{{$a}}{{end}}
{{- else -}}
Unparsed address
{{- end -}}
|
{{- else -}}
No Inputs |
{{- end -}}
{{- range $vout := $tx.Vout -}}
{{- range $a := $vout.Addresses -}}
{{- if and (ne $a $addr) $vout.Searchable}}{{$a}}{{else}}{{$a}}{{- end -}}
{{- else -}}
Unparsed address
{{- end -}}
|
{{- else -}}
No Outputs |
{{- end -}}
{{formatAmount $tx.ValueOutSat}} {{$cs}}
{{- if $tx.TokenTransfers -}}
ERC20 Token Transfers
{{- range $erc20 := $tx.TokenTransfers -}}
{{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}}