{{ define "ticket-search-result" }} {{ if .Found }}
| Hash | {{ .Ticket.Hash }} | |
|---|---|---|
| Status | {{ if .Ticket.Confirmed }}Confirmed (purchase height: {{ .Ticket.PurchaseHeight }}) | {{ else }}Not confirmed | {{ end }}
| Ticket Outcome | {{ .Ticket.Outcome }} | |
| Voting WIF | {{ .Ticket.VotingWIF }} | |
| Commitment Address | {{ .Ticket.CommitmentAddress }} |
| Fee Address | {{ .Ticket.FeeAddress }} (XPub ID: {{ .Ticket.FeeAddressXPubID }} Address: {{ .Ticket.FeeAddressIndex }}) |
|---|---|
| Fee Amount | {{ atomsToDCR .Ticket.FeeAmount }} |
| Fee Expiration | {{ .Ticket.FeeExpiration }} ({{ dateTime .Ticket.FeeExpiration }}) |
| Fee Tx Hash | {{ .Ticket.FeeTxHash }} |
| Fee Tx |
{{ if .Ticket.FeeTxHex }}
Raw Bytes
{{ .Ticket.FeeTxHex }}
Decoded{{ indentJSON .FeeTxDecoded }}
|
| Fee Tx Status | {{ .Ticket.FeeTxStatus }} |
| Consensus Vote Choices |
{{ range $key, $value := .Ticket.VoteChoices }}
{{ $key }}: {{ $value }} {{ end }} |
||||||||
|---|---|---|---|---|---|---|---|---|---|
| TSpend Policy |
{{ range $key, $value := .Ticket.TSpendPolicy }}
{{ $key }}: {{ $value }} {{ end }} |
||||||||
| Treasury Policy |
{{ range $key, $value := .Ticket.TreasuryPolicy }}
{{ $key }}: {{ $value }} {{ end }} |
||||||||
|
Vote Choice Changes ({{ .MaxVoteChanges }} most recent) |
{{ range $key, $value := .VoteChanges }}
{{ if eq $key 0}} Initial choices {{ else }} Change {{ $key }} {{ end }}
|
| Alternate Signing Address | {{if .AltSignAddrData}} {{ .AltSignAddrData.AltSignAddr }} {{end}} | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| AltSignAddress Change |
{{if .AltSignAddrData}}
|
No ticket found with hash {{ .Hash }}
{{ end }} {{ end }}