Show tx hex in transaction detail in explorer
parent
f80c4d572e
commit
175c841870
|
@ -77,7 +77,7 @@ type Tx struct {
|
|||
Size int `json:"size,omitempty"`
|
||||
ValueIn string `json:"valueIn"`
|
||||
Fees string `json:"fees"`
|
||||
WithSpends bool `json:"withSpends,omitempty"`
|
||||
Hex string `json:"hex"`
|
||||
}
|
||||
|
||||
type Paging struct {
|
||||
|
|
|
@ -173,12 +173,12 @@ func (w *Worker) GetTransaction(txid string, bestheight uint32, spendingTxs bool
|
|||
Confirmations: bchainTx.Confirmations,
|
||||
Fees: w.chainParser.AmountToDecimalString(&feesSat),
|
||||
Locktime: bchainTx.LockTime,
|
||||
WithSpends: spendingTxs,
|
||||
Time: bchainTx.Time,
|
||||
Txid: bchainTx.Txid,
|
||||
ValueIn: w.chainParser.AmountToDecimalString(&valInSat),
|
||||
ValueOut: w.chainParser.AmountToDecimalString(&valOutSat),
|
||||
Version: bchainTx.Version,
|
||||
Hex: bchainTx.Hex,
|
||||
Vin: vins,
|
||||
Vout: vouts,
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<div class="container">
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-trezor">
|
||||
<!-- <a class="navbar-brand" href="#">Navbar w/ text</a> -->
|
||||
<a class="navbar-brand" href="https://trezor.io/" title="Home">
|
||||
<a class="navbar-brand" href="/" title="Home">
|
||||
<div alt="TREZOR Wallet" class="trezor-logo-svg-white">
|
||||
<svg width="100" height="42" version="1.1" id="logotyp" xmlns="http://www.w3.org/2000/svg" xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 163.7 41.9" space="preserve">
|
||||
<polygon points="101.1,12.8 118.2,12.8 118.2,17.3 108.9,29.9 118.2,29.9 118.2,35.2 101.1,35.2 101.1,30.7 110.4,18.1 101.1,18.1"></polygon>
|
||||
|
|
|
@ -41,4 +41,10 @@
|
|||
<div class="data-div">
|
||||
{{template "txdetail" .}}
|
||||
</div>
|
||||
<div class="data-div">
|
||||
<h5>Hex</h5>
|
||||
<div class="alert alert-data">
|
||||
<span style="word-wrap: break-word; font-size: smaller;">{{$tx.Hex}}</span>
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
Loading…
Reference in New Issue