|
@ -6,46 +6,49 @@ |
|
|
div(class="row") |
|
|
div(class="row") |
|
|
div(class="col-md-6") |
|
|
div(class="col-md-6") |
|
|
if (txInputs) |
|
|
if (txInputs) |
|
|
table(class="table mb-0") |
|
|
table(class="table monospace mb-0") |
|
|
if (tx.vin[0].coinbase) |
|
|
if (tx.vin[0].coinbase) |
|
|
tr |
|
|
tr |
|
|
th(class="pl-0 pr-1 monospace") |
|
|
th(class="pl-0 pr-1") |
|
|
a(data-toggle="tooltip", title="Input #1", style="white-space: nowrap;") |
|
|
a(data-toggle="tooltip", title="Input #1", style="white-space: nowrap;") |
|
|
i(class=("fas fa-" + fontawesomeInputName + " mr-2")) |
|
|
i(class=("fas fa-" + fontawesomeInputName + " mr-2")) |
|
|
span 1 |
|
|
span 1 |
|
|
|
|
|
|
|
|
td(class="border-top-0") |
|
|
td(class="border-top-0") |
|
|
span(class="tag monospace") coinbase |
|
|
span(class="tag") coinbase |
|
|
span(class="monospace") Newly minted coins |
|
|
span Newly minted coins |
|
|
|
|
|
|
|
|
td(class="border-top-0 text-right") |
|
|
td(class="border-top-0 text-right") |
|
|
- var currencyValue = coinConfig.blockRewardFunction(result.getblock.height); |
|
|
- var currencyValue = coinConfig.blockRewardFunction(result.getblock.height); |
|
|
include ./value-display.pug |
|
|
include ./value-display.pug |
|
|
|
|
|
|
|
|
each txInput, txInputIndex in txInputs |
|
|
each txInput, txInputIndex in txInputs |
|
|
if (txInput) |
|
|
tr |
|
|
- var vout = txInput.vout[tx.vin[txInputIndex].vout]; |
|
|
th(class="pl-0 pr-1") |
|
|
|
|
|
a(data-toggle="tooltip", title=("Input #" + (txInputIndex + 1)), style="white-space: nowrap;") |
|
|
tr |
|
|
i(class=("fas fa-" + fontawesomeInputName + " mr-2")) |
|
|
th(class="pl-0 pr-1 monospace") |
|
|
span #{(txInputIndex + 1)} |
|
|
a(data-toggle="tooltip", title=("Input #" + (txInputIndex + 1)), style="white-space: nowrap;") |
|
|
|
|
|
i(class=("fas fa-" + fontawesomeInputName + " mr-2")) |
|
|
- var vout = null; |
|
|
span #{(txInputIndex + 1)} |
|
|
if (txInput && txInput.vout && tx.vin && tx.vin[txInputIndex]) |
|
|
|
|
|
- var vout = txInput.vout[tx.vin[txInputIndex].vout]; |
|
|
//pre |
|
|
|
|
|
// code #{JSON.stringify(txInput)} |
|
|
td(class=(txInputIndex == 0 ? "border-top-0" : false), class="pl-0") |
|
|
|
|
|
if (vout && vout.scriptPubKey && vout.scriptPubKey.addresses) |
|
|
td(class=(txInputIndex == 0 ? "border-top-0" : false), class="pl-0") |
|
|
div(style="word-break: break-word;") |
|
|
if (vout.scriptPubKey && vout.scriptPubKey.addresses) |
|
|
a(href=("/address/" + vout.scriptPubKey.addresses[0])) #{vout.scriptPubKey.addresses[0]} |
|
|
div(class="monospace", style="word-break: break-word;") |
|
|
span(class="small") via |
|
|
a(href=("/address/" + vout.scriptPubKey.addresses[0])) #{vout.scriptPubKey.addresses[0]} |
|
|
a(href=("/tx/" + txInput.txid + "#output-" + tx.vin[txInputIndex].vout)) #{txInput.txid.substring(0, 20)}...[#{tx.vin[txInputIndex].vout}] |
|
|
span(class="small monospace") via |
|
|
|
|
|
a(href=("/tx/" + txInput.txid + "#output-" + tx.vin[txInputIndex].vout), class="monospace") #{txInput.txid.substring(0, 20)}...[#{tx.vin[txInputIndex].vout}] |
|
|
else |
|
|
|
|
|
span(class="text-danger") Unable to decode input |
|
|
td(class=(txInputIndex == 0 ? "border-top-0" : false), class="pl-0 text-right") |
|
|
a(data-toggle="popover", title=JSON.stringify(txInput)) |
|
|
if (vout.value) |
|
|
i(class="fas fa-plus-square") |
|
|
- var currencyValue = vout.value; |
|
|
|
|
|
include ./value-display.pug |
|
|
td(class=(txInputIndex == 0 ? "border-top-0" : false), class="pl-0 text-right") |
|
|
|
|
|
if (vout && vout.value) |
|
|
|
|
|
- var currencyValue = vout.value; |
|
|
|
|
|
include ./value-display.pug |
|
|
|
|
|
|
|
|
tr |
|
|
tr |
|
|
th |
|
|
th |
|
|