oxen-observer/templates/block.html

6.4 KiB

{% extends "_basic.html" %} {% block content %}

{{block_header.hash}}

{{block_header.height}} {%if block_header.height < info.height - 1%} ({{info.height - 1 - block_header.height}} blocks ago) {%elif block_header.height == info.height - 1%} (current top block) {%endif%}

{%if block_header.height > 0%} « Block {{block_header.height-1}} ({{block_header.prev_hash | ellipsize(8,3)}}) {%endif%} {%if block_header.height < info.height - 1%} {%if block_header.height > 0%} | {%endif%} Block {{block_header.height-1}} ({{block_header.prev_hash | ellipsize(10,3)}}) » | Latest block ⏭ {%endif%}

Metadata

{{block_header.timestamp | from_timestamp | format_datetime('short')}} UTC ({{block_header.timestamp | from_timestamp | ago}} ago) {{block_header.major_version}}.{{block_header.minor_version}} {{block_header.block_size | si}}B {%if 'nonce' in block_header and block_header['nonce'] != 0%} Mined ⛏ {{block_header.difficulty}} {%elif 'pulse' in block.info%} Pulse 💓 {%if block.info.pulse.round > 0%} {{block.info.pulse.round}} {%endif%} {%endif%} {%set sum_burned = transactions | selectattr('extra.burn_amount') | sum(attribute='extra.burn_amount') %} {%set sum_fees = transactions | selectattr('info.rct_signatures') | selectattr('info.rct_signatures.txnFee') | sum(attribute='info.rct_signatures.txnFee') - sum_burned%} {{(block_header.reward - sum_fees) | oxen(decimals=4)}} {%if sum_fees > 0%} {{ sum_fees | oxen(fixed=True, decimals=4) }} {%endif%} {%if sum_burned > 0%} {{sum_burned | oxen(decimals=4)}} 🔥 {%endif%} {%if miner_tx.extra.sn_winner%} {%if miner_tx.extra.sn_winner == "0000000000000000000000000000000000000000000000000000000000000000"%} None {%else%} {{miner_tx.extra.sn_winner}} {%endif%} {%endif%}

Miner Reward Transaction

Hash Outputs Size [kB] Version
{{miner_tx.tx_hash}} {{miner_tx.info.vout | sum(attribute='amount') | oxen}} {{miner_tx.size}} {{miner_tx.info.version}}

Transactions ({{transactions | length}})

{% if transactions %} {% import 'include/tx_type_symbol.html' as symbol %} {% import 'include/tx_fee.html' as fee %} {% for tx in transactions %} {% endfor %}
Type Transaction Hash Fee Outputs In/Out TX Size
{{symbol.display(tx, text=True)}} {{tx.tx_hash}} {{fee.display(tx)}} {{tx.info.vin | length}}/{{tx.info.vout | length}} {{tx.size | si}}B
{% endif %} {%if details_html%}
{{details_html | safe}} {%else%}
Show raw details
{%endif%} {% if enable_as_hex %}
Block As Hex | Complete Block As Hex
{% endif %}
{% endblock %}