{{define "tx"}} {{ template "header" . }}

Tx hash: {{.info.Hash}} Type {{.info.TransactionType }}

{{if eq .info.TransactionType "BURN" }}

Burns: {{.info.Burn_Value }} DERO

{{end}}
Block: {{.info.ValidBlock}} (VALID)
{{range $i, $e := .info.InvalidBlock}}
Block: {{$e}}
{{end}} {{if eq .info.TransactionType "PREMINE"}}
{{index .info.OutAddress 0}} Registered with funds {{.info.Amount}}
{{end}} {{if eq .info.TransactionType "REGISTRATION"}}
{{index .info.OutAddress 0}} Registered
{{end}} {{if .info.SC_Install }}
SCID current reserves
{{range $k, $v := .info.SC_State.Balances}} {{end}}
SCID Amount(in atomic units)
{{ $k }} {{ $v }}
SCID string variables
{{range $k, $v := .info.SC_State.VariableStringKeys}} {{end}}
key value
{{ $k }} {{ $v }}
SCID uint64 variables
{{range $k, $v := .info.SC_State.VariableUint64Keys}} {{end}}
key value
{{ $k }} {{ $v }}
{{end}} {{if or (eq .info.TransactionType "NORMAL") (eq .info.TransactionType "BURN") (eq .info.TransactionType "SC") }}
Tx RootHash: {{.info.RootHash}} built height : {{.info.HeightBuilt}}
Timestamp: {{.info.Timestamp}} Timestamp [UTC]: {{.info.Block_time}} Age [y:d:h:m:s]: {{.info.Age}}
Block: {{.info.Height}} Fee: {{.info.Fee}} Tx size: {{.info.Size}} kB
Tx version: {{.info.Version}} No of confirmations: {{.info.Depth}} Signature type: {{.info.Type}}
Extra: {{.info.Extra}}
{{range $ii, $ee := .info.Assets}} {{if eq $ee.SCID "0000000000000000000000000000000000000000000000000000000000000000" }}
DERO : {{$ee.Ring_size}} inputs/outputs (RING size) Fees {{$ee.Fees}} {{if eq $.info.TransactionType "SC"}} Deposited to SC {{$ee.Burn}} {{else}} Burned {{$ee.Burn}} {{end}}
{{else}}
Token: {{$ee.SCID}} {{$ee.Ring_size}} inputs/outputs (RING size) Fees {{$ee.Fees}} {{if eq $.info.TransactionType "SC"}} Deposited Tokens to SC {{$ee.Burn}} {{else}} Burned {{$ee.Burn}} {{end}}
{{end}}
{{range $i, $e := $ee.Ring}} {{end}}
address
{{ $e }}
{{end}} {{if eq .info.TransactionType "SC"}}
SC Balance: {{ .info.SC_Balance_string }} DERO
SC CODE:
  {{  .info.SC_Code }}
SC Arguments: {{ .info.SC_Args }}
{{end}}

{{if .info.Proof_amount }} {{end}} {{if .info.Proof_error }} {{end}}

Prove to someone that you have sent them DERO in this transaction

proof can be obtained using wallet command in dero-wallet-cli or from the statement
Note: proof is sent to the server, as the calculations are done on the server side

{{.info.Proof_address}} Received {{.info.Proof_amount}} DERO {{if .info.Proof_Payload}}
Decoded Data {{ .info.Proof_Payload}}
Raw Data
{{ .info.Proof_Payload_raw}}
{{end}}

{{.info.Proof_error}}
{{end}}

TX hex bytes
{{ .info.Hex}}
{{if eq .info.CoinBase false}} {{end}}
{{ template "footer" . }} {{end}}