<%- include('head'); %> <%- include('header'); %>

Transaction <%- data.transaction.txid %>

<% if (data.transaction.status.confirmed) { %>

confirmed in block <%= data.transaction.status.block_height %>

<% } %>

Summary

<% if (data.transaction.status.confirmed) { %> <% } else { %> <% } %> <% if (data.cpfp && data.cpfp.effectiveFeePerVsize && data.cpfp.effectiveFeePerVsize !== (data.transaction.fee / (data.transaction.weight / 4))) { %> <% } %>
Timestamp <%= (new Date(data.transaction.status.block_time * 1000)).toISOString() %>
First seen <%= (new Date(data.times[0] * 1000)).toISOString() %>
Features
SegWit
"><%= data.features.segwit ? "yes" : "no" %>
Taproot
"><%= data.features.taproot ? "yes" : "no" %>
RBF
"><%= data.features.rbf ? "yes" : "no" %>
Fee <%= data.transaction.fee %> sat
Fee rate <%= (data.transaction.fee / (data.transaction.weight / 4)).toFixed(2) %> sat/vB
Effective fee rate <%= data.cpfp.effectiveFeePerVsize.toFixed(2) %> sat/vB

Inputs & Outputs

Inputs

<% data.transaction.vin.forEach((vin, i) => { %> <% if (vin.is_coinbase) { %> <% } else { %> <% } %> <% }) %>
Coinbase <%= data.hex2ascii(vin.scriptsig) %><%= vin.prevout.scriptpubkey_address %><%= ((vin.prevout ? vin.prevout.value : 0) / 100_000_000).toFixed(8) %> BTC

Outputs

<% data.transaction.vout.forEach((vout, i) => { %> <% }) %>
<% if (vout.scriptpubkey_type === 'op_return') { %> OP_RETURN <%= data.hex2ascii(vout.scriptpubkey_asm) %> <% } else if (vout.scriptpubkey_type === 'p2pk') { %> P2PK <%= vout.scriptpubkey.slice(2, -2) %> <% } else if (!['p2pkh', 'p2sh', 'v0_p2wpkh', 'v0_p2wsh', 'v1_p2tr'].includes(vout.scriptpubkey_type)) { %> <%= vout.scriptpubkey_type.toUpperCase() %> <% } else { %> <%= vout.scriptpubkey_address %> <% } %> <%= (vout.value / 100_000_000).toFixed(8) %> BTC

Details

<% if (data.cpfp && data.cpfp.adjustedVsize && data.cpfp.adjustedVsize > (data.transaction.weight / 4)) { %> <% } %>
Size <%= data.transaction.size %> B
Virtual size <%= data.transaction.weight / 4 %> vB
Weight <%= data.transaction.weight %> WU
Version <%= data.transaction.version %>
Locktime <%= data.transaction.locktime %>
Sigops <%= data.cpfp.sigops %>
Adjusted vsize <%= data.cpfp.adjustedVsize %> vB
<%- include('footer'); %>